/* Раздел /kotly/ — каталог котлов Haier */
.kotly-phone-bar {
  position: sticky;
  top: 0;
  z-index: 120;
  background: #149aa5;
  color: #fff;
  font-size: 0.88rem;
  padding: 0.45rem 0;
}

.kotly-phone-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.kotly-phone-bar__link {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}

.kotly-district-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.kotly-district-card {
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.kotly-district-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: #0b1f3a;
}

.kotly-district-card p {
  margin: 0;
  font-size: 0.88rem;
  color: #5a6b82;
  line-height: 1.5;
}

.kotly-page .site-nav a[href^="/kotly"] {
  color: var(--cyan, #1bb8c4);
  font-weight: 600;
}

.kotly-hero {
  background: linear-gradient(135deg, #0b1f3a 0%, #132d52 55%, #0b1f3a 100%);
  color: #fff;
  padding: 2.5rem 0 3rem;
}

.kotly-hero--sub {
  padding: 2rem 0 2.5rem;
}

.kotly-hero__grid {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 280px);
  gap: 2rem;
  align-items: start;
}

.kotly-hero h1 {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  margin: 0.75rem 0 1rem;
  line-height: 1.2;
}

.kotly-hero__lead {
  color: #b8c4d4;
  font-size: 1.05rem;
  max-width: 52ch;
  margin-bottom: 1.5rem;
}

.kotly-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.kotly-hero--sub .breadcrumbs a {
  color: #1bb8c4;
}

.kotly-triggers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.88rem;
  color: #b8c4d4;
}

.kotly-triggers li::before {
  content: "✓ ";
  color: #1bb8c4;
}

.kotly-hero__badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(27, 184, 196, 0.35);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
}

.kotly-hero__badge strong {
  display: block;
  font-size: 2rem;
  color: #1bb8c4;
}

.kotly-hero__badge-sub {
  display: block;
  font-size: 0.8rem;
  color: #b8c4d4;
  margin-top: 0.5rem;
}

.kotly-hub-links {
  text-align: center;
  padding: 1rem 0 0;
  color: #5a6b82;
}

.kotly-hub-links a {
  font-weight: 500;
}

.kotly-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.kotly-benefit {
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.kotly-benefit strong {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #0b1f3a;
  color: #1bb8c4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.kotly-benefit p {
  margin: 0;
  font-size: 0.92rem;
  color: #5a6b82;
}

.kotly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.kotly-card {
  background: #fff;
  border: 1px solid #e8edf4;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(11, 31, 58, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kotly-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(11, 31, 58, 0.1);
}

.kotly-card__img-wrap {
  display: block;
  background: #f4f7fb;
  padding: 1rem;
  text-align: center;
}

.kotly-card__img-wrap img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.kotly-card__body {
  padding: 1.1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.kotly-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #0b1f3a;
}

.kotly-card__meta {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.82rem;
  color: #5a6b82;
}

.kotly-card__stock {
  font-size: 0.85rem;
  color: #149aa5;
  margin: 0.5rem 0;
}

.kotly-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.kotly-price {
  background: #f4f7fb;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
}

.kotly-price--compact {
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
}

.kotly-price__row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.kotly-price__row--ours strong {
  color: #0b1f3a;
  font-size: 1.15rem;
}

.kotly-price__save {
  color: #149aa5;
  font-weight: 600;
  font-size: 0.85rem;
}

.kotly-price__note {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #5a6b82;
  line-height: 1.4;
}

.kotly-area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.kotly-area-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid #e8edf4;
}

.kotly-area-card h3 {
  margin: 0 0 0.35rem;
  color: #0b1f3a;
}

.kotly-area-kw {
  font-size: 0.8rem;
  color: #5a6b82;
  font-style: italic;
}

.kotly-table {
  width: 100%;
  border-collapse: collapse;
}

.kotly-table th,
.kotly-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e8edf4;
}

.kotly-table-note {
  font-size: 0.82rem;
  color: #5a6b82;
  margin-top: 0.75rem;
}

.kotly-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.kotly-step {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid #e8edf4;
}

.kotly-step span {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #1bb8c4;
  color: #fff;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.kotly-step p {
  margin: 0;
  font-size: 0.9rem;
  color: #5a6b82;
}

.kotly-form-wrap {
  max-width: 520px;
  margin: 0 auto;
}

.kotly-form-wrap h2 {
  text-align: center;
  color: #0b1f3a;
}

.kotly-form-messengers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: #5a6b82;
}

.kotly-product-hero__grid {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 2rem;
  align-items: start;
}

.kotly-product-hero img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #f4f7fb;
}

.kotly-screenshot {
  max-width: 320px;
  border-radius: 8px;
  border: 1px solid #e8edf4;
  margin-top: 1rem;
}

.kotly-visuals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.kotly-visuals--single {
  grid-template-columns: 1fr;
}

.kotly-visuals--hero {
  align-self: start;
}

.kotly-visuals__item {
  margin: 0;
  background: #f4f7fb;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e8edf4;
}

.kotly-visuals__item img {
  display: block;
  width: 100%;
  height: auto;
}

.kotly-visuals__item figcaption {
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  color: #5a6b82;
  text-align: center;
  background: #fff;
}

.kotly-visuals__item--ours figcaption {
  color: #149aa5;
  font-weight: 600;
}

.kotly-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
  line-height: 0;
}

.kotly-zoom:focus-visible {
  outline: 2px solid #1bb8c4;
  outline-offset: 2px;
  border-radius: 12px;
}

.kotly-zoom__badge {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(11, 31, 58, 0.72);
  pointer-events: none;
}

.kotly-zoom__badge::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid #fff;
  border-radius: 50%;
  top: 0.45rem;
  left: 0.45rem;
}

.kotly-zoom__badge::after {
  content: "";
  position: absolute;
  width: 0.45rem;
  height: 2px;
  background: #fff;
  transform: rotate(45deg);
  right: 0.38rem;
  bottom: 0.42rem;
}

.kotly-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.kotly-lightbox[hidden] {
  display: none;
}

.kotly-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 58, 0.92);
  cursor: zoom-out;
}

.kotly-lightbox__panel {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1400px);
  max-height: 96vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.kotly-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(96vh - 4rem);
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  cursor: zoom-out;
}

.kotly-lightbox__caption {
  margin: 0;
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
  max-width: 720px;
  line-height: 1.4;
}

.kotly-lightbox__close {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #0b1f3a;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.kotly-lightbox__close:hover {
  background: #f4f7fb;
}

body.kotly-lightbox-open {
  overflow: hidden;
}

.btn--wa {
  border-color: #25d366 !important;
  color: #25d366 !important;
}

@media (max-width: 768px) {
  .kotly-hero__grid,
  .kotly-product-hero__grid {
    grid-template-columns: 1fr;
  }

  .kotly-visuals {
    grid-template-columns: 1fr;
  }

  .kotly-hero__badge {
    order: -1;
  }
}
