/* страховка: светлая тема всегда перекрывает фон/цвет */
html[data-theme="light"] body{
  background: var(--bg-light);
  color: var(--text-light);
}

/* =========================
   CONTACT (ctc3)
========================= */
.ctc3{
  padding-top: calc(90px + var(--header-height));
  padding-bottom:calc(90px + var(--header-height)) ;
}


.ctc3__wrap{
  max-width: 1400px;
  margin: 0 auto;
}

.ctc3__title{
  margin: 0 0 42px;
  text-align: center;
  font-weight: 800;
  font-size: clamp(44px, 4vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

.ctc3__grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
}

/* LEFT */
.ctc3__card{
  border-radius: 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 55px rgba(0,0,0,.20);
  padding: 28px 28px 22px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.ctc3__cardTitle{
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.ctc3__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.ctc3__item{
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
}

.ctc3__icon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(59,130,246,.10);
  color: var(--accent);
}

.ctc3__text{
  color: rgba(234,241,255,.72);
  line-height: 1.6;
  font-size: 15px;
}

.ctc3__link{
  color: rgba(234,241,255,.82);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.6;
}

.ctc3__link:hover{
  color: var(--accent);
}

/* MAP */
.ctc3__map{
  margin-top: 18px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 55px rgba(0,0,0,.20);
  background: rgba(255,255,255,.04);
}

.ctc3__map iframe{
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

/* RIGHT (form card) */
.ctc3__form{
  border-radius: 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 55px rgba(0,0,0,.20);
  padding: 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: grid;
  gap: 18px;
}

.ctc3__label span{
  display: block;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(234,241,255,.70);
}

.ctc3__input,
.ctc3__textarea{
  width: 100%;
  border: 0;
  outline: none;
  border-radius: 999px;
  padding: 14px 18px;

  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);

  color: var(--text);
  font-size: 14px;

  box-shadow: inset 0 10px 30px rgba(0,0,0,.22);
}

.ctc3__textarea{
  border-radius: 22px;
  min-height: 130px;
  resize: vertical;
  padding: 16px 18px;
}

.ctc3__input::placeholder,
.ctc3__textarea::placeholder{
  color: rgba(234,241,255,.55);
}

.ctc3__input:focus,
.ctc3__textarea:focus{
  border-color: rgba(59,130,246,.45);
  box-shadow:
    inset 0 10px 30px rgba(0,0,0,.22),
    0 0 0 4px rgba(59,130,246,.18);
}

.ctc3__btn{
  height: 56px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;

  background: linear-gradient(90deg, #4f83ff, #a8c0ff);
  color: #0b1533;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 15px;

  box-shadow: 0 14px 36px rgba(59,130,246,.35);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.ctc3__btn:hover{
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 18px 44px rgba(59,130,246,.42);
}

.ctc3__btn:active{
  transform: translateY(0);
  box-shadow: 0 10px 28px rgba(59,130,246,.32);
}

/* responsive */
@media (max-width: 980px){
  .ctc3{ padding: 70px 16px 90px; }
  .ctc3__grid{ grid-template-columns: 1fr; gap: 22px; }
  .ctc3__map iframe{ height: 300px; }
}

/* =========================
   LIGHT THEME
========================= */
html[data-theme="light"] .ctc3__title{ color:#111827; }

html[data-theme="light"] .ctc3__card,
html[data-theme="light"] .ctc3__form,
html[data-theme="light"] .ctc3__map{
  background: #ffffff;
  border: 1px solid rgba(17,24,39,.08);
  box-shadow: 0 18px 55px rgba(0,0,0,.12);
  backdrop-filter: none;
}

html[data-theme="light"] .ctc3__cardTitle{ color:#111827; }

html[data-theme="light"] .ctc3__text{ color: rgba(17,24,39,.65); }
html[data-theme="light"] .ctc3__link{ color: rgba(17,24,39,.80); }
html[data-theme="light"] .ctc3__link:hover{ color:#3b82f6; }

html[data-theme="light"] .ctc3__label span{ color: rgba(17,24,39,.60); }

html[data-theme="light"] .ctc3__input,
html[data-theme="light"] .ctc3__textarea{
  background: rgba(17,24,39,.03);
  border: 1px solid rgba(17,24,39,.10);
  color: #111827;
  box-shadow: inset 0 10px 26px rgba(0,0,0,.08);
}

html[data-theme="light"] .ctc3__input::placeholder,
html[data-theme="light"] .ctc3__textarea::placeholder{
  color: rgba(17,24,39,.45);
}

html[data-theme="light"] .ctc3__input:focus,
html[data-theme="light"] .ctc3__textarea:focus{
  border-color: rgba(59,130,246,.45);
  box-shadow:
    inset 0 10px 26px rgba(0,0,0,.08),
    0 0 0 4px rgba(59,130,246,.16);
}
