/* «Контакты» — бренд JazzWay 2025.
   Плоско (без теней/градиентов), радиус 15px. Сила — цветоблокинг + типографика + ритм.
   Оранжевый = один акцентный блок (CTA). Остальное — белое с обводкой Black20%. */

.ct { color: var(--jv-text-primary); --r: 15px; --gap: 16px; --line: #EDEDED; --line2: #E4E5E9; --accent: var(--jv-accent); }
/* match site catalog container width (1880) so the page isn't narrower than the rest of the site */
.jv-portfolio.container { width: 100%; max-width: 1880px; margin: 0 auto; padding: 20px 20px 60px; }
/* #134: как .sup__lead на Техподдержке (16px, без наезда на h1) */
.ct__lead { max-width: 720px; margin: 0 0 34px; font-size: 16px; line-height: 1.5; color: var(--jv-text-secondary); }

/* ===== верх: оранжевый CTA + карта ===== */
.ct-hero { display: grid; grid-template-columns: 400px 1fr; gap: var(--gap); align-items: stretch; }

.ct-cta { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 460px; padding: 34px; border-radius: var(--r); background: var(--accent); color: #fff;
  text-decoration: none; transition: transform .25s ease; }
.ct-cta:hover { transform: translateY(-4px); }
/* фидбек #45: лампочку-фон убрать */
.ct-cta__deco { display: none; }
.ct-cta__top { position: relative; }
.ct-cta__tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.82); padding: 6px 12px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 14px; margin-bottom: 20px; }
.ct-cta__label { display: block; font-size: 22px; font-weight: 500; line-height: 1.25; color: rgba(255,255,255,.92); }
.ct-cta__bottom { position: relative; }
.ct-cta__phone { display: block; font-size: 32px; font-weight: 700; line-height: 1.05; letter-spacing: -.01em; white-space: nowrap; margin-bottom: 10px; }
.ct-cta__hours { display: block; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.85); margin-bottom: 22px; }
.ct-cta__link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600;
  padding: 12px 22px; background: #fff; color: var(--accent); border-radius: 14px; transition: gap .2s ease; }
.ct-cta:hover .ct-cta__link { gap: 12px; }
/* фидбек #45: текст блока не должен становиться оранжевым/синим при наведении —
   .ct-cta это <a>, глобальный a:hover перекрашивал ссылку, а .ct-cta__phone
   (без своего цвета) наследовал его. Фиксируем белый на всех состояниях. */
.ct-cta:link, .ct-cta:visited, .ct-cta:hover, .ct-cta:focus, .ct-cta:active { color: #fff; }
.ct-cta__phone { color: #fff; }

/* карта */
.ct-map-wrap { border-radius: var(--r); overflow: hidden; background: #F2F3F6; min-height: 460px; }
.ct-map { width: 100%; height: 100%; min-height: 460px; }

/* ===== инфо-плитки (адрес / часы) ===== */
/* #409: полоса плиток — одной строкой. Плиток от двух до четырёх (адрес, часы,
   e-mail, соцсети — часть может не быть заполнена в настройках), поэтому не
   фиксируем число колонок, а раскладываем автоколонками равной ширины. */
.ct-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--gap); margin-top: var(--gap); }
.ct-tile { display: flex; gap: 18px; align-items: flex-start; padding: 24px 26px;
  background: #fff; border: 1.5px solid var(--line2); border-radius: var(--r); }
.ct-tile__ico { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 13px; background: var(--accent); color: #fff; }
.ct-tile__body { min-width: 0; padding-top: 2px; }
.ct-tile__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--jv-text-muted); margin-bottom: 8px; }
.ct-tile__value { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--jv-text-primary); }
.ct-tile__value a { color: var(--jv-text-primary); text-decoration: none; transition: color .2s ease; }
.ct-tile__value a:hover { color: var(--accent); }
.ct-hours { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.ct-hours li { display: grid; grid-template-columns: max-content 1fr; gap: 20px; font-size: 16px; line-height: 1.5; }
.ct-hours li em { text-align: left; }
.ct-hours li b { font-weight: 700; }
.ct-hours li em { font-style: normal; color: var(--jv-text-secondary); }

/* ===== плитка «Мы в соцсетях» =====
   Идёт последней в полосе. В одну строку (#409) растягивать её не нужно —
   grid-column возвращается только в адаптиве, где полоса ломается на строки.
   #692 (24.08): свои align-items: center и padding-top: 0 убраны. Из-за них
   оранжевый квадрат иконки центрировался по высоте плитки, а у соседних
   (адрес, часы, e-mail) он прижат к верху — в ряду иконка «съезжала» вниз.
   Теперь плитка наследует общее .ct-tile { align-items: flex-start }. */
.ct-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.ct-social__link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1.5px solid var(--line2); color: var(--jv-text-secondary);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.ct-social__link:hover,
.ct-social__link:focus-visible { color: #fff; background: var(--accent); border-color: var(--accent); }

/* ===== низ: форма + реквизиты ===== */
.ct-bottom { display: grid; grid-template-columns: 1fr 340px; gap: var(--gap); margin-top: 44px; align-items: start; }
.ct-form-card { background: #fff; border: 1.5px solid var(--line2); border-radius: var(--r); padding: 36px; }
.ct-sec-title { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.ct-form-sub { margin: 10px 0 26px; font-size: 16px; color: var(--jv-text-secondary); }

.ct-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ct-field { display: flex; flex-direction: column; gap: 7px; }
.ct-field--full { grid-column: 1 / -1; }
.ct-field label { font-size: 13px; font-weight: 600; color: var(--jv-text-secondary); }
.ct-req { color: var(--accent); }
.ct-field input, .ct-field textarea { width: 100%; font-family: inherit; font-size: 15px; color: var(--jv-text-primary);
  background: #F7F8FA; border: 1.5px solid transparent; border-radius: 11px; padding: 13px 15px; transition: border-color .2s ease, background .2s ease; }
.ct-field textarea { resize: vertical; min-height: 104px; }
.ct-field input:focus, .ct-field textarea:focus { outline: none; background: #fff; border-color: var(--accent); }
.ct-field input.is-invalid, .ct-field textarea.is-invalid { border-color: #e5484d; background: #fff; }
.ct-err { min-height: 0; font-size: 12px; color: #e5484d; }
.ct-err:empty { display: none; }

/* Ловушка для ботов. Не display:none и не visibility:hidden: часть краулеров такие
   поля распознаёт и пропускает. Поле выведено из потока за край экрана — в разметке
   выглядит обычным, для человека физически недоступно (плюс tabindex=-1 в twig,
   чтобы на него нельзя было попасть с клавиатуры). */
.ct-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ct-consent { display: flex; align-items: flex-start; gap: 11px; font-size: 13px; line-height: 1.45; color: var(--jv-text-secondary); cursor: pointer; margin-top: 2px; }
.ct-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); }
.ct-consent a { color: var(--accent); text-decoration: none; }
.ct-consent a:hover { text-decoration: underline; }

.ct-submit-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
/* Кнопка отправки переведена на единый компонент .jw-btn (jw-buttons.css). */
.ct-form-ok { margin: 0; font-size: 14px; font-weight: 600; color: #1a8a3a; }

/* реквизиты */
.ct-req-card { background: #F2F3F6; border-radius: var(--r); padding: 28px; }
.ct-req-card h3 { margin: 0 0 20px; font-size: 19px; font-weight: 700; }
.ct-req-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.ct-req-list li { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-top: 1.5px solid var(--line); }
.ct-req-list li:first-child { border-top: none; padding-top: 0; }
.ct-req-k { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--jv-text-muted); }
.ct-req-v { font-size: 16px; font-weight: 600; color: var(--jv-text-primary); line-height: 1.4; }

/* ===== адаптив ===== */
/* Плитки в один ряд живут только на широком экране: ужимаем внутренние отступы,
   иконку и кегль значения, иначе адрес в четверти ширины лезет в 4-5 строк. */
@media (max-width: 1400px) {
  .ct-tile { padding: 20px; gap: 14px; }
  .ct-tile__ico { width: 42px; height: 42px; border-radius: 11px; }
  .ct-tile__value { font-size: 16px; }
  .ct-hours li { font-size: 15px; gap: 12px; }
}
@media (max-width: 1000px) {
  .ct-hero { grid-template-columns: 1fr; }
  /* полоса ломается на строки: соцсети снова во всю ширину */
  .ct-strip { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
  .ct-tile--social { grid-column: 1 / -1; }
  .ct-cta { min-height: 0; }
  .ct-map-wrap, .ct-map { min-height: 340px; }
  .ct-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .ct__lead { font-size: 15px; }
  .ct-strip { grid-template-columns: 1fr; }
  .ct-form { grid-template-columns: 1fr; }
  .ct-form-card { padding: 24px; }
  .ct-cta { padding: 28px; }
  .ct-cta__phone { font-size: 32px; }
}


/* Ошибка отправки формы — рядом с «Спасибо», но красным (#19) */
.ct-form-err {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: #C0392B;
}
