:root {
  --bg-color: #f5f5f5;
  --card-bg: #ffffff;
  --primary: #2c3e50;
  --accent: #c0392b;
  --text: #333333;
  --muted: #777777;
  --border-radius: 12px;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  background: radial-gradient(circle at top, #e8eef7 0, #f5f5f5 40%, #f5f5f5 100%);
  color: var(--text);
}

/* Основной контейнер */
.wrapper {
  max-width: 960px;
  margin: 24px auto;
  padding: 0 16px 24px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 24px 20px 20px;
}

@media (min-width: 768px) {
  .card {
    padding: 32px 40px 24px;
  }
}

/* ШАПКА */

.header {
  position: relative;
  text-align: center;
  margin-bottom: 24px;
}

.header-with-bg {
  padding: 70px 20px;
  border-radius: 12px;
  overflow: hidden;
}

.header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.header-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.header-title,
.header-subtitle {
  padding: 6px 22px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 999px;
  color: #fff;
}

.header-title {
  font-size: 32px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-subtitle {
  font-size: 16px;
}

/* СЕТКА: контакты + услуги */

.grid {
  display: grid;
  gap: 24px;
  align-items: start; /* ключевой фикс */
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: 1.2fr 1.3fr;
    gap: 32px;
    align-items: start;
  }
}

/* КОНТАКТЫ */

.section-title {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.address {
  font-size: 15px;
  margin-bottom: 16px;
}

.phone-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.contact-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.contact-text:hover {
  text-decoration: underline;
}

/* ИКОНКИ — статичные, без линков */

.icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.95;
  transition: none !important;
}

.icon:hover {
  opacity: 0.95 !important;
  transform: none !important;
}

/* Почта — как phone-item */

.email-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

/* Тот самый текст "Звоните или пишите…" */

.note {
  margin-top: 8px;
  font-size: 13px;      /* маленький */
  font-weight: 400;
  color: var(--muted);  /* мягкий серый */
}

/* УСЛУГИ */

.services {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  font-size: 14px;
  columns: 1;
}

@media (min-width: 768px) {
  .services {
    columns: 2;
  }
}

.services li {
  padding-left: 16px;
  margin-bottom: 6px;
  position: relative;
}

.services li::before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: 0;
}

/* КАРТА */

.map-section-card {
  margin-top: 28px;
  margin-bottom: 28px;
}

.map-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.map-wrapper-card {
  width: 100%;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-wrapper-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ФУТЕР */

.footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #ececec;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.footer-left {
  max-width: 60%;
}

.copy {
  margin-top: 4px;
}

@media (max-width: 600px) {
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
  background: #f0f0f0;
  padding: 6px 14px;
  border-radius: 8px;
  transition: 0.2s;
}

.back-link:hover {
  background: #e4e4e4;
  text-decoration: none;
}
