/* Homepage: price factors + SEO + articles carousel + measure CTA */
.home-ins {
  --hi-ink: #152029;
  --hi-muted: #5d6b78;
  --hi-steel: #1f3a52;
  --hi-green: #19b27f;
  --hi-green-deep: #0f8f64;
  --hi-orange: #e07a1f;
  --hi-line: rgba(31, 58, 82, 0.08);
  --hi-soft: #f3f7f5;
  --hi-cream: #f7f4ee;
  max-width: 1380px;
  margin: 0.5rem auto 0;
  padding: 0 1rem 1rem;
  font-family: Manrope, system-ui, sans-serif;
}

.home-ins__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hi-green-deep);
}

.home-ins__title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--hi-steel);
  line-height: 1.2;
}

.home-ins__lead {
  margin: 0 0 1.25rem;
  max-width: 52rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--hi-muted);
  font-weight: 560;
}

.home-ins__factors {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 2rem;
}

@media (min-width: 640px) {
  .home-ins__factors { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 980px) {
  .home-ins__factors { grid-template-columns: repeat(4, 1fr); }
}

.home-ins__factor {
  position: relative;
  display: grid;
  gap: 0.55rem;
  padding: 1.1rem 1rem 1.15rem;
  border: 1px solid var(--hi-line);
  border-radius: 16px;
  background:
    linear-gradient(165deg, #fff 0%, var(--hi-soft) 100%);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-ins__factor:hover {
  transform: translateY(-3px);
  border-color: rgba(25, 178, 127, 0.35);
  box-shadow: 0 14px 28px rgba(21, 32, 41, 0.07);
}

.home-ins__factor-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: rgba(25, 178, 127, 0.12);
  color: var(--hi-green-deep);
  font-size: 0.82rem;
  font-weight: 800;
}

.home-ins__factor h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 780;
  color: var(--hi-steel);
  line-height: 1.3;
}

.home-ins__factor p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--hi-muted);
  font-weight: 540;
}

.home-ins__factor-ico {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--hi-green);
  opacity: 0.85;
}

.home-ins__factor-ico svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-ins__prices-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: -0.5rem 0 2rem;
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--hi-green-deep);
  text-decoration: none;
}

.home-ins__prices-link:hover { text-decoration: underline; }

.home-ins__seo {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 2.25rem;
  padding: 1.35rem 1.25rem;
  border-radius: 20px;
  background:
    radial-gradient(900px 280px at 10% 0%, rgba(25, 178, 127, 0.1), transparent 55%),
    linear-gradient(145deg, var(--hi-cream), #fff 55%);
  border: 1px solid var(--hi-line);
}

@media (min-width: 860px) {
  .home-ins__seo {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    padding: 1.6rem 1.6rem;
  }
}

.home-ins__seo h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hi-steel);
}

.home-ins__seo p {
  margin: 0 0 0.75rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--hi-muted);
  font-weight: 560;
}

.home-ins__seo p:last-child { margin-bottom: 0; }

.home-ins__seo strong {
  color: var(--hi-steel);
  font-weight: 780;
}

.home-ins__seo-aside {
  display: grid;
  gap: 0.65rem;
}

.home-ins__chip {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--hi-line);
}

.home-ins__chip span {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--hi-green);
}

.home-ins__chip p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--hi-steel);
  font-weight: 650;
  line-height: 1.35;
}

/* Articles carousel */
.home-ins__blog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  margin: 0 0 1rem;
}

.home-ins__blog-head .home-ins__title { margin: 0; }

.home-ins__blog-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.home-ins__all {
  font-size: 0.92rem;
  font-weight: 750;
  color: var(--hi-green-deep);
  text-decoration: none;
}

.home-ins__all:hover { text-decoration: underline; }

.home-ins__nav-btn {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--hi-line);
  background: #fff;
  color: var(--hi-steel);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-ins__nav-btn:hover {
  background: var(--hi-soft);
  border-color: rgba(25, 178, 127, 0.4);
  color: var(--hi-green-deep);
}

.home-ins__nav-btn svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-ins__carousel {
  overflow: hidden;
  margin: 0 -0.25rem;
  padding: 0.25rem;

  touch-action: pan-y;
}

.home-ins__track {
  display: flex;
  gap: 1rem;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.home-ins__card {
  flex: 0 0 min(100%, 320px);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--hi-line);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

@media (min-width: 700px) {
  .home-ins__card { flex-basis: calc((100% - 1rem) / 2); }
}

@media (min-width: 1000px) {
  .home-ins__card { flex-basis: calc((100% - 2rem) / 3); }
}

.home-ins__card:hover {
  transform: translateY(-4px);
  border-color: rgba(25, 178, 127, 0.35);
  box-shadow: 0 16px 32px rgba(21, 32, 41, 0.08);
}

.home-ins__card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--hi-soft);
}

.home-ins__card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.home-ins__card:hover .home-ins__card-media img {
  transform: scale(1.04);
}

.home-ins__card-tag {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(21, 32, 41, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.home-ins__card-body {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1rem 1.15rem;
  flex: 1;
}

.home-ins__card-body h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 780;
  color: var(--hi-steel);
  line-height: 1.3;
}

.home-ins__card-body p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--hi-muted);
  font-weight: 540;
}

.home-ins__card-more {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--hi-green-deep);
}

.home-ins__dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin: 1rem 0 0;
}

.home-ins__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(31, 58, 82, 0.2);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.home-ins__dot.is-active {
  width: 1.35rem;
  background: var(--hi-green);
}

/* Free measure CTA */
.home-measure {
  --hm-green: #19b27f;
  --hm-green-deep: #0f8f64;
  --hm-orange: #e07a1f;
  margin: 2rem 0 0;
  font-family: Manrope, system-ui, sans-serif;
  border: 0;
  box-shadow: none;
}

.home-measure__inner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 220px;
  display: grid;
  align-items: center;
  padding: 2.5rem max(1.25rem, calc((100vw - 1380px) / 2));
  border: 0;
  box-shadow: none;
  background:
    linear-gradient(105deg, rgba(15, 40, 55, 0.88) 0%, rgba(15, 40, 55, 0.55) 48%, rgba(15, 40, 55, 0.35) 100%),
    url(/wp-content/uploads/2022/03/okna-pvh-v-Minske.jpg) center / cover no-repeat;
}

.home-measure__inner::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(25, 178, 127, 0.35), transparent 65%);
  z-index: -1;
  pointer-events: none;
}

.home-measure__wrap {
  max-width: 1380px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 800px) {
  .home-measure__wrap {
    grid-template-columns: 1.4fr auto;
    align-items: center;
  }
}

.home-measure__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.home-measure h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.15;
}

.home-measure p {
  margin: 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 540;
}

.home-measure__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.home-measure__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  border: 0;
  font: inherit;
  font-weight: 780;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.home-measure__btn:hover { transform: translateY(-1px); filter: brightness(1.05); }

.home-measure__btn--green {
  background: linear-gradient(135deg, var(--hm-green), var(--hm-green-deep));
  color: #fff;
}

.home-measure__btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}

@media (prefers-reduced-motion: reduce) {
  .home-ins__factor,
  .home-ins__card,
  .home-ins__card-media img,
  .home-ins__track,
  .home-measure__btn {
    transition: none;
  }
}
