/* ============================================================
   «Контакты» (contact.html). Общие компоненты — в theme.css.
   ============================================================ */

/* ----- Первый экран ----- */
body.theme-v2 .con-hero .breadcrumb { margin: 0; font-size: 14px; color: var(--t-muted); }
body.theme-v2 .con-hero .breadcrumb a { color: var(--t-ink); }
body.theme-v2 .con-hero .breadcrumb a:hover { color: var(--t-accent); text-decoration: none; }
body.theme-v2 .con-hero-art { --art: var(--c-yellow); }

/* ----- Главный офис, реквизиты и форма ----- */
body.theme-v2 .con-layout { --split-min: 400px; align-items: start; }
body.theme-v2 .con-info { display: flex; flex-direction: column; gap: 20px; }
body.theme-v2 .con-info-card { gap: 0; padding: 32px; }
body.theme-v2 .con-info-card h3 { margin: 0 0 8px; font-size: 24px; }
body.theme-v2 .ci {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 18px 0; border-top: 1px solid var(--t-line);
}
body.theme-v2 .ci:first-of-type { border-top: 0; }
body.theme-v2 .ci .lbl { margin-bottom: 4px; font-size: 14px; color: var(--t-subtle); }
body.theme-v2 .ci .val { font-size: 17px; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
body.theme-v2 .ci .val a { color: var(--t-ink); }
body.theme-v2 .ci .val a:hover { color: var(--t-accent); }

body.theme-v2 .con-main .form-card { position: sticky; top: 110px; }
body.theme-v2 .con-main .form-group select { padding-right: 40px; }
body.theme-v2 .con-main .form-submit:disabled { opacity: .6; cursor: not-allowed; }

/* ----- Карта ----- */
body.theme-v2 .con-map { padding: 0 0 104px; }
body.theme-v2 .map-block {
  position: relative; overflow: hidden; height: 400px;
  display: grid; place-items: center;
  border-radius: 32px; background: var(--t-gray);
}
body.theme-v2 .map-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--t-line) 2px, transparent 2px),
    linear-gradient(to bottom, var(--t-line) 2px, transparent 2px);
  background-size: 48px 48px;
}
body.theme-v2 .map-block::before {
  content: ""; position: absolute; width: 460px; height: 460px; left: 50%; top: 50%;
  transform: translate(-50%, -50%); border-radius: 50%;
  border: 48px solid rgba(238,90,31,.1);
}
body.theme-v2 .map-pin {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  max-width: calc(100% - 32px); padding: 14px 22px; border-radius: 999px;
  background: var(--t-accent); color: #fff; font-size: 15px; font-weight: 600; text-align: center;
  box-shadow: 0 12px 32px rgba(238,90,31,.32);
}
body.theme-v2 .map-pin::after {
  content: ""; position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%);
  border: 9px solid transparent; border-bottom: 0; border-top-color: var(--t-accent);
}
body.theme-v2 .map-overlay {
  position: absolute; left: 24px; bottom: 24px; z-index: 2;
  max-width: calc(100% - 48px); padding: 16px 20px; border-radius: 20px;
  background: #fff; font-size: 14px; box-shadow: 0 12px 40px rgba(47,47,52,.12);
}
body.theme-v2 .map-overlay strong { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 700; }
body.theme-v2 .map-overlay span { color: var(--t-muted); }

/* ----- Офисы ----- */
body.theme-v2 .con-head { margin-bottom: 48px; }
body.theme-v2 .con-office-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
body.theme-v2 .office { gap: 0; padding: 0; overflow: hidden; }
body.theme-v2 .office-head {
  display: flex; align-items: center; gap: 16px;
  padding: 28px 28px 22px; border-bottom: 1px solid var(--t-line);
}
body.theme-v2 .office-code {
  flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--t-accent); color: #fff;
  font-size: 16px; font-weight: 800; letter-spacing: 0.02em;
}
body.theme-v2 .office-head h4 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
body.theme-v2 .office-head .city { display: block; margin-top: 2px; font-size: 14px; color: var(--t-muted); }
body.theme-v2 .office-body { display: flex; flex-direction: column; gap: 4px; padding: 18px 28px 26px; }
body.theme-v2 .office-body .row { display: flex; gap: 12px; padding: 8px 0; font-size: 15px; line-height: 1.45; }
body.theme-v2 .office-body .row .em { flex: none; margin-top: 1px; color: var(--t-accent); }
body.theme-v2 .office-body .row strong { font-weight: 600; color: var(--t-ink); }
body.theme-v2 .office-body .row span { color: var(--t-muted); }

/* ----- Отделы ----- */
body.theme-v2 .con-dept-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
body.theme-v2 .dept { gap: 10px; }
body.theme-v2 .dept .t-card-icon { margin-bottom: 8px; background: #fff; }
body.theme-v2 .dept h3 { font-size: 19px; }
body.theme-v2 .dept p { font-size: 15px; }
body.theme-v2 .dept .em-link {
  margin-top: auto; padding-top: 10px;
  font-size: 16px; font-weight: 700; color: var(--t-accent);
}
body.theme-v2 .dept .em-link:hover { color: var(--t-accent-hover); }

/* ----- Работа в Tehnukte ----- */
body.theme-v2 .con-careers-wrap { padding-top: 0; }
body.theme-v2 .careers-block { align-items: start; }
body.theme-v2 .careers-copy { display: flex; flex-direction: column; gap: 20px; }
body.theme-v2 .careers-copy .btn { margin-top: 8px; }
body.theme-v2 .openings { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
body.theme-v2 .opening {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px; border-radius: 20px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
}
body.theme-v2 .opening .role { font-size: 16px; font-weight: 700; line-height: 1.3; }
body.theme-v2 .opening .where { font-size: 14px; opacity: .85; }

@media (min-width: 1000px) {
  body.theme-v2 .con-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
}
@media (max-width: 860px) {
  body.theme-v2 .con-main .form-card { position: static; }
}
@media (max-width: 600px) {
  body.theme-v2 .con-hero-art { max-width: 340px; }
  body.theme-v2 .con-info-card { padding: 24px; }
  body.theme-v2 .con-map { padding-bottom: 72px; }
  body.theme-v2 .map-block { height: 360px; border-radius: 24px; place-items: start center; padding-top: 72px; }
  body.theme-v2 .map-overlay { left: 16px; bottom: 16px; max-width: calc(100% - 32px); }
  body.theme-v2 .con-head { margin-bottom: 32px; }
  body.theme-v2 .office-head { padding: 22px 22px 18px; }
  body.theme-v2 .office-body { padding: 14px 22px 20px; }
}
