/* ============ СБРОС И БАЗА ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #1f4e79;
  --primary-light: #2e6da4;
  --accent: #e8a33d;
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #222;
  --muted: #666;
  --border: #d8dee6;
  --danger: #c0392b;
  --success: #27ae60;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

html { -webkit-text-size-adjust: 100%; }
html, body { height: 100%; }

body {
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ============ ШАПКА ============ */
header.site-header {
  background: var(--card);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
  white-space: nowrap;
}
.logo-block img { height: 42px; width: auto; }

.logo-fallback {
  height: 42px;
  width: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

nav.main-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-left: auto;
}
nav.main-nav a {
  color: var(--text);
  font-size: 15px;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ============ КНОПКИ ============ */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
  transition: .18s ease;
  text-align: center;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #d18f2a; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ============ ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА ============ */
.lang-switch {
  display: flex;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang-switch button {
  background: transparent;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  color: var(--primary);
  transition: .15s;
}
.lang-switch button.active { background: var(--primary); color: #fff; }

/* ============ МЕНЮ ПОЛЬЗОВАТЕЛЯ ============ */
.user-menu { position: relative; }

.user-menu-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}
.user-menu-btn:hover { background: var(--primary-light); }
.user-menu-btn span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 6px 22px rgba(0,0,0,0.15);
  min-width: 220px;
  display: none;
  overflow: hidden;
  z-index: 200;
}
.user-dropdown.open { display: block; }

.user-dropdown a,
.user-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
}
.user-dropdown a:hover,
.user-dropdown button:hover { background: #f0f4f8; text-decoration: none; }
.user-dropdown .logout { color: var(--danger); font-weight: 600; }

/* ============ ОСНОВНОЙ КОНТЕНТ ============ */
main.content {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 20px 50px;
}

/* ============ ГЕРОЙ ============ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 50px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}
.hero h1 { font-size: 34px; margin-bottom: 14px; line-height: 1.25; }
.hero p {
  font-size: 17px;
  opacity: .95;
  max-width: 780px;
  margin: 0 auto 26px;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ КАРТОЧКИ ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
}
.card h3 { color: var(--primary); margin-bottom: 10px; font-size: 18px; }
.card p { color: var(--muted); font-size: 15px; }

/* ============ СЕКЦИИ ============ */
.section {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.section h2 { color: var(--primary); margin-bottom: 16px; font-size: 24px; }
.section h3 { color: var(--primary); margin: 16px 0 8px; font-size: 19px; }
.section p { margin-bottom: 10px; }
.section ul { margin: 10px 0 10px 24px; }
.section li { margin-bottom: 6px; }

/* ============ ФОРМЫ ============ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}
.form-group label .req { color: var(--danger); }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background: #fbfcfe;
  transition: .15s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(46,109,164,0.12);
}
.form-group input.error,
.form-group select.error { border-color: var(--danger); background: #fdf0ef; }
.form-group input:disabled {
  background: #eef1f5;
  color: var(--muted);
  cursor: not-allowed;
}

.field-error {
  color: var(--danger);
  font-size: 12.5px;
  margin-top: 4px;
  display: none;
}
.field-error.show { display: block; }

.form-note { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ============ СООБЩЕНИЯ ============ */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 14.5px;
  display: none;
}
.alert.show { display: block; }
.alert-success { background: #e6f7ee; color: #1e7a48; border-left: 4px solid var(--success); }
.alert-error   { background: #fdecea; color: #a93226; border-left: 4px solid var(--danger); }
.alert-info    { background: #eaf2fb; color: #1f4e79; border-left: 4px solid var(--primary-light); }

/* ============ ТАБЫ ============ */
.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--border);
}
.tab-btn {
  padding: 12px 22px;
  background: none;
  border: none;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-weight: 600;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--accent); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.auth-wrap { max-width: 520px; margin: 0 auto; }

/* ============ ТАБЛИЦА АДМИНА ============ */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.apps {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 640px;
}
table.apps th,
table.apps td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
table.apps th {
  background: #eef3f8;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}
table.apps tr:hover td { background: #f9fbfd; }

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.status-pending  { background: #fef3d7; color: #9a6c00; }
.status-accepted { background: #e0f5e8; color: #1e7a48; }
.status-rejected { background: #fdecea; color: #a93226; }

/* ============ МОДАЛЬНОЕ ОКНО ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 26px;
  position: relative;
}
.modal h3 { color: var(--primary); margin-bottom: 14px; }

.modal .close-x {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

.modal dl { display: grid; grid-template-columns: 180px 1fr; gap: 6px 14px; font-size: 14.5px; }
.modal dt { font-weight: 600; color: var(--muted); }
.modal dd { margin-bottom: 4px; word-break: break-word; }

/* ============ ПОДВАЛ ============ */
footer.site-footer {
  background: #1c2b3a;
  color: #cdd8e3;
  padding: 34px 20px 20px;
  margin-top: auto;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}
.footer-inner h4 { color: #fff; margin-bottom: 12px; font-size: 17px; }
.footer-inner p { font-size: 14px; margin-bottom: 6px; }
.footer-inner a { color: var(--accent); }
.footer-bottom {
  max-width: 1180px;
  margin: 22px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  font-size: 13px;
  color: #8fa2b5;
}

.hidden { display: none !important; }

/* ============================================================
   БУРГЕР-МЕНЮ
   ============================================================ */
.burger-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  z-index: 300;
}
.burger-btn span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: .25s ease;
}
.burger-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 82%;
  max-width: 320px;
  background: #fff;
  box-shadow: -6px 0 30px rgba(0,0,0,0.18);
  z-index: 250;
  padding: 74px 22px 22px;
  transform: translateX(100%);
  transition: transform .28s ease;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu a,
.mobile-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 4px;
  background: none;
  border: none;
  border-bottom: 1px solid #eef1f5;
  font-size: 17px;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
}
.mobile-menu a.active { color: var(--primary); font-weight: 700; }
.mobile-menu .logout { color: var(--danger); font-weight: 600; }
.mobile-menu .menu-lang {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  border: none;
  padding: 0;
}
.mobile-menu .menu-lang .lang-switch { flex: 1; }

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 240;
}
.mobile-menu-overlay.open { display: block; }

/* ============ ПРОФИЛЬ ============ */
.profile-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.profile-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

.profile-name h3 {
  color: var(--primary);
  font-size: 22px;
  margin: 0 0 4px;
}

.profile-email {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0;
  word-break: break-all;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 10px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 11px 14px;
  background: #fbfcfe;
  border-bottom: 1px solid var(--border);
  gap: 14px;
}
.info-row:last-child { border-bottom: none; }

.info-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
  flex-shrink: 0;
}

.info-value {
  color: var(--text);
  font-size: 14.5px;
  text-align: right;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ============ АВАТАР + ЗАГРУЗКА ФОТО ============ */
.profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.avatar-upload {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: .15s;
}
.avatar-upload:hover { background: #d18f2a; transform: scale(1.08); }

/* ============ ДАТА РЕГИСТРАЦИИ — ровная строка ============ */
.profile-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 11px 14px;
  background: #fbfcfe;
  border: 1px solid var(--border);
  border-radius: 8px;
  gap: 12px;
}
.meta-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
}
.meta-value {
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
}

/* ============ ОПАСНАЯ ЗОНА ============ */
.danger-zone {
  border-left: 4px solid var(--danger);
}
.danger-zone h2 { color: var(--danger); }
.danger-zone p { color: var(--muted); margin-bottom: 14px; }

/* ============================================================
   АДАПТИВ — планшеты
   ============================================================ */
@media (max-width: 900px) {
  .header-inner { gap: 12px; padding: 10px 16px; }
  nav.main-nav a { font-size: 14px; }
  .hero { padding: 42px 22px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .section { padding: 22px; }
  .section h2 { font-size: 21px; }
}

/* ============================================================
   АДАПТИВ — телефоны
   ============================================================ */
@media (max-width: 720px) {

  body { font-size: 15px; }

  .header-inner {
    padding: 10px 14px;
    gap: 10px;
    flex-wrap: nowrap;
    align-items: center;
  }

  nav.main-nav,
  .header-actions { display: none; }

  .logo-block { font-size: 16px; }
  .logo-block img { height: 36px; }
  .logo-fallback { height: 36px; width: 36px; font-size: 17px; }

  .burger-btn { display: flex; }
  .mobile-menu { display: block; }

  main.content { padding: 18px 14px 40px; }

  .hero {
    padding: 32px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
  }
  .hero h1 { font-size: 22px; line-height: 1.3; }
  .hero p { font-size: 15px; margin-bottom: 20px; }
  .hero-buttons { flex-direction: column; gap: 10px; }
  .hero-buttons .btn { width: 100%; }

  .cards {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 20px;
  }
  .card { padding: 18px; }
  .card h3 { font-size: 16px; }
  .card p { font-size: 14px; }

  .section {
    padding: 18px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
  }
  .section h2 { font-size: 19px; margin-bottom: 12px; }
  .section h3 { font-size: 16px; margin: 14px 0 6px; }
  .section p { font-size: 14.5px; }
  .section ul { margin-left: 20px; }

  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 12px;
    font-size: 16px;
    border-radius: 8px;
  }
  .btn {
    padding: 12px 18px;
    font-size: 15px;
    width: 100%;
    display: block;
    margin-bottom: 8px;
  }
  .btn-sm {
    width: auto;
    display: inline-block;
    padding: 7px 12px;
    font-size: 13px;
    margin-bottom: 4px;
  }

  .tabs { margin-bottom: 18px; }
  .tab-btn {
    flex: 1;
    padding: 12px 8px;
    font-size: 15px;
    text-align: center;
  }

  .auth-wrap { max-width: 100%; }

  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  table.apps { font-size: 13px; min-width: 560px; }
  table.apps th,
  table.apps td { padding: 8px 8px; }

  .modal-overlay { padding: 10px; align-items: flex-start; }
  .modal {
    padding: 20px 16px;
    max-height: 92vh;
    border-radius: 10px;
    margin-top: 10px;
  }
  .modal dl { grid-template-columns: 1fr; gap: 2px 0; }
  .modal dt { margin-top: 10px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .3px; }
  .modal dd { margin-bottom: 6px; font-size: 15px; }
  .modal h3 { font-size: 18px; }
  .modal .close-x { top: 8px; right: 12px; font-size: 30px; }

  .alert { font-size: 14px; padding: 11px 13px; border-radius: 8px; }

  footer.site-footer { padding: 26px 16px 18px; text-align: left; }
  .footer-inner { grid-template-columns: 1fr; gap: 18px; }
  .footer-inner h4 { font-size: 15px; }
  .footer-inner p { font-size: 13.5px; }
  .footer-bottom { font-size: 12px; margin-top: 18px; }

  .profile-head {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .profile-avatar { width: 76px; height: 76px; font-size: 30px; }
  .profile-name h3 { font-size: 19px; }
  .profile-email { font-size: 13.5px; }

  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 12px;
  }
  .info-value {
    text-align: left;
    font-size: 15px;
    font-weight: 500;
  }

  .user-menu { display: none; }
  .header-actions .btn { display: none; }

  .profile-avatar-wrap { margin: 0 auto; }
  .avatar-upload { width: 32px; height: 32px; font-size: 16px; }
  .profile-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .meta-value { font-size: 15px; }
}

/* ============================================================
   ОЧЕНЬ УЗКИЕ ЭКРАНЫ (≤ 380px)
   ============================================================ */
@media (max-width: 380px) {
  .hero h1 { font-size: 19px; }
  .hero p { font-size: 14px; }
  .section { padding: 16px 14px; }
  .section h2 { font-size: 17px; }
  .logo-block { font-size: 15px; }
  .logo-block img { height: 32px; }
  .mobile-menu { width: 88%; }
}
/* ============ ПРЕВЬЮ ФАЙЛА В МОДАЛКЕ ============ */
.file-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  align-items: flex-start;
}

.file-preview img {
  max-width: 100%;
  max-height: 420px;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  object-fit: contain;
  background: #f5f7fa;
  cursor: zoom-in;
}

.file-name {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  word-break: break-all;
}

.file-pdf {
  width: 120px;
  height: 120px;
  background: #fdecea;
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* Мобильный вариант */
@media (max-width: 720px) {
  .file-preview img { max-height: 300px; }
  .file-preview .btn { width: 100%; text-align: center; }
}

/* Клик по фото — открывается на весь экран */
.file-preview img:active {
  opacity: 0.9;
}
/* ============ ПОДВАЛ — 2 КОНТАКТА РЯДОМ ============ */
footer.site-footer {
  padding: 40px 24px 24px;
}

.footer-inner {
  max-width: 1320px;      /* шире, чем 1180 */
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;   /* контакты занимают больше места */
  gap: 40px;
  align-items: flex-start;
}

.footer-contacts {
  min-width: 0;
}

.contacts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 12px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px 16px;
}

.contact-person {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.35;
}

.contact-line {
  font-size: 13.5px;
  margin-bottom: 4px;
  color: #cdd8e3;
  word-break: break-word;
}

.contact-line a {
  color: var(--accent);
}

/* ============ ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА — ФИКСИРОВАННАЯ ШИРИНА ============ */
.lang-switch {
  display: inline-flex;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 200px;      /* ← фиксированная ширина — не прыгает */
}

.lang-switch button {
  flex: 1 1 0;
  background: transparent;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  color: var(--primary);
  transition: .15s;
  min-width: 90px;       /* ← кнопки одинаковые */
  text-align: center;
  white-space: nowrap;
}

.lang-switch button.active {
  background: var(--primary);
  color: #fff;
}

/* ============ МОБИЛЬНАЯ АДАПТАЦИЯ ПОДВАЛА ============ */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .contacts-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .contacts-row {
    grid-template-columns: 1fr;   /* на телефоне — в столбик */
  }
  .lang-switch {
    min-width: 170px;
  }
  .lang-switch button {
    padding: 8px 10px;
    min-width: 78px;
    font-size: 13px;
  }
}