/* ==========================================================
   ADRES2.CSS — СТРАНИЦА КОНТАКТОВ (СВЕТЛАЯ / ТЁМНАЯ ТЕМА)
========================================================== */

.contacts-header {
  margin-bottom: 20px;
}

.contacts-header h1 {
  font-size: 2rem;
  margin-bottom: 5px;
  font-weight: 800;
  color: var(--text-main, #171b19);
}

.contacts-subtitle {
  color: var(--text-caption, #777);
  font-size: 0.95rem;
}

/* Плашка с физическим адресом */
.contacts-address {
  background: var(--bg-subtle, #f5f7f9);
  color: var(--text-main, #171b19);
  border: 1px solid var(--border-main, transparent);
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 25px;
  font-size: 0.95rem;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

/* Сетка карточек отделов */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 15px;
}

.contact-card {
  background: var(--bg-surface, #fff);
  border-radius: 10px;
  padding: 15px;
  border: 1px solid var(--border-main, #eee);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.25s ease;
}

.contact-card:hover {
  border-color: var(--accent-color, #028fa3);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main, #222);
}

.contact-card a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted, #444);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.contact-card a:last-child {
  margin-bottom: 0;
}

.contact-card a:hover {
  color: var(--accent-color, #028fa3);
}

/* Контейнеры иконок SVG */
.contact-card .icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(2, 143, 163, 0.08);
  transition: background-color 0.2s ease;
}

.icon.phone {
  background: rgba(2, 143, 163, 0.08);
}

.icon.mobile {
  background: rgba(2, 143, 163, 0.12);
}

.icon.mail {
  background: rgba(255, 107, 107, 0.08);
}

.contact-card a:hover .icon,
.contact-card a:hover .icon.phone {
  background: rgba(2, 143, 163, 0.2);
}

.contact-card a:hover .icon.mail {
  background: rgba(255, 107, 107, 0.2);
}

/* Сами SVG */
.contact-card svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-color, #028fa3);
  stroke-width: 1.8;
  fill: none;
}

.contact-card .icon.mail svg {
  stroke: #ff6b6b;
}

/* Блок отзывов */
.reviews-block {
  margin-top: 35px;
  padding: 25px;
  border-radius: 12px;
  background: linear-gradient(135deg, #028fa3, #35ac89);
  color: #fff;
  text-align: center;
}

.reviews-block h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
  color: #fff;
}

.reviews-text {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 15px;
}

.reviews-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.reviews-links a {
  background: #fff;
  color: #028fa3;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.reviews-links a:hover {
  background: #f1f1f1;
  transform: translateY(-2px);
  color: #016c7a;
}

/* Интерактивная карта */
.map-container {
  border-radius: 12px;
  margin-top: 25px;
  overflow: hidden;
  margin-bottom: 30px;
  position: relative;
  border: 1px solid var(--border-main, #eee);
  transition: border-color 0.25s ease;
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
  display: block;
}

/* ==========================================================
   ПОДДЕРЖКА ТЁМНОЙ ТЕМЫ [data-theme="dark"]
========================================================== */
[data-theme="dark"] .contacts-address {
  background: var(--bg-surface, #151a1e);
  border-color: var(--border-main, #232d36);
  color: var(--text-muted, #cbd5e1);
}

[data-theme="dark"] .contact-card {
  background: var(--bg-surface, #151a1e);
  border-color: var(--border-main, #232d36);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .contact-card:hover {
  border-color: var(--accent-color, #38bdf8);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .contact-card a {
  color: var(--text-muted, #cbd5e1);
}

[data-theme="dark"] .contact-card a:hover {
  color: var(--accent-color, #38bdf8);
}

[data-theme="dark"] .contact-card svg {
  stroke: var(--accent-color, #38bdf8);
}

[data-theme="dark"] .contact-card .icon.phone,
[data-theme="dark"] .contact-card .icon.mobile {
  background: rgba(56, 189, 248, 0.12);
}

[data-theme="dark"] .contact-card a:hover .icon.phone,
[data-theme="dark"] .contact-card a:hover .icon.mobile {
  background: rgba(56, 189, 248, 0.25);
}

[data-theme="dark"] .contact-card .icon.mail {
  background: rgba(255, 107, 107, 0.12);
}

[data-theme="dark"] .contact-card a:hover .icon.mail {
  background: rgba(255, 107, 107, 0.25);
}

[data-theme="dark"] .reviews-links a {
  background: var(--bg-page, #0b0f12);
  color: var(--accent-color, #38bdf8);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .reviews-links a:hover {
  background: #1a232a;
  color: #fff;
}

[data-theme="dark"] .map-container {
  border-color: var(--border-main, #232d36);
}

/* ==========================================================
   АДАПТИВ
========================================================== */
@media (max-width: 768px) {
  .map-container iframe {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .map-container iframe {
    height: 300px;
  }
  .contacts-header h1 {
    font-size: 1.6rem;
  }
}