img.logo-business_custom {
    height: 100%;
    width: auto;
}
.head-bg {
    height: 200px;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    /*position: absolute; */
    background-size: cover;
    background-color: #242832;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
    filter: brightness(0.2);
    opacity: 0.9;
}
#map{
	height: 520px;
}
div#kt_app_header_container {
    padding-left: 0 !important;
}
.background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    z-index: 1;
    filter: brightness(0.5);
}
.card .card-body{ z-index: 2;}

.car-thumb img {
    max-width: 100%;
}

.car-toolbar.card-toolbar {
    position: absolute;
    top: 35px;
    right: 45px;
}

div#kt_header_phone {
    font-size: 15px;
    flex-shrink: 0;
}

.carlov-header-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-gray-800, #3f4254);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    line-height: 1.2;
}

.carlov-header-phone:hover,
.carlov-header-phone:focus {
    color: var(--bs-primary, #009ef7);
    text-decoration: none;
}

.carlov-header-phone-icon {
    display: none;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    color: inherit;
}

.carlov-header-phone-text {
    display: inline;
}

@media (max-width: 991.98px) {
    .carlov-header-phone-text {
        display: none;
    }

    .carlov-header-phone-icon {
        display: inline-flex;
    }

    .carlov-header-phone:hover .carlov-header-phone-icon,
    .carlov-header-phone:focus .carlov-header-phone-icon {
        background: var(--bs-gray-100, #f5f8fa);
        color: var(--bs-primary, #009ef7);
    }
}

.carlov-hours-block {
    display: inline-block;
    text-align: left;
    max-width: 100%;
}

.carlov-hours {
    text-align: left;
}

.carlov-hours-today {
    font-weight: 600;
    color: #181c32;
    line-height: 1.4;
}

.carlov-hours-details {
    margin-top: 4px;
}

.carlov-hours-details summary {
    cursor: pointer;
    color: #009ef7;
    font-size: 13px;
    font-weight: 600;
    list-style: none;
    user-select: none;
}

.carlov-hours-details summary::-webkit-details-marker {
    display: none;
}

.carlov-hours-details summary::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    vertical-align: middle;
    opacity: 0.7;
}

.carlov-hours-details[open] summary::after {
    transform: rotate(180deg);
}

.carlov-hours-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    min-width: 170px;
}

.carlov-hours-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    color: #7e8299;
    padding: 3px 0;
    line-height: 1.3;
}

.carlov-hours-list li.is-today {
    font-weight: 700;
    color: #181c32;
}

.carlov-hours-list li.is-closed {
    color: #a1a5b7;
}

.setup-checklist-fold {
    border-top: 1px solid #eef0f4;
    padding-top: 8px;
}

.setup-checklist-fold-summary {
    cursor: pointer;
    list-style: none;
    color: #7e8299;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 0;
    user-select: none;
}

.setup-checklist-fold-summary::-webkit-details-marker {
    display: none;
}

.setup-checklist-fold-summary::after {
    content: ' ▾';
    font-size: 11px;
}

.setup-checklist-fold[open] .setup-checklist-fold-summary::after {
    content: ' ▴';
}

.setup-checklist-fold .setup-checklist {
    margin-top: 4px;
}

/* ÐžÑÐ½Ð¾Ð²Ð½Ñ‹Ðµ ÑÑ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ Ð³ÐµÑ€Ð¾Ð¹-Ð±Ð»Ð¾ÐºÐ° */
.hero-section {
  position: relative;
  background-image: url('/upload/main_bg.webp'); /* Ð¤Ð¾Ð½Ð¾Ð²Ð¾Ðµ Ð¸Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ðµ */
  background-size: cover;
  background-position: center;
  height: calc(100vh - 70px); /* Ð’Ñ‹ÑÐ¾Ñ‚Ð° Ð²Ð¾ Ð²ÐµÑÑŒ ÑÐºÑ€Ð°Ð½ */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: -40px -30px 0 -30px;
  color: #fff;
   /* Ð§Ñ‚Ð¾Ð±Ñ‹ Ð¿ÑÐµÐ²Ð´Ð¾ÑÐ»ÐµÐ¼ÐµÐ½Ñ‚ Ð½Ðµ Ð²Ñ‹Ñ…Ð¾Ð´Ð¸Ð» Ð·Ð° Ð³Ñ€Ð°Ð½Ð¸Ñ†Ñ‹ */
}

/* Ð—Ð°Ñ‚ÐµÐ¼Ð½ÐµÐ½Ð¸Ðµ Ñ„Ð¾Ð½Ð° */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Ð§ÐµÑ€Ð½Ñ‹Ð¹ Ñ†Ð²ÐµÑ‚ Ñ Ð¿Ñ€Ð¾Ð·Ñ€Ð°Ñ‡Ð½Ð¾ÑÑ‚ÑŒÑŽ 50% */
  z-index: 1; /* Ð§Ñ‚Ð¾Ð±Ñ‹ Ð·Ð°Ñ‚ÐµÐ¼Ð½ÐµÐ½Ð¸Ðµ Ð±Ñ‹Ð»Ð¾ Ð¿Ð¾Ð²ÐµÑ€Ñ… Ñ„Ð¾Ð½Ð°, Ð½Ð¾ Ð¿Ð¾Ð´ ÐºÐ¾Ð½Ñ‚ÐµÐ½Ñ‚Ð¾Ð¼ */
}

/* ÐšÐ¾Ð½Ñ‚ÐµÐ½Ñ‚ Ð³ÐµÑ€Ð¾Ð¹-Ð±Ð»Ð¾ÐºÐ° */
.hero-content {
  position: relative; /* Ð§Ñ‚Ð¾Ð±Ñ‹ ÐºÐ¾Ð½Ñ‚ÐµÐ½Ñ‚ Ð±Ñ‹Ð» Ð¿Ð¾Ð²ÐµÑ€Ñ… Ð·Ð°Ñ‚ÐµÐ¼Ð½ÐµÐ½Ð¸Ñ */
  z-index: 2; /* ÐšÐ¾Ð½Ñ‚ÐµÐ½Ñ‚ Ð²Ñ‹ÑˆÐµ Ð·Ð°Ñ‚ÐµÐ¼Ð½ÐµÐ½Ð¸Ñ */
  max-width: 800px;
  padding: 0 20px;
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: bold;
}

.hero-section .subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #e0e0e0;
}

/* Ð¡Ñ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ Ð¿Ð¾Ð¸ÑÐºÐ¾Ð²Ð¾Ð¹ ÑÑ‚Ñ€Ð¾ÐºÐ¸ */
.search-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  position: relative;
}

.search-bar input {
  width: 100%;
  height: 100%;
  padding: 12px;
  border: none;
  border-radius: 5px 0 0 5px;
  font-size: 1rem;
  outline: none;
  position: relative;
}

.search-bar-input {
    width: 50%;
    position: relative;
}

.search-bar .search-button {
  padding: 12px 20px;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

/* Ð¡Ñ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ ÐºÐ½Ð¾Ð¿Ð¾Ðº (Ð±ÐµÐ· Ñ†Ð²ÐµÑ‚Ð¾Ð²) */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.hero-buttons .btn {
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  .search-bar input {
    width: 80%;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .hero-section {
    margin: -20px -20px 10px -20px;
  height: calc(100vh - 60px); /* Ð’Ñ‹ÑÐ¾Ñ‚Ð° Ð²Ð¾ Ð²ÐµÑÑŒ ÑÐºÑ€Ð°Ð½ */
  }
}

/* ÐžÑÐ½Ð¾Ð²Ð½Ñ‹Ðµ ÑÑ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ Ð±Ð»Ð¾ÐºÐ° ÐºÐ°Ñ‚ÐµÐ³Ð¾Ñ€Ð¸Ð¹ */
.categories-section {
  padding: 44px 12px;
  background-color: #f9f9f9;
  text-align: center;
}

.categories-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 10px;
  padding-right: 10px;
}

.categories-section h2 {
  font-size: 2rem;
  margin-bottom: 28px;
  color: #333;
}

/* Ð¡ÐµÑ‚ÐºÐ° Ð´Ð»Ñ ÐºÐ°Ñ‚ÐµÐ³Ð¾Ñ€Ð¸Ð¹ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto 28px;
}

.categories-grid > a {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

/* Ð¡Ñ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ ÐºÐ°Ñ€Ñ‚Ð¾Ñ‡ÐºÐ¸ ÐºÐ°Ñ‚ÐµÐ³Ð¾Ñ€Ð¸Ð¸ */
.category-card {
  box-sizing: border-box;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background-color: #fff;
  padding: 18px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.category-icon {
  flex-shrink: 0;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.category-icon img {
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
  max-width: 100%;
  object-fit: contain;
}

.category-card h3 {
  font-size: 1.35rem;
  margin: 0 0 8px;
  color: #333;
  width: 100%;
  max-width: 100%;
  line-height: 1.28;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  hyphens: auto;
}

.category-card p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
  width: 100%;
  max-width: 100%;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  hyphens: auto;
}

.category-icon svg {
  margin-bottom: 10px;
  max-width: 52px;
  max-height: 52px;
  width: auto;
  height: auto;
}

@media (max-width: 767px) {
  .categories-section {
    padding: 32px 8px;
  }

  .categories-section .container {
    padding-left: 6px;
    padding-right: 6px;
  }

  .categories-section h2 {
    font-size: 1.65rem;
    margin-bottom: 20px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
  }

  .category-card {
    padding: 12px 10px;
  }

  .category-card h3 {
    font-size: 1.05rem;
    line-height: 1.28;
  }

  .category-card p {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .category-icon svg {
    max-width: 44px;
    max-height: 44px;
  }
}

/* Ð¡Ñ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ ÐºÐ½Ð¾Ð¿ÐºÐ¸ "Ð’ÑÐµ ÐºÐ°Ñ‚ÐµÐ³Ð¾Ñ€Ð¸Ð¸" */
.categories-button .btn {
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 5px;
  text-decoration: none;
  background-color: #ff5722;
  color: #fff;
  transition: background-color 0.3s ease;
}

.categories-button .btn:hover {
  background-color: #e64a19;
}

.category-icon svg {
    margin-bottom: 10px;
}

/* ÐžÑÐ½Ð¾Ð²Ð½Ñ‹Ðµ ÑÑ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ Ð±Ð»Ð¾ÐºÐ° Ñ€ÐµÐ¹Ñ‚Ð¸Ð½Ð³Ð¾Ð² */
.ratings-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.ratings-section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #333;
}

/* ÐžÑÐ½Ð¾Ð²Ð½Ñ‹Ðµ ÑÑ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ Ð±Ð»Ð¾ÐºÐ° Ð¿Ñ€ÐµÐ¸Ð¼ÑƒÑ‰ÐµÑÑ‚Ð² */
.benefits-section {
  padding: 60px 20px;
  background-color: #fff;
}

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

.benefits-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Ð˜Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ðµ ÑÐ»ÐµÐ²Ð° */
.benefits-image {
  flex: 1;
}

.benefits-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ÐšÐ¾Ð½Ñ‚ÐµÐ½Ñ‚ ÑÐ¿Ñ€Ð°Ð²Ð° */
.benefits-content {
  flex: 2;
}

.benefits-content h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #333;
  text-align: center;
}

/* Ð¡ÐµÑ‚ÐºÐ° Ð´Ð»Ñ Ð¿Ñ€ÐµÐ¸Ð¼ÑƒÑ‰ÐµÑÑ‚Ð² */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

/* Ð¡Ñ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ ÐºÐ°Ñ€Ñ‚Ð¾Ñ‡ÐºÐ¸ Ð¿Ñ€ÐµÐ¸Ð¼ÑƒÑ‰ÐµÑÑ‚Ð²Ð° */
.benefit-card {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.benefit-icon img {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.benefit-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #333;
}

.benefit-card p {
  font-size: 1rem;
  color: #666;
}

/* ÐÐ´Ð°Ð¿Ñ‚Ð¸Ð²Ð½Ð¾ÑÑ‚ÑŒ */
@media (max-width: 768px) {
  .benefits-wrapper {
    flex-direction: column;
  }

  .benefits-image {
    width: 100%;
    max-width: 400px;
    margin-bottom: 40px;
  }

  .benefits-content h2 {
    text-align: center;
  }
}

/* ÐžÑÐ½Ð¾Ð²Ð½Ñ‹Ðµ ÑÑ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ Ð±Ð»Ð¾ÐºÐ° Ð¿Ñ€ÐµÐ¸Ð¼ÑƒÑ‰ÐµÑÑ‚Ð² Ð´Ð»Ñ Ð±Ð¸Ð·Ð½ÐµÑÐ° */
.business-benefits-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

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

.business-benefits-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Ð‘Ð»Ð¾ÐºÐ¸ Ñ Ñ‚ÐµÐºÑÑ‚Ð¾Ð¼ ÑÐ»ÐµÐ²Ð° */
.business-benefits-content {
  flex: 2;
}

.business-benefits-section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #333;
  text-align: center;
}

/* Ð¡ÐµÑ‚ÐºÐ° Ð´Ð»Ñ Ð¿Ñ€ÐµÐ¸Ð¼ÑƒÑ‰ÐµÑÑ‚Ð² */
.business-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

/* Ð¡Ñ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ ÐºÐ°Ñ€Ñ‚Ð¾Ñ‡ÐºÐ¸ Ð¿Ñ€ÐµÐ¸Ð¼ÑƒÑ‰ÐµÑÑ‚Ð²Ð° */
.benefit-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.benefit-icon img {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.benefit-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #333;
}

.benefit-card p {
  font-size: 1rem;
  color: #666;
}

/* Ð˜Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ðµ ÑÐ¿Ñ€Ð°Ð²Ð° */
.business-benefits-image {
  flex: 1;
}

.business-benefits-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ÐÐ´Ð°Ð¿Ñ‚Ð¸Ð²Ð½Ð¾ÑÑ‚ÑŒ */
@media (max-width: 768px) {

div#kt_app_header_container {
    padding-left: 20px !important;
}
	
  .business-benefits-wrapper {
    flex-direction: column;
  }

  .business-benefits-image {
    width: 100%;
    max-width: 400px;
    margin-top: 40px;
  }

  .business-benefits-section h2 {
    text-align: center;
  }
}

.business-benefits-button {
    text-align: center;
    margin-top: 65px;
}

/* Основные стили для блока Call to Action */
.cta-section {
  position: relative;
  padding: 80px 20px;
  background-image: url('https://image.cdn2.seaart.me/2025-03-22/cvf9mqde878c73bh5heg-2/029c2944ef37abe3ccfe3a7287d0d586_high.webp'); /* Фоновое изображение */
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

/* Затемнение фона */
.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Черный цвет с прозрачностью 50% */
  z-index: 1;
}

/* Контент блока */
.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #eee;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #f0f0f0;
}


/* Адаптивность */
@media (max-width: 768px) {
  .cta-section h2 {
    font-size: 2rem;
  }

  .cta-section p {
    font-size: 1rem;
  }

	div#kt_app_header {
		position: fixed;
		width: 100%;
		top: 0;
		z-index: 10;
	}
	
	div#kt_app_main {
		margin-top: 60px;
	}

	.header-logo{
		margin-left:6px;
	}
}

.blog-section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #333;
  text-align: center;
}

.blog-section {
	margin-top: 50px;
	margin-bottom: 50px;
}

  @media (max-width: 767.98px) { /* xs и sm */
    .hidden-xs {
      display: none !important;
    }
  }

/* Горизонтальные фильтры */
.filters-container {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.filters-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    position: relative;
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: var(--primary-light);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.filter-toggle:hover {
    background: #d6e0ff;
}

.filter-toggle i {
    font-size: 12px;
}

.filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 15px;
    z-index: 100;
    display: none;
    min-width: 250px;
    margin-top: 5px;
}

.filter-group.active .filter-dropdown {
    display: block;
}

.search-input {
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: border 0.2s;
    min-width: 250px;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item input {
    width: 16px;
    height: 16px;
}

.checkbox-item label {
    font-size: 14px;
    cursor: pointer;
}

/* Основной контент */
.content {
    display: flex;
    flex-direction: column;
    gap: 20px;
		position: relative;
}

/* Панель управления видом */
.view-controls {
    display: flex;
    gap: 10px;
    background: var(--card-bg);
    border-radius: 50px;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.view-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.view-btn.active {
    background: var(--primary-light);
    color: var(--bs-primary);
    font-weight: 500;
}

/* Блок карты */
.map-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    background: var(--card-bg);
    height: calc(100vh - 250px);
}

#map {
    width: 100%;
    height: 100%;
}

/* Блок карточек в гибридном режиме */
.cards-sidebar {
    position: absolute;
    right: 0;
    top: 0;
    width: 350px;
    height: 100%;
    background: white;
    border-left: 1px solid var(--border);
    overflow-y: auto;
    padding: 15px;
    display: none;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
}

/* Список центров */
.centers-list-container {
    display: none;
    /* overflow-y: auto; */
    max-height: calc(100vh - 300px);
}

.centers-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 16px;
}

/* Карточка центра */
.center-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: 1px solid var(--border);
    display: flex;
    height: 120px;
    flex-shrink: 0;
}

.center-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.center-card.active {
    border: 2px solid var(--bs-primary);
}

.card-image {
    width: 100px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.card-content {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
    white-space: nowrap;
    overflow: visible;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.card-address {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.card-services {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
    overflow: hidden;
    flex-grow: 1;
    max-height: 40px;
}

.service-tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

.itemcard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    flex-shrink: 0;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: var(--accent);
    font-size: 14px;
}

.card-button {
    padding: 6px 12px;
    background: var(--bs-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.card-button:hover {
    background: var(--bs-primary);
}

/* Режимы отображения */
.hybrid #map {
    width: calc(100% - 350px);
}

.hybrid .cards-sidebar {
    display: flex;
}

.hybrid .centers-list-container {
    display: none;
}

.map #map {
    width: 100%;
}

.map .cards-sidebar,
.map .centers-list-container {
    display: none;
}


.list .map-container,
.list .cards-sidebar {
    display: none;
}

.list .centers-list-container {
    display: block;
}

/* SEO Section Styles */
.seo-section {
    margin-bottom: 30px;
    margin-top: 30px;
    padding: 30px;
}

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

.seo-title {
  font-size: 28px;
  color: var(--bs-primary);
  margin-bottom: 20px;
  line-height: 1.3;
  font-weight: 700;
}

.seo-subtitle {
  font-size: 22px;
  color: #333;
  margin: 25px 0 15px;
  font-weight: 600;
}

.seo-paragraph {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 15px;
}

.highlighter {
  color: var(--bs-primary);
  font-weight: 500;
}

.seo-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.seo-list-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 16px;
}

.seo-icon {
  margin-right: 10px;
  flex-shrink: 0;
}

.seo-articles {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

.seo-criteria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.criterion {
  background: #F8FAFF;
  border-radius: 8px;
  padding: 20px;
  border-left: 3px solid var(--bs-primary);
}

.criterion-title {
  font-size: 18px;
  color: var(--bs-primary);
  margin-bottom: 10px;
}

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

.service-card {
  background: #F8FAFF;
  padding: 15px;
  border-radius: 8px;
  transition: transform 0.2s;
}

.service-card:hover {
  transform: translateY(-3px);
}

/* Адаптивность */
@media (max-width: 768px) {
  .seo-section {
    padding: 20px 15px;
  }
  
  .seo-title {
    font-size: 24px;
  }
  
  .seo-subtitle {
    font-size: 20px;
  }
  
  .seo-criteria {
    grid-template-columns: 1fr;
  }
}


/* Адаптивность */
@media (max-width: 1200px) {
    .cards-sidebar {
        width: 300px;
    }
    .hybrid #map {
        width: calc(100% - 300px);
    }
}

@media (max-width: 1024px) {
    .filters-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-dropdown {
        position: static;
        box-shadow: none;
        padding: 10px 0;
        display: none;
    }
    
    .filter-group.active .filter-dropdown {
        display: block;
    }
    
    .hybrid #map,
    .map #map {
        width: 100%;
    }
    
    .hybrid .cards-sidebar {
        display: none;
    }
    
    .hybrid .centers-list-container {
        display: block;
    }
}

@media (max-width: 768px) {
    .centers-list {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 400px;
    }
    
    .card-image {
        width: 80px;
    }
    
    .card-services {
        max-height: 30px;
    }
}

/* Добавьте в media queries для мобильных */
@media (max-width: 768px) {
    .view-btn[data-view="hybrid"] {
        display: none !important;
    }
    
    .map-container {
        height: 60vh;
    }
    
    /* Убедитесь, что карта занимает всю ширину */
    #map {
        width: 100% !important;
    }
}

/* Стили для выпадающего списка подсказок */
.search-suggestions {
  display: none;
  position: absolute;
  width: 100%;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  font-size: 14px;
  margin-top: -3px;
}

.search-suggestions.active {
  display: block;
}

.search-suggestions h4 {
  padding: 10px 16px 6px;
  margin: 0;
  font-size: 13px;
  color: #666;
  border-bottom: 1px solid #eee;
}

.search-suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-suggestions li {
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.search-suggestions li:hover {
  background-color: #f5f5f5;
}

.search-suggestions li a {
  text-decoration: none;
  color: #333;
  display: block;
}

.service-hero-img {
  display: block;
  min-height: 350px;
  max-height: 550px;
  object-fit: cover;
  object-position: center;
}
@media (min-width: 992px) {
  .service-hero-img {
    min-height: 550px;
  }
}
.service-type-tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background-color: #EEF2F7;
}
.service-type-tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  filter: brightness(0.5);
}
.service-type-tile .card-body {
  position: relative;
  z-index: 2;
}

.setup-home {
  padding: 24px 0 48px;
}

.setup-home h2 {
  font-size: 1.85rem;
  margin-bottom: 8px;
  color: #181c32;
}

.setup-progress-card {
  border: 0;
  box-shadow: 0 8px 24px rgba(24, 28, 50, 0.06);
}

.setup-next-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-radius: 12px;
  background: rgba(0, 158, 247, 0.08);
  border: 1px dashed #009ef7;
}

.setup-next-card--done {
  background: rgba(80, 205, 137, 0.1);
  border-color: #50cd89;
}

.setup-next-copy {
  flex: 1 1 280px;
}

.setup-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.setup-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 4px;
  border-top: 1px solid #eef0f4;
}

.setup-step:first-child {
  border-top: 0;
}

.setup-step.is-current {
  background: rgba(0, 158, 247, 0.04);
  margin: 0 -12px;
  padding-left: 16px;
  padding-right: 16px;
  border-radius: 10px;
  border-top-color: transparent;
}

.setup-step.is-done {
  opacity: 0.85;
}

.setup-step-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: #50cd89;
}

.setup-step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d8dbe6;
}

.setup-step.is-current .setup-step-dot {
  background: #009ef7;
}

.setup-step-body {
  flex: 1 1 auto;
  min-width: 0;
}

.setup-later-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.setup-later-card {
  display: block;
  padding: 18px 20px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #eef0f4;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(24, 28, 50, 0.04);
}

.setup-later-card:hover {
  border-color: #cdd2de;
  color: inherit;
}

.setup-later-grid--hub {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.setup-later-grid--core {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.setup-later-card--primary {
  padding: 26px 24px;
  border-color: #c5d4f0;
  border-top: 3px solid #009ef7;
  box-shadow: 0 8px 24px rgba(24, 28, 50, 0.08);
}

.setup-later-card--primary .fw-bold {
  font-size: 1.15rem;
}

.setup-later-card--primary:hover {
  border-color: #009ef7;
  box-shadow: 0 10px 28px rgba(0, 158, 247, 0.12);
}

.setup-complete-bar {
  background: #fff;
  border: 1px solid #e4e6ef;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(24, 28, 50, 0.04);
}

.setup-complete-bar-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.setup-complete-bar-summary::-webkit-details-marker,
.setup-complete-bar-summary::marker {
  display: none;
  content: '';
}

.setup-complete-bar-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #181c32;
}

.setup-complete-bar-mark {
  display: flex;
  align-items: center;
  color: #50cd89;
}

.setup-complete-bar-toggle {
  color: #7e8299;
  font-size: 13px;
  font-weight: 600;
}

.setup-complete-bar .is-open {
  display: none;
}

.setup-complete-bar[open] .is-open {
  display: inline;
}

.setup-complete-bar[open] .is-closed {
  display: none;
}

.setup-complete-bar-body {
  padding: 4px 18px 16px;
  border-top: 1px solid #eef0f4;
}

@media (min-width: 992px) {
  .setup-later-grid--hub {
    grid-template-columns: repeat(4, 1fr);
  }

  .setup-later-grid--core {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .setup-next-card {
    padding: 18px;
  }

  .setup-home h2 {
    font-size: 1.5rem;
  }
}


/* === home-feed-section (Trello d9Xk9qHO) === */
.home-feed-section{padding:48px 0;overflow-x:hidden}
.home-feed-block+.home-feed-block{margin-top:40px}
.home-feed-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:20px}
.home-feed-head h2{margin:0}
.home-feed-all{color:var(--bs-primary,#009EF7);font-size:1.075rem;font-weight:600;text-decoration:none}
.home-feed-all:hover{text-decoration:underline}
.home-feed-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.home-feed-card{display:flex;flex-direction:column;background:#fff;border:1px solid #E8ECF2;border-radius:12px;overflow:hidden;color:inherit;text-decoration:none;box-shadow:0 1px 3px rgba(16,24,40,.06);transition:box-shadow 150ms,transform 150ms,border-color 150ms;min-height:44px}
.home-feed-card:hover{border-color:rgba(0,158,247,.2);box-shadow:0 6px 18px rgba(16,24,40,.1);transform:translateY(-2px);color:inherit}
.home-feed-card:active{transform:scale(.99)}
.home-feed-card:focus-visible{outline:2px solid var(--bs-primary,#009EF7);outline-offset:2px}
.home-feed-body{padding:14px 16px 16px;flex:1;display:flex;flex-direction:column;gap:6px}
.home-review-card .home-feed-body{padding:16px}
.home-company-preview{aspect-ratio:16/10;background:#EEF2F7;display:flex;align-items:center;justify-content:center;overflow:hidden}
.home-company-preview img{width:100%;height:100%;object-fit:cover;padding:0;box-sizing:border-box}
.home-company-mono{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#E5EBFF;color:#009EF7;font-weight:700;font-size:2.5rem}
.home-feed-title{font-size:1.15rem;font-weight:700;color:#181C32;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;transition:color 150ms}
.home-feed-card:hover .home-feed-title,.home-feed-card:hover .home-review-company{color:var(--bs-primary,#009EF7)}
.home-feed-muted{font-size:.95rem;color:#A1A5B7}
.home-feed-clamp1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-feed-city{display:flex;align-items:center;gap:4px}
.home-review-chip{align-self:flex-start;background:#E5EBFF;color:#009EF7;border-radius:8px;padding:2px 8px;font-weight:700;font-size:.95rem}
.home-review-text{font-size:1.075rem;color:#3F4254;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;flex:1}
.home-review-company{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #EEF2F7;padding-top:12px;margin-top:12px;font-weight:600;font-size:.95rem;color:#181C32;transition:color 150ms}
@media (max-width:1199px){.home-feed-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:767px){.home-feed-section{padding:32px 0}.home-feed-block+.home-feed-block{margin-top:32px}.home-feed-grid{grid-template-columns:minmax(0,1fr);gap:12px}.home-company-preview{aspect-ratio:16/9}}

/* P1: company sidebar logo — contain, bottom kept clear of stats tiles (.mt-n20 = -5rem) */
.card-header.company-logo-cover{background-color:#f5f8fa;background-size:contain!important;background-position:center center!important;background-repeat:no-repeat!important;background-origin:content-box;padding:16px 16px calc(5rem + 12px)!important;box-sizing:border-box}
/* voV6rjwu P0: company header logo = 100% of header height (was max-height:50px) */
/* notes-r1 P1: cap width to the logo zone (before menu); no max-height:50px; wide logos contain, narrow stay full height */
#kt_app_header .header-logo{align-self:stretch;display:flex;align-items:center;min-width:0;flex:0 1 auto;max-width:min(42%,360px);max-height:100%;padding-block:4px;box-sizing:border-box;overflow:hidden}
#kt_app_header .header-logo>a{display:flex;align-items:center;justify-content:flex-start;height:100%;max-height:100%;max-width:100%;min-width:0}
#kt_app_header .header-logo img.logo-business_custom{height:100%;width:auto;max-height:100%;max-width:100%;object-fit:contain;object-position:left center}
/* notes-r1 P1 (<992px): logo zone = all free space between burger and navbar (no % cap), so mid-width logos keep full height and wide ones contain */
@media (max-width:991.98px){#kt_app_header .header-logo{max-width:none;flex:1 1 0;min-width:0;margin-right:.75rem!important}}

/* === A1EXRBsi: unified cards + home slider === */
.cv-slider .home-feed-head{display:flex;align-items:center;gap:12px}
.cv-slider .home-feed-head h2{margin-right:auto}
.cv-slider-nav{display:flex;gap:6px}
.cv-slider-btn{width:36px;height:36px;border-radius:50%;border:1px solid #E4E6EF;background:#fff;font-size:22px;line-height:1;color:#3F4254;cursor:pointer}
.cv-slider-btn:disabled{opacity:.35;cursor:default}
.cv-slider--static .cv-slider-nav{visibility:hidden}
.cv-slider-track{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;padding:4px 2px 12px;scrollbar-width:thin}
.cv-slide{scroll-snap-align:start;flex:0 0 auto}
.cv-slider-track--companies .cv-slide{width:calc((100% - 2*16px)/2.6)}
.cv-slider-track--reviews .cv-slide{width:calc((100% - 16px)/1.6)}
@media(max-width:991px){.cv-slider-track--companies .cv-slide{width:calc((100% - 16px)/1.7)}.cv-slider-track--reviews .cv-slide{width:calc((100% - 16px)/1.3)}}
@media(max-width:575px){.cv-slider-track--companies .cv-slide,.cv-slider-track--reviews .cv-slide{width:85%}.cv-slider-nav{display:none}}
.cv-company-card{background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.08);border:1px solid #E4E6EF;display:flex;height:120px;cursor:pointer;transition:transform .2s,box-shadow .2s}
.cv-company-card:hover{transform:translateY(-3px);box-shadow:0 4px 12px rgba(0,0,0,.12)}
.cv-company-card--sm{height:108px}
.cv-card-preview{width:100px;flex-shrink:0;background:#EEF2F7;display:flex;align-items:center;justify-content:center}
.cv-company-card--sm .cv-card-preview{width:92px}
.cv-card-preview .card-image{width:100%;height:100%;object-fit:cover;padding:0;box-sizing:border-box}
.cv-company-card .card-content{padding:12px;flex:1;display:flex;flex-direction:column;min-width:0}
.cv-company-card .card-title{font-size:16px;font-weight:600;margin:0 0 6px;color:#181C32;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cv-company-card .card-address{font-size:13px;color:#7E8299;display:flex;align-items:center;gap:6px;min-width:0}
.cv-company-card .card-address span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cv-company-card .itemcard-footer{display:flex;justify-content:space-between;align-items:center;margin-top:auto}
.cv-company-card .card-rating{display:flex;align-items:center;gap:4px;font-weight:600;color:#FFAD0F;font-size:14px}
.cv-company-card .card-button{padding:6px 12px;background:var(--bs-primary,#009EF7);color:#fff;border-radius:6px;font-size:13px}
.cv-review-card{height:100%;border:1px solid #E4E6EF;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.cv-review-card .card-body{padding:20px}
.cv-review-card .symbol img{width:45px;height:45px;border-radius:6px;object-fit:cover}
.cv-review-text{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.cv-chip-rating svg{margin-right:4px;vertical-align:-3px}
/* catalog list card: logo contain on soft bg (A1EXRBsi) */
.center-card .card-image{object-fit:cover!important;background:#EEF2F7;padding:0;box-sizing:border-box}
/* i45klVpQ P0: hero search stack <=767 */
@media (max-width: 767.98px) {
  .hero-section .search-bar{flex-direction:column;align-items:stretch;gap:10px;width:100%;max-width:100%}
  .hero-section .search-bar-input{width:100%}
  .hero-section .search-bar input{width:100%;min-height:48px;height:48px;border-radius:5px;box-sizing:border-box}
  .hero-section .search-bar .search-button{width:100%;min-height:48px;border-radius:5px}
  .hero-section .hero-buttons{align-items:stretch}
  .hero-section .hero-buttons .btn{width:100%}
}
@media (min-width: 768px) {
  .hero-section .search-bar-input{min-width:260px}
}
/* i45klVpQ P0: review card chips no clip */
.cv-review-card .card-body>.d-flex:last-child{flex-wrap:wrap;gap:8px}
.cv-review-card .cv-chip-rating,.cv-review-card .cv-chip-comments{white-space:nowrap;display:inline-flex;align-items:center;line-height:1.3;height:auto;min-height:32px;margin-right:0!important;padding-left:12px!important;padding-right:12px!important}
.cv-review-card .cv-chip-rating{font-variant-numeric:tabular-nums}
.cv-review-card .cv-chip-comments svg{margin-right:4px}


/* === epo0LjEv P2 homepage/storefront UX === */
/* Equal preview tiles; 2-line titles; no dark empty service holes; tighter description gaps */

.categories-grid {
  align-items: stretch;
}
.category-card {
  min-height: 168px;
}
.category-icon {
  min-height: 56px;
  margin-bottom: 4px;
}
.category-icon:empty::before {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8eef7 0%, #d7e3f4 100%);
}
.category-card h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  word-break: normal;
}
.category-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 0;
  flex: 0 1 auto;
  min-height: 0;
}
.category-card p:empty {
  display: none;
}
.categories-section {
  padding-bottom: 8px;
}
.categories-section + .home-feed-section,
.categories-section + .zima-home-banner,
.zima-home-banner + .home-feed-section {
  margin-top: 0;
}

/* Company cards in «Новые компании»: fixed preview, 2-line name */
.cv-company-card,
.cv-company-card--sm {
  height: 112px;
  align-items: stretch;
}
.cv-card-preview {
  height: 100%;
  width: 96px;
  background: #EEF2F7;
}
.cv-company-card .card-title {
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  max-height: 2.5em;
}
.cv-company-card .card-rating:empty {
  display: none;
}

/* Service tiles on /uslugi/ boards: light empty stub + 2-line titles (epo0LjEv) */
.service-type-tile {
  background: #EEF2F7;
}
.service-type-tile.service-type-tile--empty {
  background: #EEF2F7;
  border: 1px solid #E4E6EF;
}
.service-type-tile-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  color: #009EF7;
  opacity: 0.28;
  pointer-events: none;
  user-select: none;
}
.service-type-tile--empty .card-body > .fw-bold,
.service-type-tile--empty .card-body > .text-white.fw-bold {
  color: #181C32 !important;
}
.service-type-tile--empty .card-body > span,
.service-type-tile--empty .card-body > .text-white.opacity-75 {
  color: #7E8299 !important;
  opacity: 1 !important;
}
.service-type-tile .card-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  padding: 18px !important;
}
.service-type-tile .card-body > .fw-bold,
.service-type-tile .card-body > .text-white.fw-bold {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.25;
  max-height: 2.5em;
  margin-top: 0 !important;
  /* notes-r1 P2: no mid-word breaks («Шиномон таж») — font scales to tile width, ru hyphenation as fallback */
  font-size: clamp(0.8rem, 10cqi, 1.45rem) !important;
  overflow-wrap: break-word;
  word-break: normal;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.service-type-tile {
  container-type: inline-size;
}
.service-type-tile .card-body {
  padding: clamp(10px, 8cqi, 18px) !important;
}
.service-type-tile .card-body > span {
  white-space: nowrap;
}

/* Ad between feed and benefits broke rhythm — keep spacing calm when ad present later */
.home-feed-section + .ad-block,
.home-feed-section + .row.ad-block {
  margin-top: 8px;
}
.ad-block .card.card-flush.mt-10 {
  margin-top: 12px !important;
}

@media (max-width: 767px) {
  .category-card {
    min-height: 148px;
    padding: 12px 10px;
  }
  .category-card h3 {
    -webkit-line-clamp: 3;
  }
  .category-card p {
    -webkit-line-clamp: 2;
  }
  .cv-company-card,
  .cv-company-card--sm {
    height: 104px;
  }
}

/* notes-r1 P2: guest business description — drop editor min-height:200px (plugins.bundle .ck-content) that left a gap above service tiles */
.col-lg-9 > .card > .card-body > .ck-content:not(.ck-editor__editable){min-height:0}

/* notes-r2 P2: service tile without photo — dark fallback (WCAG AA: title #fff on #25304A..#141A2B ≥ 13:1; price rgba(255,255,255,.85) ≥ 9:1) */
.service-type-tile.service-type-tile--empty,
html.carlov-company-theme .service-type-tile.service-type-tile--empty {
  background-color: #1B2236 !important;
  background-image: linear-gradient(135deg, #25304A 0%, #141A2B 100%) !important;
  border: 0 !important;
}
.service-type-tile.service-type-tile--empty .service-type-tile-fallback {
  color: #FFFFFF;
  opacity: 0.12;
}
.service-type-tile.service-type-tile--empty .card-body > .fw-bold,
.service-type-tile.service-type-tile--empty .card-body > .text-white.fw-bold {
  color: #FFFFFF !important;
}
.service-type-tile.service-type-tile--empty .card-body > span,
.service-type-tile.service-type-tile--empty .card-body > .text-white.opacity-75 {
  color: rgba(255, 255, 255, 0.85) !important;
  opacity: 1 !important;
}

/* notes-r3 P2: bottom scrim under tile text on every photo tile (photo itself unchanged, still brightness .5).
   Worst case = white photo area (128 gray after the filter): at the top of a 2-line title + price (~75% height) alpha ≥ .30 → ≥ 6:1 for #fff. */
.service-type-tile:not(.service-type-tile--empty)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .58) 35%, rgba(0, 0, 0, .30) 75%, rgba(0, 0, 0, 0) 100%);
}
