/* Контакты (редизайн 30.09.2026) — разметка modules/contacts/site/*.tsx.
   Язык страниц вуза и услуг: шапка в две колонки с картинкой, большие цветные карточки,
   тёмный блок с призывом. Телефон — contacts-mobile.css. */

.ct { margin-bottom: 88px; }

/* ---------- кнопки ---------- */
.ct-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px;
  border: 1px solid #272727; border-radius: 14px; background: transparent; color: #272727;
  font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.ct-btn:hover { background: #272727; color: #fff; }
.ct-btn svg { width: 20px; height: 20px; }
.ct-btn--primary { border-color: #e9423d; background: #e9423d; color: #fff; }
.ct-btn--primary:hover { border-color: #c9302b; background: #c9302b; }
.ct-btn--light { border-color: transparent; background: #fff; }
.ct-btn--light:hover { background: #272727; color: #fff; }

/* ---------- шапка ---------- */
.ct-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; margin: 8px 0 88px; }
.ct-hero__title { margin: 0 0 18px; font-size: clamp(38px, 2.4vw + 22px, 58px); font-weight: 600; line-height: 1.05; color: #272727; }
.ct-hero__lead { max-width: 560px; margin: 0 0 32px; font-size: 19px; line-height: 1.55; color: #272727; }
.ct-hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* быстрые способы связи */
.ct-channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
a.ct-channel {
  display: flex; flex-direction: column; gap: 14px; padding: 18px; border: 1px solid #e6efe9; border-radius: 20px;
  background: #fff; color: #272727; text-decoration: none; box-shadow: 0 10px 30px rgba(39, 39, 39, .05);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
a.ct-channel:hover { transform: translateY(-3px); border-color: #cfe5d8; box-shadow: 0 16px 36px rgba(39, 39, 39, .09); }
.ct-channel__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; color: #fff; }
.ct-channel--red .ct-channel__icon { background: #e9423d; }
.ct-channel--green .ct-channel__icon { background: #2f8f5b; }
.ct-channel--dark .ct-channel__icon { background: #272727; }
.ct-channel__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ct-channel__label { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #2f7a4f; }
.ct-channel__value { font-size: 16px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }

/* картинка: карта Италии из точек, дуга цветов флага, метки офисов */
.ct-visual {
  position: relative; aspect-ratio: 1 / 1; max-height: 560px; border-radius: 32px; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 10%, #e3f3ea 0%, #f3f9f5 55%, #fdf1f0 100%);
}
.ct-visual__map { position: absolute; right: 4%; top: 6%; width: 64%; height: auto; opacity: .55; }
.ct-visual__arc { position: absolute; right: 7%; top: 16%; width: 18%; height: auto; opacity: .9; }
.ct-visual__logo { position: absolute; left: 8%; top: 8%; width: 22%; height: auto; }
.ct-visual__chip {
  position: absolute; display: flex; align-items: center; gap: 12px; max-width: 64%; padding: 12px 16px 12px 12px;
  border-radius: 18px; background: #fff; box-shadow: 0 16px 40px rgba(20, 40, 30, .14);
}
.ct-visual__chip--1 { left: 8%; top: 44%; }
.ct-visual__chip--2 { left: 22%; top: 64%; }
.ct-visual__pin { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: #e9423d; color: #fff; }
.ct-visual__chip--2 .ct-visual__pin { background: #2f8f5b; }
.ct-visual__city { display: block; font-size: 17px; font-weight: 700; color: #272727; }
.ct-visual__addr { display: block; font-size: 13px; font-weight: 500; line-height: 1.35; color: #272727; }
.ct-visual__tag {
  position: absolute; left: 8%; right: 8%; bottom: 7%; padding: 14px 18px; border-radius: 16px;
  background: #272727; color: #fff; font-size: 15px; font-weight: 600; line-height: 1.4;
}

/* ---------- офисы ---------- */
.ct-offices { margin-bottom: 88px; scroll-margin-top: 24px; }
.ct-section-head { margin-bottom: 32px; }
.ct-section-title { margin: 0 0 10px; font-size: clamp(28px, 1.4vw + 18px, 40px); font-weight: 600; line-height: 1.15; color: #272727; }
.ct-section-sub { margin: 0; max-width: 640px; font-size: 17px; line-height: 1.55; color: #272727; }

.ct-office {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch;
  margin-bottom: 24px; padding: 16px; border-radius: 32px;
}
.ct-office:last-child { margin-bottom: 0; }
.ct-office--green { background: #f3f9f5; }
.ct-office--pink { background: #fdf1f0; }
.ct-office--flip .ct-office__info { order: 2; }
.ct-office__info { display: flex; flex-direction: column; padding: 28px 28px 24px; }
.ct-office__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.ct-office__code {
  display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 10px; border-radius: 8px;
  background: #272727; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .06em;
}
.ct-office__country { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; background: #d0eadb; color: #23703f; font-size: 13px; font-weight: 600; }
.ct-office--pink .ct-office__country { background: #f9d9d7; color: #b3322d; }
.ct-office__city { margin: 0 0 18px; font-size: clamp(30px, 1.2vw + 20px, 40px); font-weight: 600; line-height: 1.1; color: #272727; }
.ct-office__rows { display: grid; margin-bottom: 24px; }
.ct-row { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(39, 39, 39, .08); }
.ct-row:last-child { border-bottom: 0; }
.ct-row__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: #2f7a4f; }
.ct-office--pink .ct-row__icon { color: #c9302b; }
.ct-row__body { min-width: 0; padding-top: 1px; }
.ct-row__label { margin-bottom: 2px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #2f7a4f; }
.ct-office--pink .ct-row__label { color: #b3322d; }
.ct-row__value, a.ct-row__value { display: block; font-size: 17px; font-weight: 600; line-height: 1.4; color: #272727; text-decoration: none; overflow-wrap: anywhere; }
a.ct-row__value:hover { color: #e9423d; }
.ct-office__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

/* карта — половина карточки, со скруглением (в шаблоне была на всю ширину, 640 px) */
.ct-office__map { position: relative; min-height: 400px; border-radius: 22px; overflow: hidden; background: #e3f3ea; }
.ct-office__map .contacts-block__map { position: absolute; inset: 0; height: auto; background: #e3f3ea; }
.ct-office__map br { display: none; }

/* ---------- заявка ---------- */
.ct-request {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; align-items: start;
  padding: 56px; border-radius: 32px; background: #272727; color: #fff; scroll-margin-top: 24px;
}
.ct-request__eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 6px 12px; border-radius: 8px; background: rgba(98, 186, 135, .18);
  color: #8fd6ad; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.ct-request__title { margin: 0 0 14px; font-size: clamp(30px, 1.6vw + 18px, 42px); font-weight: 700; line-height: 1.1; color: #fff; }
.ct-request__text { margin: 0 0 32px; font-size: 17px; line-height: 1.55; color: #fff; }
.ct-steps { display: grid; gap: 18px; margin: 0 0 36px; padding: 0; list-style: none; }
.ct-step { display: flex; align-items: flex-start; gap: 16px; }
.ct-step__no {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; background: #e9423d; color: #fff; font-size: 17px; font-weight: 700;
}
.ct-step:nth-child(2) .ct-step__no { background: #fff; color: #272727; }
.ct-step:nth-child(3) .ct-step__no { background: #2f8f5b; }
.ct-step__title { display: block; margin: 1px 0 3px; font-size: 17px; font-weight: 700; color: #fff; }
.ct-step__text { display: block; font-size: 15px; line-height: 1.5; color: #fff; opacity: .85; }
.ct-socials { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); }
.ct-socials__label { font-size: 15px; font-weight: 600; color: #fff; }
.ct-socials__list { display: flex; gap: 10px; }
a.ct-social {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #fff; transition: background .2s, color .2s;
}
a.ct-social:hover { background: #fff; color: #272727; }

.ct-request__form { padding: 32px; border-radius: 24px; background: #fff; color: #272727; }
.ct-request__form-title { margin-bottom: 18px; font-size: 22px; font-weight: 700; color: #272727; }
.ct-request .callback-form { max-width: none; margin: 0; padding: 0; }
.ct-request .callback-form__item.checkbox { margin: 4px 0 18px; }
.ct-request .callback-form__button-wr { flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.ct-request .callback-form__button { flex: none; width: auto; margin-left: auto; }
/* кнопка «Отправить» — общий стиль форм, css/site/form-submit.css */

/* ---------- ноутбук и планшет ---------- */
/* до 1400 px три плитки связи в ряд слишком узкие (номер телефона переносится) — столбиком строками */
@media (max-width: 1399px) {
  .ct-channels { grid-template-columns: minmax(0, 1fr); }
  a.ct-channel { flex-direction: row; align-items: center; }
}
@media (max-width: 1199px) {
  .ct-hero { gap: 36px; }
  .ct-request { gap: 36px; padding: 44px; }
  /* левая колонка выше (способы связи столбиком) — картинка тоже выше, метки не теснятся */
  .ct-visual { aspect-ratio: 4 / 5; }
  .ct-visual__map { width: 70%; top: 10%; }
  .ct-visual__chip--1 { top: 46%; }
  .ct-visual__chip--2 { top: 62%; left: 12%; max-width: 80%; }
}
@media (max-width: 1022px) {
  .ct-hero { grid-template-columns: minmax(0, 1fr); }
  .ct-visual { aspect-ratio: 16 / 10; max-height: none; }
  .ct-visual__map { width: 44%; }
  .ct-visual__arc { width: 12%; }
  .ct-visual__logo { width: 14%; }
  .ct-visual__chip--1 { top: 34%; }
  .ct-visual__chip--2 { top: 56%; left: 14%; }
  .ct-channels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  a.ct-channel { flex-direction: column; align-items: flex-start; }
  .ct-office { grid-template-columns: minmax(0, 1fr); }
  .ct-office--flip .ct-office__info { order: 0; }
  .ct-office__map { min-height: 320px; }
  .ct-request { grid-template-columns: minmax(0, 1fr); }
}
