.v3-logo { display: inline-flex; align-items: center; text-decoration: none; }
.v3-logo-img { height: 44px; width: auto; display: block; }
.v3-nav-link[href="#/delivery"], .v3-top-nav a[href="#/delivery"] { white-space: nowrap; }
@media (min-width: 992px) {
  .v3-hero-container { display: flex; align-items: stretch; }
  .v3-hero-left { display: flex; flex-direction: column; justify-content: space-between; }
  .v3-hero-right { display: flex; flex-direction: column; flex: 1; }
  .v3-hero-banner-box { height: 100%; display: flex; }
  .v3-hero-banner-img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
}
@media (max-width: 991px) {
  .v3-hero-banner-img { width: 100%; height: auto; object-fit: cover; border-radius: 12px; display: block; }
}
.v3-brands-flow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.v3-brand-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; cursor: pointer; font-size: 0.95rem; color: #1e293b; }
.v3-brand-logo { height: 24px; width: auto; object-fit: contain; display: block; }
.calc-illustration-img { width: 100%; max-width: 320px; height: auto; border-radius: 8px; display: block; object-fit: cover; }
.delivery-illustration-img { width: 100%; max-width: 450px; height: auto; border-radius: 8px; display: block; object-fit: cover; }
.k-company-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.k-contact-col { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.k-map-col { display: flex; flex-direction: column; height: 100%; }
.k-map-iframe { width: 100%; flex: 1; min-height: 280px; border: 1px solid #e2e8f0; border-radius: 8px; }
.k-map-link { margin-top: 8px; display: inline-block; font-size: 0.9rem; color: #2563eb; text-decoration: none; }
.k-map-link:hover { text-decoration: underline; }
.k-page-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
@media (max-width: 768px) { .k-company-cols { grid-template-columns: 1fr; } }
#hits .k-card-top, #hits .v3-product-top, #hits .k-product-cover { background-color: #ffffff; }
#hits .k-card-img, #hits .v3-product-img { object-fit: contain; }
.k-dialog { border: none; border-radius: 12px; padding: 0; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04); max-width: 500px; width: 90vw; }
.k-dialog::backdrop { background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); }
.k-dialog-content { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.k-dialog-header { display: flex; justify-content: space-between; align-items: center; }
.k-dialog-header h3 { margin: 0; font-size: 1.25rem; }
.k-dialog-close-btn { background: transparent; border: none; font-size: 1.25rem; cursor: pointer; padding: 4px 8px; color: #64748b; }
.k-dialog-close-btn:hover { color: #0f172a; }
@media(min-width:992px){
.v3-hero-container{display:grid;grid-template-columns:minmax(0,55fr) minmax(0,45fr);align-items:stretch}
.v3-hero-right{flex:none;width:auto;height:auto}
.v3-hero-banner-box{height:auto}
.v3-hero-banner-img{height:100%;aspect-ratio:16/10;object-fit:cover}
.v3-hero-left{display:flex;flex-direction:column;justify-content:space-between}
.v3-hero-features{margin-top:auto}
}
.v3-brand-col{display:flex;flex-direction:column;min-width:0}
.v3-brand-col .v3-tagline{display:block!important;max-width:100%;white-space:normal;overflow-wrap:break-word}
.k-category-tile[href*="#/category/klinkernyij-kirpich"] img,
.k-category-tile[href*="#/category/giperpressovannyij-kirpich"] img,
.k-category-tile[href*="#/category/plityi-perekryitiya"] img{object-fit:contain}
.delivery-illustration-img{aspect-ratio:4/3;object-position:50% 75%}

.v3-brands-section .logo,.v3-brands-section [class*="logo"],.v3-brands-section .logo img{max-width:100px;object-fit:contain}.v3-brands-section .row,.v3-brands-section [class*="row"],.v3-brands-section button,.v3-brands-section .btn,.v3-brands-section [class*="btn"],.v3-brands-section [class*="button"]{min-width:0;max-width:100%;white-space:normal;word-break:break-word;overflow-wrap:anywhere}


.v3-brand-col .v3-tagline { margin-top: -10px; }
.v3-brands-section .v3-brands-row, .v3-brands-section .v3-brands-flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.v3-brands-section .v3-brand-btn { display: inline-flex; align-items: center; justify-content: center; padding: 6px 14px; }
.v3-brands-section .logo, .v3-brands-section [class*="logo"], .v3-brands-section .logo img, .v3-brands-section .v3-brand-logo { max-width: 140px; height: 40px; width: auto; object-fit: contain; }

#selection .calc-illustration-img {
  width: 100%;
  max-width: none;
  aspect-ratio: 2.2 / 1;
  object-fit: cover;
  object-position: center;
  margin-bottom: 16px;
}

@media (min-width: 901px) {
  #selection .selection-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  #selection .steps-timeline {
    height: 100%;
    justify-content: space-between;
  }

  #selection .calc-form-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  #delivery .delivery-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
  }

  #delivery .delivery-illustration-box {
    height: 100%;
    min-height: 0;
  }

  #delivery .delivery-illustration-img {
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: 50% 75%;
  }
}


#k-consultation-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
}

#k-consultation-dialog .k-dialog-close-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #0f172a;
}

#contacts .k-company-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
#contacts .k-company-header .section-header { margin: 0; }
#contacts .k-company-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
#contacts .k-contact-col { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
#contacts .k-page-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
#contacts .k-map-col { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
#contacts .k-map-frame { position: relative; width: 100%; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; background: #f8fafc; }
#contacts .k-map-image-link { display: block; position: relative; width: 100%; line-height: 0; }
#contacts .k-map-img { width: 100%; height: auto; display: block; object-fit: cover; }
#contacts .k-map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); width: 36px; height: 36px; color: #dc2626; pointer-events: none; z-index: 2; }
#contacts .k-map-attribution { position: absolute; right: 6px; bottom: 6px; font-size: 11px; line-height: 1.2; background: rgba(255, 255, 255, 0.85); padding: 2px 6px; border-radius: 4px; color: #334155; text-decoration: none; z-index: 2; }
#contacts .k-map-attribution:hover { text-decoration: underline; }
#contacts .k-map-link { margin-top: 8px; display: inline-block; font-size: 0.9rem; color: #2563eb; text-decoration: none; }
#contacts .k-map-link:hover { text-decoration: underline; }
@media (max-width: 768px) {
  #contacts .k-company-header { flex-direction: column; align-items: flex-start; }
  #contacts .k-company-cols { grid-template-columns: 1fr; gap: 24px; }
  #contacts .k-contact-col, #contacts .k-map-col { height: auto; }
}
