/* =========================
   CTA / CONTACTS — CENTERED + WhatsApp GREEN
========================= */

.cta{
  position: relative;
  padding: clamp(74px, 6vw, 110px) 0;
  background: linear-gradient(to bottom, #f5f6f7 0%, #ffffff 55%, #ffffff 100%);
}

.cta::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:54px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.06), rgba(0,0,0,0));
  pointer-events:none;
}

.cta__header{
  text-align: center;
  max-width: 780px;
  margin: 0 auto 42px;
}

.cta__title{
  margin: 0 0 12px;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1f2937;
}

.cta__subtitle{
  margin: 0 auto;
  max-width: 66ch;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(31,41,55,0.72);
}

/* Layout */
.cta__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

.cta__grid--contactsOnly{
  justify-items: center;
}

/* Hide old left form if it exists anywhere */
.cta-form{
  display: none !important;
}

/* Main card container */
.cta-side--only{
  width: 100%;
  max-width: 860px;
}

.cta-side__card{
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(17,24,39,0.08);
  border-radius: 26px;
  padding: 28px 26px 22px;
  box-shadow: 0 18px 56px rgba(17,24,39,0.06);

  /* ✅ центрируем весь контент */
  text-align: center;
}

/* Title + text centered */
.cta-side__title{
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
  color: #111827;
}

.cta-side__text{
  margin: 0 auto 18px;
  max-width: 64ch;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(31,41,55,0.72);
}

/* -------------------------
   ITEMS LAYOUT (centered)
------------------------- */
.cta-side__items{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px auto 14px;
  justify-content: center;
}

/* Base link cards */
.cta-link{
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px;
  border-radius: 18px;
  text-decoration: none;
  border: 1px solid rgba(17,24,39,0.10);
  background: rgba(249,250,251,0.92);
  transition: border-color .2s ease, transform .2s ease, background .2s ease, box-shadow .2s ease;
  min-height: 66px;

  /* ✅ центр текста в карточках */
  align-items: center;
  text-align: center;
}

.cta-link:hover{
  transform: translateY(-1px);
  border-color: rgba(17,24,39,0.16);
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(17,24,39,0.08);
}

.cta-link__k{
  font-size: 12px;
  font-weight: 800;
  color: rgba(31,41,55,0.62);
}

.cta-link__v{
  font-size: 15px;
  font-weight: 900;
  color: #111827;
  word-break: break-word;
}

/* -------------------------
   WhatsApp = BIG PRIMARY CTA (GREEN)
------------------------- */
.cta-link--wa{
  grid-column: 1 / -1;
  order: -1;
  position: relative;

  /* bigger + button-like */
  padding: 18px 18px 18px 64px;
  min-height: 86px;
  border-radius: 22px;

  /* ✅ green styling */
  border-color: rgba(34,197,94,0.28);
  background:
    radial-gradient(900px 220px at 10% 0%, rgba(34,197,94,0.22), rgba(34,197,94,0.10) 55%, rgba(255,255,255,0.0) 100%),
    rgba(34,197,94,0.10);

  box-shadow:
    0 18px 50px rgba(34,197,94,0.12),
    0 18px 56px rgba(17,24,39,0.06);

  /* ✅ чтобы лейблы по центру */
  align-items: center;
}

.cta-link--wa .cta-link__k{
  color: rgba(17,24,39,0.68);
}

.cta-link--wa .cta-link__v{
  color: #16a34a; /* green */
  font-size: 18px;
  letter-spacing: -0.01em;
}

.cta-link--wa:hover{
  transform: translateY(-2px);
  border-color: rgba(34,197,94,0.44);
  box-shadow:
    0 22px 60px rgba(34,197,94,0.18),
    0 20px 60px rgba(17,24,39,0.10);
  background:
    radial-gradient(900px 220px at 10% 0%, rgba(34, 197, 94, 0.373), rgba(34, 197, 94, 0.274) 55%, rgba(255, 255, 255, 0.044) 100%),
    rgba(34, 197, 94, 0.355);
}

/* WhatsApp icon */
.cta-link--wa::before{
  content:"";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  background-image: url("/assets/img/WhatsApp.svg.webp");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.98;
}

/* arrow */
.cta-link--wa::after{
  content:"→";
  position:absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 900;
  color: rgba(22,163,74,0.95);
}

/* -------------------------
   Badges centered
------------------------- */
.cta-side__badge{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.cta-badge{
  font-size: 12px;
  font-weight: 800;
  color: rgba(31,41,55,0.72);
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.18);
  padding: 8px 10px;
  border-radius: 999px;
}

/* Note centered */
.cta-note{
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(31,41,55,0.55);
}

.cta-note--contacts{
  margin-top: 14px;
  text-align: center;
}

/* Responsive */
@media (max-width: 820px){
  .cta-side__items{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px){
  .cta-side__card{
    padding: 22px 18px 18px;
    border-radius: 22px;
  }

  .cta-link--wa{
    padding-left: 58px;
    min-height: 80px;
  }

  .cta-link--wa::before{
    left: 16px;
    width: 28px;
    height: 28px;
  }

  .cta-link--wa::after{
    right: 16px;
  }
}
