/* ==========================================================================
   SHREEJI PAINTING — ARCHITECTURAL COMPONENTS
   Distinctive, delicate luxury elements: service cards, interactive portfolio,
   4-stage methodology, before/after slider & commission form.
   ========================================================================== */

/* ==========================================================================
   SERVICE REPERTOIRE CARDS
   ========================================================================== */
.svc-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 52px 42px 46px;
  position: relative;
  overflow: hidden;
  transition: background var(--t) var(--ease), transform 0.4s var(--spring), box-shadow 0.4s var(--ease), border-color 0.4s;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  perspective: 1200px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  will-change: transform, box-shadow;
}

.svc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.5s var(--ease);
  z-index: 5;
}

.svc-card:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.6), 0 0 24px rgba(149, 93, 11, 0.2);
  border-color: rgba(149, 93, 11, 0.35);
}

.svc-card:hover::before {
  width: 100%;
}

.svc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(149, 93, 11, 0.07) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0.65s var(--ease);
  pointer-events: none;
  z-index: 6;
}

.svc-card:hover::after {
  transform: translateX(100%);
}

.svc-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  transform-style: preserve-3d;
}

.svc-top-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  transform: translateZ(28px);
  transform-style: preserve-3d;
}

.svc-cat-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  transform: translateZ(12px);
}

.svc-num {
  font-family: var(--serif);
  font-size: clamp(48px, 4vw, 60px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.14);
  line-height: 1;
  transition: color 0.4s, transform 0.4s;
  transform: translateZ(36px);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.svc-card:hover .svc-num {
  color: rgba(149, 93, 11, 0.4);
  transform: translateZ(44px) scale(1.04);
}

.svc-title {
  font-family: var(--serif);
  font-size: clamp(28px, 2.3vw, 34px);
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.22;
  transform: translateZ(24px);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.01em;
}

.svc-desc {
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 26px;
  transform: translateZ(16px);
}

.svc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-top: auto;
  transform: translateZ(20px);
}

.svc-list li {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.8);
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color 0.3s, transform 0.35s ease;
}

.svc-list li:last-child {
  border-bottom: none;
}

.svc-card:hover .svc-list li {
  transform: translateX(4px);
  color: rgba(255, 255, 255, 0.95);
}

.svc-list li::before {
  content: '✦';
  font-size: 8px;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.svc-card:hover .svc-list li::before {
  transform: scale(1.3);
}

/* ==========================================================================
   PROJECT GALLERY CARDS (3D Layered Perspective)
   ========================================================================== */
.proj-card {
  position: relative;
  flex: 1;
  height: 310px;
  overflow: hidden;
  cursor: pointer;
  background-color: var(--charcoal-900);
  transform-style: preserve-3d;
  perspective: 1200px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  transition: transform 0.45s var(--spring), box-shadow 0.45s var(--ease);
  will-change: transform, box-shadow;
}

.proj-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.2s var(--ease);
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.proj-card:hover .proj-bg {
  transform: scale(1.05);
}

.proj-card:hover {
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.65), 0 0 28px rgba(149, 93, 11, 0.22);
}

.proj-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 26px 24px;
  background: linear-gradient(
    to top,
    rgba(9, 9, 9, 0.92) 0%,
    rgba(9, 9, 9, 0.5) 65%,
    transparent 100%
  );
  transform: translateY(4px) translateZ(32px);
  transform-style: preserve-3d;
  transition: transform 0.4s var(--spring);
}

.proj-card:hover .proj-info {
  transform: translateY(0) translateZ(38px);
}

.proj-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: inline-block;
  background: rgba(9, 9, 9, 0.7);
  border: 1px solid rgba(149, 93, 11, 0.4);
  padding: 3px 9px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transform: translateZ(24px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.proj-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.25;
  transform: translateZ(18px);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   METHODOLOGY STEPS (3D Tactile Panels)
   ========================================================================== */
.step {
  padding: 44px 32px 38px 28px;
  border-left: 1px solid var(--gray-light);
  position: relative;
  overflow: visible;
  transition: background 0.4s var(--ease), transform 0.4s var(--spring), box-shadow 0.4s var(--ease);
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
}

.step:first-child {
  border-left: none;
  padding-left: 0;
}

.step:hover {
  background: rgba(149, 93, 11, 0.08);
}

.step-n {
  font-family: var(--serif);
  font-size: clamp(58px, 5vw, 76px);
  font-weight: 400;
  color: var(--gray-light);
  line-height: 1.15;
  margin-bottom: 16px;
  display: inline-block;
  padding: 4px 10px 4px 4px;
  overflow: visible;
  transition: color 0.4s var(--ease), transform 0.4s var(--spring);
  transform: translateZ(28px);
}

.step:hover .step-n {
  color: var(--gold);
  transform: translateZ(36px) scale(1.04);
}

.step-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.25;
  transform: translateZ(20px);
}

.step-desc {
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.75;
  color: #505050;
  transform: translateZ(14px);
}

/* ==========================================================================
   TESTIMONIAL GLASS CARDS (High-End 3D Frosted Glass)
   ========================================================================== */
.test-card {
  background: rgba(16, 16, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 44px 36px 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  perspective: 1200px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  transition: transform 0.4s var(--spring), box-shadow 0.4s var(--ease), border-color 0.4s;
  will-change: transform, box-shadow;
}

.test-card:hover {
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.65), 0 0 26px rgba(149, 93, 11, 0.22);
  border-color: rgba(149, 93, 11, 0.4);
}

.test-card::before {
  content: '\201C';
  font-family: var(--serif);
  font-size: 100px;
  color: var(--gold);
  opacity: 0.16;
  position: absolute;
  top: 10px;
  left: 26px;
  line-height: 1;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  transform: translateZ(10px);
}

.test-card:hover::before {
  opacity: 0.35;
  transform: translateZ(16px);
}

.stars {
  color: var(--gold);
  font-size: 13.5px;
  letter-spacing: 3px;
  margin-bottom: 16px;
  transform: translateZ(32px);
  text-shadow: 0 0 10px rgba(149, 93, 11, 0.5);
}

.test-text {
  flex: 1;
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 26px;
  position: relative;
  z-index: 1;
  transform: translateZ(22px);
}

.test-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateZ(26px);
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
  display: block;
  background: #222;
}

.author-name {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   CAROUSEL SLIDER ENGINE (Universal for Projects & Reviews)
   ========================================================================== */
.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 10px 4px 14px;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.65s cubic-bezier(0.2, 0.9, 0.3, 1);
  will-change: transform;
}

.carousel-slide {
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Project Slides: 3 per row on desktop, 2 on tablet, 1 on mobile */
.proj-slide {
  flex: 0 0 calc((100% - 48px) / 3);
}

.proj-slide .proj-card {
  width: 100%;
  flex: none;
}

/* Testimonial Slides: 3 per row on desktop, 2 on tablet, 1 on mobile */
.test-slide {
  flex: 0 0 calc((100% - 48px) / 3);
  display: flex;
}

.test-slide .test-card {
  width: 100%;
}

/* Carousel Controls Bar */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 36px;
  position: relative;
  z-index: 10;
  user-select: none;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 2;
  transition: background 0.35s ease, color 0.35s ease, transform 0.25s ease, box-shadow 0.35s ease;
}

.carousel-btn:hover {
  background: var(--gold);
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 4px 20px rgba(149, 93, 11, 0.45);
}

.carousel-btn:active {
  transform: scale(0.94);
}

.carousel-btn svg {
  pointer-events: none;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(149, 93, 11, 0.28);
  border: none;
  cursor: pointer;
  pointer-events: auto;
  padding: 0;
  transition: width 0.35s ease, background 0.35s ease, border-radius 0.35s ease;
}

.carousel-dot:hover {
  background: rgba(149, 93, 11, 0.65);
}

.carousel-dot.active {
  width: 28px;
  border-radius: 6px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(149, 93, 11, 0.5);
}

/* ==========================================================================
   MULTI-PROJECT BEFORE & AFTER SECTION
   ========================================================================== */
.before-after-section {
  max-width: 1440px;
  margin: 64px auto 0;
  padding: 0 64px;
}

.ba-header {
  text-align: center;
  margin-bottom: 26px;
}

.ba-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 400;
  color: var(--text-dark);
  margin: 6px 0 8px;
}

.ba-desc {
  font-size: 15px;
  color: #666666;
  max-width: 620px;
  margin: 0 auto 22px;
  line-height: 1.6;
}

/* Tabs */
.ba-tabs {
  display: inline-flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.04);
  padding: 5px;
  border-radius: 40px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 8px;
}

.ba-tab-btn {
  background: transparent;
  border: none;
  padding: 8px 18px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.25s var(--ease);
}

.ba-tab-btn .tab-num {
  font-size: 10.5px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.ba-tab-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--gold-dark);
}

.ba-tab-btn.active {
  background: #ffffff;
  color: var(--text-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ba-tab-btn.active .tab-num {
  color: var(--gold-dark);
}

/* Carousel container & slides */
.before-after-container {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  transform-style: preserve-3d;
  perspective: 1200px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12), 0 0 20px rgba(149, 93, 11, 0.1);
  overflow: hidden;
  background-color: #0d0d0f;
  transition: transform 0.4s var(--spring), box-shadow 0.4s var(--ease);
}

.before-after-container:hover {
  box-shadow: 0 34px 75px rgba(0, 0, 0, 0.18), 0 0 28px rgba(149, 93, 11, 0.18);
}

.ba-carousel-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.ba-slide {
  display: none;
  opacity: 0;
  width: 100%;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.ba-slide.active {
  display: block;
  opacity: 1;
}

/* Slider frame */
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  background-color: #0b0b0d;
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
}

.ba-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.ba-image-before {
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  clip-path: polygon(0 0, var(--ba-pos, 50%) 0, var(--ba-pos, 50%) 100%, 0 100%);
  will-change: clip-path;
}

.ba-image-after {
  z-index: 0;
  width: 100% !important;
  height: 100% !important;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos, 50%);
  width: 2px;
  background: #ffffff;
  z-index: 4;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.7);
  will-change: left;
}

.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  background: var(--gold);
  border: 2px solid #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 12px rgba(212, 175, 55, 0.4);
  cursor: grab;
  pointer-events: auto;
  transition: transform 0.2s var(--spring), box-shadow 0.2s var(--ease);
}

.ba-handle-button:hover,
.ba-handle-button:active {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 18px rgba(212, 175, 55, 0.6);
}

/* Badges */
.ba-badge {
  position: absolute;
  bottom: 16px;
  z-index: 4;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.ba-badge-before {
  left: 16px;
  background: rgba(9, 9, 9, 0.78);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ba-badge-after {
  right: 16px;
  background: rgba(149, 93, 11, 0.88);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Slide Caption Tag */
.ba-slide-info {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 4;
  background: rgba(11, 11, 13, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 3px;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.ba-proj-tag {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 2px;
}

.ba-slide-info h4 {
  margin: 0;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
}

/* Slider Bottom Control Bar */
.ba-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 14px 22px;
  background: #111114;
  border-top: none;
}

.ba-ctrl-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.ba-ctrl-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
  transform: scale(1.05);
}

.ba-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ba-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.ba-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* ==========================================================================
   QUOTE / COMMISSION FORM
   ========================================================================== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 42px 38px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fg {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.fg label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.fg input,
.fg select,
.fg textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  border-radius: 2px;
  appearance: none;
}

.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

.fg input::placeholder,
.fg textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.fg textarea {
  min-height: 115px;
  resize: vertical;
}

.fg select {
  cursor: pointer;
}

.fg select option {
  background: var(--charcoal-900);
  color: #ffffff;
}

.btn-submit {
  margin-top: 8px;
  background: var(--gold);
  color: #ffffff;
  border: 1px solid var(--gold);
  padding: 18px 36px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  transition: background var(--t), transform var(--t);
  border-radius: 2px;
}

.btn-submit:hover {
  background: var(--gold-dark);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE & MOBILE OVERRIDES
   ========================================================================== */
@media (max-width: 1024px) {
  .proj-slide,
  .test-slide {
    flex: 0 0 calc((100% - 24px) / 2);
  }
}

@media (max-width: 900px) {
  .svc-card { padding: 36px 26px; }
  .before-after-section { padding: 0 36px; margin-top: 44px; }
}

@media (max-width: 640px) {
  .proj-slide,
  .test-slide {
    flex: 0 0 100%;
  }
  .carousel-track {
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .svc-card { padding: 30px 20px; }
  .svc-num { font-size: 44px; }
  .svc-title { font-size: 25px; line-height: 1.25; }
  .svc-desc { font-size: 14px; }

  .proj-card { height: 56vw; min-height: 220px; }
  .proj-info { padding: 18px 20px; }
  .proj-name { font-size: 18px; }

  .step { padding: 28px 0 24px; border-left: none; border-top: 1px solid var(--gray-light); overflow: visible; }
  .step:first-child { border-top: none; }
  .step-n { font-size: 52px; line-height: 1.15; margin-bottom: 10px; padding: 2px 8px 2px 2px; }
  .step-title { font-size: 20px; }

  .test-card { padding: 32px 24px; }
  .test-text { font-size: 17.5px; }

  .before-after-section { padding: 0 16px; margin-top: 32px; }
  .ba-desc { font-size: 13.5px; margin-bottom: 16px; }
  .ba-tabs { gap: 6px; padding: 4px; border-radius: 14px; }
  .ba-tab-btn { padding: 6px 12px; font-size: 12px; }
  .ba-tab-btn .tab-num { display: none; }
  .ba-slide-info { top: 10px; left: 10px; padding: 6px 10px; }
  .ba-slide-info h4 { font-size: 11.5px; }
  .ba-proj-tag { font-size: 8px; }
  .ba-handle-button { width: 34px; height: 34px; }
  .ba-handle-button svg { width: 13px; height: 13px; }
  .ba-badge { font-size: 8.5px; padding: 4px 8px; bottom: 8px; }
  .ba-badge-before { left: 8px; }
  .ba-badge-after { right: 8px; }
  .ba-controls { padding: 10px 14px; gap: 14px; }

  .contact-form { padding: 26px 18px; }
  .form-row { grid-template-columns: 1fr; gap: 14px; }
  .fg input, .fg select, .fg textarea { padding: 13px 15px; font-size: 14.5px; }
  .btn-submit { padding: 15px 22px; font-size: 12.5px; }
}
