/* === Базовые настройки === */
:root {
  --bg: #f7f8fa;
  --text: #1a1a1a;
  --muted: #5f6b7a;
  --accent: #2c5f8a;
  --accent-hover: #234b6e;
  --border: #e2e5e9;
  --white: #ffffff;
  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
  --max-width: 760px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* === Навигация === */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.95);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.2s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* === Контейнер === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 50px 20px 40px;
}

/* === Типографика === */
h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 12px;
}

h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin: 36px 0 14px;
}

.subtitle {
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 28px;
}

p {
  margin-bottom: 16px;
}

ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

li {
  margin-bottom: 8px;
}

/* === Фото профиля === */
.profile-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 24px;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
}

/* === Кнопки === */
.btn {
  display: inline-block;
  padding: 13px 26px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 12px 24px;
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* === Карточки === */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

/* === Списки с иконками === */
.list-check {
  list-style: none;
  padding-left: 0;
}

.list-check li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.list-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: bold;
}

/* === Таблицы === */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.table th {
  background: #f0f2f5;
  font-weight: 600;
  color: var(--text);
}

.table tr:last-child td {
  border-bottom: none;
}

/* === Бейджи (для годов и тегов) === */
.badge {
  display: inline-block;
  padding: 4px 10px;
  background: #eef2f6;
  color: var(--accent);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-right: 6px;
  margin-bottom: 6px;
}

/* === Секции с фоном === */
.section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.section h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 20px;
}

/* === Места приёма === */
.place-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.place-card:hover {
  box-shadow: var(--shadow-md);
}

.place-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.place-card p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 15px;
}

.place-card .place-phone {
  color: var(--accent);
  text-decoration: none;
}

.place-card .place-phone:hover {
  text-decoration: underline;
}

.map-container {
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}

/* === FAQ === */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-weight: 600;
  margin-bottom: 8px;
}

.faq-answer {
  color: var(--muted);
}

/* === Контакты === */
.contact-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-label {
  min-width: 100px;
  color: var(--muted);
  font-size: 15px;
}

/* === Футер === */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 40px;
}

/* === Мобильная адаптация === */
@media (max-width: 600px) {
  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 14px;
  }

  .container {
    padding: 32px 16px 24px;
  }

  h1 {
    font-size: 28px;
  }

  .subtitle {
    font-size: 18px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .profile-photo {
    width: 110px;
    height: 110px;
  }

  .map-container iframe {
    height: 300px;
  }

  .table th,
  .table td {
    padding: 8px 10px;
    font-size: 14px;
  }
}

/* Запрет переноса в таблице */
.table td:first-child,
.table th:first-child {
  white-space: nowrap;
}

.table td:last-child,
.table th:last-child {
  white-space: nowrap;
}

/* Контейнер с горизонтальной прокруткой на мобильных */
@media (max-width: 600px) {
  .table-wrapper {
    overflow-x: auto;
  }
}
