
/* HERO (compact) */
.contacts-hero {
  padding: var(--s10) 0 var(--s8);
}
.contacts-hero .section-tag {
  display: inline-flex;
  margin-bottom: var(--s4);
}
.contacts-hero-title {
  font-size: 56px; font-weight: 800; line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: var(--s4);
}
.contacts-hero-sub {
  font-size: 18px; color: var(--text-soft);
  line-height: 1.6;
  max-width: 720px;
}

/* MAIN CONTACTS GRID */
.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s8);
  align-items: start;
}

.contacts-info {
  display: flex; flex-direction: column;
  gap: var(--s4);
}

/* Generic info card */
.ci-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s6);
  text-decoration: none;
  color: var(--text);
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.ci-card[href]:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Big phone card */
.ci-card-phone {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: white;
  border-color: var(--brand);
}
.ci-card-phone:hover {
  border-color: var(--brand);
  box-shadow: 0 16px 40px rgba(34, 74, 152, 0.30);
}
.ci-card-phone .ci-label {
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--s3);
}
.ci-card-phone .ci-value {
  font-family: var(--mono);
  font-size: 42px; font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: white;
  margin-bottom: var(--s3);
  font-variant-numeric: tabular-nums;
}
.ci-card-phone .ci-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  color: white;
}
.ci-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 2s infinite;
}
.ci-card-phone .ci-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: var(--s4);
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: white;
  backdrop-filter: blur(8px);
}

/* Compact info cards (email, address) */
.ci-card-email, .ci-card-address {
  display: flex; gap: var(--s4); align-items: flex-start;
  padding: var(--s5) var(--s6);
}
.ci-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: rgba(34, 74, 152, 0.08);
  color: var(--brand);
  display: grid; place-items: center;
}
.ci-icon svg { width: 22px; height: 22px; }
.ci-body { flex: 1; min-width: 0; }
.ci-card-email .ci-label,
.ci-card-address .ci-label {
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.ci-value-sm {
  font-size: 18px; font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  word-break: break-word;
}
.ci-meta-sm {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.ci-meta-sm .dot { margin: 0 6px; color: var(--text-dim); }

/* Messengers row */
.ci-messengers {
  padding: var(--s5) var(--s6);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.cim-label {
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--s3);
}
.cim-buttons {
  display: flex; gap: var(--s2); flex-wrap: wrap;
}
.cim-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: all .15s;
}
.cim-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cim-wa { color: #25D366; }
.cim-tg { color: #229ED9; }
.cim-max { color: #5BB1FF; }

/* CONTACTS FORM */
.contacts-form-wrap {
  position: sticky;
  top: var(--s5);
}
.cf-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s8);
  box-shadow: var(--shadow-md);
}
.cf-title {
  font-size: 26px; font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--s2);
}
.cf-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: var(--s5);
}
.cf-form {
  display: flex; flex-direction: column;
  gap: var(--s3);
}
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}
.cf-field { display: flex; flex-direction: column; }
.cf-label {
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.cf-label span { color: var(--hot); }
.cf-select { cursor: pointer; }
.cf-submit {
  margin-top: var(--s2);
  width: 100%;
  padding: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700;
}
.cf-consent {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: var(--s2);
}
.cf-consent a { color: var(--brand); text-decoration: underline; }

/* DEPARTMENTS GRID */
.depts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
}
.dept-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s5);
  transition: all .2s;
  display: flex; flex-direction: column;
}
.dept-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.dept-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: rgba(34, 74, 152, 0.08);
  color: var(--brand);
  display: grid; place-items: center;
  margin-bottom: var(--s4);
}
.dept-icon svg { width: 22px; height: 22px; }
.dept-name {
  font-size: 16px; font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: var(--s3);
  min-height: 42px;
}
.dept-person {
  font-size: 15px; font-weight: 700;
  color: var(--text);
  margin-bottom: var(--s4);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--border);
}
.dept-phone {
  font-family: var(--mono);
  font-size: 14px; font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.dept-phone:hover { color: var(--brand-deep); }
.dept-email {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  word-break: break-word;
}
.dept-email:hover { color: var(--brand); }

/* OFFICE & MAP */
.office-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s10);
  align-items: start;
}
.office-info .section-tag { display: inline-flex; margin-bottom: var(--s3); }
.office-info .section-title {
  font-size: 36px; font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--s4);
}
.office-info .section-sub {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: var(--s6);
}
.office-list {
  list-style: none; padding: 0;
  display: flex; flex-direction: column;
  gap: 0;
}
.office-list li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--s4);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--border);
}
.office-list li:last-child { border-bottom: none; }
.ol-key {
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ol-value {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}
.ol-value .muted { color: var(--text-muted); font-size: 13px; }
.ol-link {
  color: var(--brand);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600;
}
.ol-link:hover { gap: 10px; }

/* Map placeholder */
.office-map {
  position: relative;
}
.map-img {
  width: 100%; height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: block;
}
.map-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 50%, rgba(34, 74, 152, 0.08), transparent 60%),
    linear-gradient(135deg, #eef2f7 0%, #e2e8f0 100%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s6);
  gap: var(--s3);
  position: relative;
  overflow: hidden;
}
.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 74, 152, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 74, 152, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}
.map-placeholder > * { position: relative; z-index: 1; }
.mp-pin {
  width: 64px; height: 64px;
  background: var(--brand);
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(34, 74, 152, 0.40);
  margin-bottom: var(--s2);
}
.mp-title {
  font-size: 18px; font-weight: 700;
  color: var(--text);
}
.mp-sub {
  font-size: 14px;
  color: var(--text-muted);
}
.mp-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: var(--s2);
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--brand);
  border-radius: 999px;
  color: var(--brand);
  text-decoration: none;
  font-size: 13px; font-weight: 600;
  transition: all .15s;
}
.mp-link:hover { background: var(--brand); color: white; gap: 10px; }

/* SOCIALS */
.socials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
}
.social-card {
  display: flex; align-items: center; gap: var(--s4);
  padding: var(--s5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--text);
  transition: all .2s;
}
.social-card:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.sc-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--bg-elevated);
  display: grid; place-items: center;
}
.social-vk .sc-icon { color: #0077FF; }
.social-tg .sc-icon { color: #229ED9; }
.social-rt .sc-icon { color: #1a1a1a; background: #f3f4f6; }
.social-dzen .sc-icon { color: #1a1a1a; background: #f3f4f6; }
.social-dzen:hover .sc-icon { background: #FFCC00; }
.sc-body { min-width: 0; }
.sc-name {
  font-size: 16px; font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.sc-handle {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* FINAL CTA — tender */
.contacts-final {
  padding-top: var(--s6);
  padding-bottom: var(--s12);
}
.cf-final-wrap {
  background: linear-gradient(135deg, #1a3a7a 0%, #224A98 100%);
  border-radius: var(--r-2xl);
  padding: var(--s10) var(--s8);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--s6);
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.cf-final-wrap::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(91, 177, 255, 0.20), transparent 60%);
  pointer-events: none;
}
.cf-final-text { position: relative; z-index: 1; }
.cf-final-text .section-tag {
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  margin-bottom: var(--s4);
}
.cf-final-text .section-tag::before { background: rgba(255, 255, 255, 0.5); }
.cf-final-title {
  font-size: 32px; font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--s4);
  color: white;
}
.cf-final-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}
.cf-final-actions {
  display: flex; flex-direction: column;
  gap: var(--s3);
  position: relative; z-index: 1;
}
.cf-final-actions .btn-primary {
  background: white;
  color: var(--brand);
  border-color: white;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.cf-final-actions .btn-primary:hover {
  background: var(--brand-deep);
  color: white;
}
.cf-final-actions .btn-ghost {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.cf-final-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: white;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .contacts-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .contacts-form-wrap { position: static; }
  .depts-grid { grid-template-columns: repeat(2, 1fr); }
  .office-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .socials-grid { grid-template-columns: repeat(2, 1fr); }
  .cf-final-wrap { grid-template-columns: 1fr; }
  .contacts-hero-title { font-size: 44px; }
}
@media (max-width: 720px) {
  .contacts-hero { padding: var(--s6) 0 var(--s5); }
  .contacts-hero-title { font-size: 32px; }
  .ci-card-phone .ci-value { font-size: 32px; }
  .cf-card { padding: var(--s5); }
  .cf-row { grid-template-columns: 1fr; }
  .depts-grid { grid-template-columns: 1fr; }
  .office-list li { grid-template-columns: 1fr; gap: var(--s2); }
  .socials-grid { grid-template-columns: 1fr; }
  .cf-final-wrap { padding: var(--s6) var(--s4); }
  .cf-final-title { font-size: 24px; }
}

