:root {
  /* Changing the Coral/Orange primary to a Blue primary as requested */
  --primary: #2563eb; 
  --primary-hover: #1d4ed8;
  --secondary: #eff6ff; /* Soft blue background */
  --text-main: #333333;
  --text-muted: #6b7280;
  --bg-main: #ffffff;
  --bg-gray: #f8f8f8;
  --border-radius-btn: 30px;
  --border-radius-card: 20px;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.bg-gray {
  background-color: var(--bg-gray);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  color: #111827;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--border-radius-btn);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary.outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-primary.outline:hover {
  background-color: var(--primary);
  color: white;
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: #dbeafe;
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* Cards */
.card {
  background: white;
  border-radius: var(--border-radius-card);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.grid {
  display: grid;
  gap: 30px;
}

/* 1. Top Bar */
.top-bar {
  background-color: var(--bg-gray);
  padding: 8px 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact {
  display: flex;
  gap: 20px;
  align-items: center;
}

.contact a {
  font-weight: 600;
  color: var(--text-main);
}

/* 2. Navbar */
.navbar {
  background: white;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* 3. Hero */
.hero {
  padding: 80px 0;
  background-color: var(--bg-main);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.discount-badge {
  display: inline-block;
  background-color: var(--secondary);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: var(--border-radius-btn);
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.trust-indicators {
  display: flex;
  gap: 16px;
}

.trust-indicators img {
  height: 40px;
  border-radius: 8px;
}

.hero-image {
  flex: 1;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: var(--border-radius-card);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 4. Services Tabbed */
.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 24px;
  border-radius: var(--border-radius-btn);
  border: 1px solid #e5e7eb;
  background: white;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab-btn.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.services-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 0;
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-top: 20px;
  padding: 0 20px;
}

.service-card p {
  color: var(--text-muted);
  font-weight: 600;
  padding: 0 20px;
}

.service-card .btn {
  margin: 0 20px 24px;
  width: calc(100% - 40px);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 5. Stories */
.stories-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
  justify-content: center;
}

.story-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.story-circle img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  padding: 3px;
  object-fit: cover;
  transition: transform 0.3s;
}

.story-circle:hover img {
  transform: scale(1.05);
}

.story-circle span {
  font-size: 0.875rem;
  font-weight: 500;
}

/* 6. Calculator */
.calc-card {
  max-width: 800px;
  margin: 0 auto;
}

.calc-steps {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.calc-steps .step {
  font-weight: 600;
  color: var(--text-muted);
}

.calc-steps .step.active {
  color: var(--primary);
}

.calc-body {
  margin-bottom: 30px;
}

.calc-options {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.calc-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius-btn);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.calc-radio:hover {
  border-color: var(--primary);
}

.calc-radio input {
  accent-color: var(--primary);
}

.calc-slider label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
}

.calc-slider input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}

.calc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e5e7eb;
  padding-top: 20px;
}

.calc-total {
  font-size: 1.5rem;
  font-weight: 700;
}

.calc-total span {
  color: var(--primary);
}

/* 7. Included */
.included-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.included-grid .card h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.included-grid .card li {
  margin-bottom: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
}

/* 8. Workflow */
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}

.w-num {
  width: 60px;
  height: 60px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.w-step h3 {
  margin-bottom: 10px;
}

.w-step p {
  color: var(--text-muted);
}

/* 9. Before/After */
.ba-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.ba-card {
  display: flex;
  gap: 10px;
}

.ba-img {
  width: 50%;
  border-radius: 12px;
  object-fit: cover;
}

/* 10. Testimonials */
.testimonials-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.testimonial-card .stars {
  color: #fbbf24;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-card .author {
  font-style: normal;
  font-weight: 600;
  color: var(--primary);
}

/* 11. FAQ */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  border-bottom: 1px solid #e5e7eb;
}

.accordion-header {
  width: 100%;
  text-align: left;
  padding: 24px 0;
  background: none;
  border: none;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.accordion-body {
  padding-bottom: 24px;
  display: none;
  color: var(--text-muted);
}

.accordion-body.active {
  display: block;
  animation: fadeIn 0.3s;
}

.accordion-header .icon {
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s;
}

.accordion-header.active .icon {
  transform: rotate(45deg);
}

/* 12. Footer */
.bg-dark {
  background-color: #111827;
  color: white;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-desc {
  color: #9ca3af;
  margin: 20px 0;
}

.footer-col h4 {
  color: white;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: #9ca3af;
  margin-bottom: 12px;
}

.footer-col a:hover {
  color: white;
}

.socials {
  display: flex;
  gap: 16px;
}

.socials a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}

.socials a:hover {
  background: var(--primary);
}

.mt-3 {
  margin-top: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  color: #9ca3af;
  font-size: 0.875rem;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom a {
  color: #9ca3af;
}

@media (max-width: 992px) {
  .hero-inner {
      flex-direction: column;
      text-align: center;
  }
  
  .hero-buttons {
      justify-content: center;
  }
  
  .trust-indicators {
      justify-content: center;
  }
  
  .hero h1 {
      font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links, .top-bar .contact {
      display: none;
  }
  
  .mobile-menu-btn {
      display: block;
  }

  .calc-steps {
      flex-direction: column;
      gap: 10px;
  }

  .ba-card {
      flex-direction: column;
  }

  .ba-img {
      width: 100%;
  }

  .section-padding {
      padding: 50px 0;
  }

  .section-title {
      font-size: 1.75rem;
      margin-bottom: 24px;
  }
}

/* =====================
   MOBILE HEADER STYLES
   ===================== */

/* Mobile row: phone + messengers — hidden by default */
.header__mobRow {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0px;
  background: transparent;
  border: none;
  gap: 6px;
  flex-wrap: nowrap;
}

.header__mobPhone {
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.header__mobPhone:hover { color: #1d4ed8; }

.header__mobMessengers {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.header__mobMsg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: transform 0.2s ease;
  overflow: hidden;
  text-indent: -9999px;
  background-size: 17px 17px;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.header__mobMsg:hover { transform: scale(1.08); }

.header__mobMsg_tg {
  background-color: #229ed9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0zm5.562 8.248l-2.018 9.51c-.145.658-.537.818-1.084.508l-3-2.21-1.447 1.394c-.16.16-.295.295-.605.295l.213-3.053 5.56-5.023c.242-.213-.054-.333-.373-.12l-6.871 4.326-2.962-.924c-.643-.204-.657-.643.136-.953l11.57-4.461c.537-.194 1.006.131.881.71z'/%3E%3C/svg%3E");
}

.header__mobMsg_wa {
  background-color: #25d366;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15c-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347M6.579 21.785l-.361-.214-3.741.982.998-3.648-.235-.374A9.86 9.86 0 012.73 13.27C2.731 7.82 7.166 3.386 12.618 3.386c2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884a9.87 9.87 0 01-5.031-1.378l-.004-.003zM.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24z'/%3E%3C/svg%3E");
}

.header__mobMsg_max {
  background-image: url('assets/max.webp') !important;
  background-size: cover;
  background-color: transparent;
}

@media screen and (max-width: 1024px) {
  .header__mobRow {
    display: flex !important;
    margin-left: auto !important;
  }
}

@media screen and (max-width: 480px) {
  .header__logo,
  .header__logoImg {
    width: 135px !important;
  }
  .header__mobPhone {
    font-size: 11px !important;
  }
}



/* =====================
   MOBILE BANNER REDESIGN
   ===================== */
@media screen and (max-width: 1024px) {
  /* Show the banner card */
  .banner_index {
    display: block !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 0 24px 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    background: #ffffff !important;
    overflow: hidden !important;
    position: relative !important;
  }

  /* Make background photo display at the top of the card */
  .banner_index .banner__bgImg {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 0 !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    z-index: 1 !important;
  }

  /* Disable the horizontal gradient mask */
  .banner_index.banner_mask:before {
    display: none !important;
  }

  /* Let container wrap naturally and layout vertically */
  .banner_index .banner__container {
    min-height: auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Main text/buttons container */
  .banner_index .banner__left {
    padding: 20px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    z-index: 2 !important;
  }

  /* Title */
  .banner_index .banner__heading {
    font-size: 26px !important;
    line-height: 1.25 !important;
    color: #1f2937 !important;
    font-weight: 800 !important;
    margin-bottom: 12px !important;
    text-shadow: none !important;
    text-align: left !important;
  }
  .banner_index .banner__heading br {
    display: none !important;
  }

  /* Plashka (Discount Badge) */
  .banner_index .banner-plashka {
    display: inline-flex !important;
    align-items: center !important;
    background: #eff6ff !important;
    border: 1px solid #dbeafe !important;
    padding: 6px 14px !important;
    border-radius: 50px !important;
    margin: 10px 0 !important;
    width: fit-content !important;
    height: auto !important;
    box-shadow: none !important;
  }
  .banner_index .banner-plashka p {
    font-size: 13px !important;
    color: #1e40af !important;
    font-weight: 600 !important;
    margin: 0 !important;
  }
  .banner_index .banner-plashka strong {
    color: #2563eb !important;
    font-weight: 700 !important;
    background-image: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    margin-right: 4px !important;
  }

  /* Subtitle paragraph */
  .banner_index .banner-sub {
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: #4b5563 !important;
    margin-bottom: 16px !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
  }

  /* Advantages list (Checkmarks) */
  .banner_index .banner__desc {
    margin-top: 14px !important;
    margin-bottom: 20px !important;
    display: block !important;
  }
  .banner_index .banner__desc ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .banner_index .banner__desc ul li {
    background: url('assets/li_green.svg') left center no-repeat !important;
    background-size: 18px 18px !important;
    padding-left: 28px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    height: auto !important;
    line-height: 1.4 !important;
    display: flex !important;
    align-items: center !important;
    margin-top: 0 !important;
  }

  /* Buttons Row (Remove 405px gap!) */
  .banner_index .banner__btnsRow {
    margin: 20px 0 0 0 !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    display: flex !important;
  }
  .banner_index .banner__btn {
    width: 100% !important;
    height: 52px !important;
    border-radius: 26px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 44px 0 16px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    border: none !important;
  }
  .banner_index .banner__btn:after {
    width: 36px !important;
    height: 36px !important;
    right: 8px !important;
  }

  /* Bottom Row of 4 Advantages */
  .banner_index .banner__bottomRow {
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    padding: 0 16px 20px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
  .banner_index .banner__bottomItm {
    background: #f8fafc !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
    border-radius: 18px !important;
    min-height: auto !important;
    padding: 12px 14px !important;
    gap: 12px !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .banner_index .banner__bottomImgWrp {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    background: #eff6ff !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .banner_index .banner__bottomImg {
    width: 24px !important;
    height: 24px !important;
  }
  .banner_index .banner__bottomItmTxt {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    line-height: 1.35 !important;
  }
}

@media screen and (max-width: 500px) {
  .banner_index .banner__bgImg {
    height: auto !important;
  }
  .banner_index .banner__heading {
    font-size: 21px !important;
  }
}

/* =====================
   GENERAL MOBILE LAYOUT
   ===================== */
@media screen and (max-width: 768px) {
  .section-padding { padding: 40px 0; }
  .container { padding: 0 14px; }
  .card { padding: 16px; }
  .accordion-header { font-size: 1rem; padding: 16px 0; }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  .calc-options { flex-direction: column; }
  .calc-radio { width: 100%; }
}

/* =====================
   MOBILE TABS & CARDS REDESIGN
   ===================== */
@media screen and (max-width: 768px) {
  /* Tabs Caption (Buttons) - Fit all in one row */
  .tabs__caption {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin: 10px 0 0 0 !important;
    padding: 0 0 15px 0 !important;
    overflow: visible !important;
  }
  .tabs__captionItm {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    padding: 5px 2px !important;
    font-size: 11px !important;
    height: 40px !important;
    font-weight: 750 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 20px !important;
    margin-left: 0 !important;
  }
  .tabs__captionItm + .tabs__captionItm {
    margin-left: 6px !important;
  }

  /* What enters cleaning: Main tabs (Генеральная, После ремонта, Поддерживающая) */
  .new-clean-types {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin: 20px 0 !important;
    padding: 0 !important;
    transform: none !important;
    overflow-x: visible !important;
    gap: 8px !important;
  }
  .new-clean-type {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    padding: 5px 2px !important;
    font-size: 11px !important;
    height: 40px !important;
    font-weight: 750 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 20px !important;
    white-space: normal !important;
    line-height: 1.2 !important;
    box-shadow: 0px 4px 10px -4px rgba(207, 214, 223, 0.7) !important;
  }
  .new-clean-type.active {
    box-shadow: 0px 4px 10px -4px rgba(37, 99, 235, 0.7) !important;
  }

  /* What enters cleaning: Sub-tabs under image (1-к квартира, 2-к квартира, 3-к квартира) */
  .new-clean-tab-image-info-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin: 10px 0 !important;
    padding: 0 !important;
    gap: 8px !important;
  }
  .new-clean-tab-image-info-tab-btn {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    padding: 5px 2px !important;
    font-size: 11px !important;
    height: 36px !important;
    font-weight: 750 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 18px !important;
    white-space: normal !important;
    line-height: 1.2 !important;
    box-shadow: 0px 4px 10px -4px rgba(207, 214, 223, 0.7) !important;
  }
  .new-clean-tab-image-info-tab-btn.active {
    box-shadow: 0px 4px 10px -4px rgba(37, 99, 235, 0.7) !important;
  }

  /* Grid Layout - Two cards in one row, two below them */
  .tabs__contentRowWrp {
    overflow: visible !important;
    padding: 5px 0 15px 0 !important;
    margin: 0 !important;
  }
  .tabs__contentRow {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .tabs__contentItm {
    width: 100% !important; /* Full grid cell width */
    flex-shrink: 0 !important;
    flex-direction: column-reverse !important;
    padding: 8px !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 12px rgba(207,214,223,0.2) !important;
    box-sizing: border-box !important;
  }
  
  .tabs__contentItmImg {
    width: 100% !important;
    height: 110px !important; /* Proportional height for mobile cards */
    border-radius: 14px !important;
    object-fit: cover !important;
  }

  .tabs__contentItmCont {
    width: 100% !important;
    padding: 8px 2px 2px 2px !important;
    box-sizing: border-box !important;
  }

  .tabs__contentItmH {
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #1f2937 !important;
  }

  .tabs__contentItmList {
    margin: 6px 0 !important;
    padding: 0 !important;
  }
  .tabs__contentItmList li {
    font-size: 10px !important;
    line-height: 1.35 !important;
    color: #4b5563 !important;
    padding-left: 12px !important;
    position: relative !important;
  }
  .tabs__contentItmList li:before {
    width: 4px !important;
    height: 4px !important;
    left: 2px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  .tabs__contentItmBtm {
    margin-top: 6px !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }
  
  .tabs__contentItmBtmLeftBtm {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #2563eb !important;
  }

}

/* === Our Works Portfolio Block === */
.befAf {
  padding: 80px 0;
  background-color: var(--bg-gray, #f8f8f8);
}

.befAf__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.befAf .sHeadingWrp {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.befAf__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.befAf__card {
  background: #ffffff;
  border-radius: var(--border-radius-card, 20px);
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition, all 0.3s ease);
  display: flex;
  flex-direction: column;
}

.befAf__card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.befAf__slider {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.befAf__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.befAf__cardInfo {
  margin-top: 20px;
  text-align: center;
}

.befAf__address {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

/* Custom Splide navigation arrows */
.befAf__arrows {
  position: absolute;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  padding: 0 10px !important;
  pointer-events: none;
  z-index: 10;
  left: 0 !important;
}

.befAf__arrow {
  position: static !important;
  transform: none !important;
  pointer-events: auto;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  opacity: 1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.befAf__arrow_prev {
  background: #ffffff url('assets/leftorarr.svg') center no-repeat !important;
  background-size: 30% !important;
}

.befAf__arrow_next {
  background: #ffffff url('assets/rightorarr.svg') center no-repeat !important;
  background-size: 30% !important;
}

.befAf__arrow_prev:hover {
  background: #2563eb url('assets/leftorarrw.svg') center no-repeat !important;
  background-size: 30% !important;
}

.befAf__arrow_next:hover {
  background: #2563eb url('assets/rightorarrw.svg') center no-repeat !important;
  background-size: 30% !important;
}

/* Hide Splide injected SVG icons */
.befAf__arrow svg {
  display: none !important;
}

/* Responsive styles */
@media screen and (max-width: 1024px) {
  .befAf {
    padding: 60px 0;
  }
  .befAf__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media screen and (max-width: 768px) {
  .befAf {
    padding: 50px 0 30px;
  }
  .befAf__grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 20px !important;
    padding-bottom: 20px !important;
    scrollbar-width: none;
    grid-template-columns: none;
  }
  .befAf__grid::-webkit-scrollbar {
    display: none;
  }
  .befAf__card {
    flex: 0 0 85% !important;
    scroll-snap-align: center !important;
    max-width: 320px;
  }
  .befAf__address {
    font-size: 1.125rem;
  }
}





