:root {
  --primary-color: #2a7ae2;
  --secondary-color: #f5f7fb;
  --text-color: #1f2430;
  --muted-color: #6c7a92;
  --border-radius: 12px;
  --shadow: 0 8px 20px rgba(19, 51, 102, 0.08);
  --max-width: 1240px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-color);
  background: #ffffff;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(96%, var(--max-width));
  margin: 0 auto;
}

header {
  background: linear-gradient(135deg, #1d5fff, #53a0fd);
  color: #fff;
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.search-box {
  flex: 1;
  display: flex;
  gap: 8px;
}

.search-box input {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
}

.search-box button {
  padding: 10px 18px;
  border: none;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-box button:hover {
  background: rgba(255, 255, 255, 0.35);
}

.nav {
  display: flex;
  gap: 24px;
  margin-top: 12px;
  font-size: 0.95rem;
}

.nav a {
  opacity: 0.9;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a.active {
  opacity: 1;
  border-color: #fff;
}

/* 主导航单行横向滑动（列表页行业等）；隐藏滚动条，仍可滑动 */
.nav-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin-top: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.nav-horizontal {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 16px;
  margin-top: 0;
  width: max-content;
  max-width: none;
}

.nav-horizontal a {
  flex-shrink: 0;
  white-space: nowrap;
}

.site-header .nav {
  margin-top: 16px;
}

.site-header .nav-scroll .nav {
  margin-top: 0;
}

.site-header .nav a {
  color: #4a566f;
  border-color: transparent;
}

.site-header .nav a:hover,
.site-header .nav a.active {
  color: #1c1f2a;
  border-color: #1e5ce3;
  opacity: 1;
}

.hero {
  background: var(--secondary-color);
  padding: 48px 0 36px;
}

.hero-content {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.3;
}

.hero p {
  margin-top: 16px;
  color: var(--muted-color);
  line-height: 1.6;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.stat-card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.section-title {
  margin: 36px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title h2 {
  font-size: 1.4rem;
}

.section-title a {
  color: var(--muted-color);
  font-size: 0.9rem;
}

.tender-list {
  display: grid;
  gap: 16px;
}

.tender-card {
  padding: 20px;
  border-radius: var(--border-radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tender-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(19, 51, 102, 0.12);
}

.tender-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  line-height: 1.5;
}

.tender-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted-color);
  font-size: 0.9rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--secondary-color);
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.85rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list a {
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(42, 122, 226, 0.12);
  color: var(--primary-color);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 10px 14px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.filter-group label {
  font-weight: 600;
  font-size: 0.9rem;
}

.filter-group .filter-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-group .filter-items a {
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--secondary-color);
  color: var(--muted-color);
  transition: all 0.2s ease;
}

.filter-group .filter-items a.active,
.filter-group .filter-items a:hover {
  background: var(--primary-color);
  color: #fff;
}

/* 地市较多时横向滑动，避免占满屏高 */
.filter-group--cities {
  align-items: flex-start;
}

.filter-group--cities > label {
  flex-shrink: 0;
  padding-top: 6px;
}

.filter-group--cities .filter-items-scroll {
  flex: 1;
  min-width: 0;
}

.filter-items--hscroll {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  margin-bottom: -2px;
  scrollbar-width: thin;
}

.filter-items--hscroll::-webkit-scrollbar {
  height: 5px;
}

.filter-items--hscroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 4px;
}

.filter-items--hscroll a {
  flex-shrink: 0;
  white-space: nowrap;
}

.filter-city-placeholder {
  margin: 0;
  color: var(--muted-color);
  font-size: 0.9rem;
  line-height: 1.5;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted-color);
  margin: 18px 0;
}

.breadcrumb a {
  color: var(--primary-color);
}

.tender-detail {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
  align-items: start;
  gap: 24px;
}

.detail-main {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 0;
  box-shadow: var(--shadow);
  border-left: 4px solid #b3251d;
}

.detail-hero {
  padding: 32px 24px 24px 24px;
  margin-bottom: 0;
}

.detail-hero h1 {
  color: var(--text-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 24px 0;
  line-height: 1.4;
}

.detail-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}

.detail-info .info-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-info .info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-info span {
  display: block;
  color: var(--muted-color);
  font-size: 0.85rem;
}

.detail-info strong {
  font-size: 1rem;
  color: var(--text-color);
  font-weight: 600;
}

.detail-content {
  line-height: 1.8;
  color: var(--text-color);
  padding: 24px;
}

.detail-tags-block {
  padding: 20px 24px 24px;
  margin-top: 0;
  border-top: 1px solid #eef2f7;
}

.detail-tags-block__title {
  font-size: 1.05rem;
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--text-color);
}

.detail-content h2 {
  margin: 24px 0 12px;
  font-size: 1.1rem;
}

.sidebar {
  display: grid;
  gap: 16px;
}

.sidebar-card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.sidebar-card h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.sidebar-list {
  display: grid;
  gap: 12px;
}

.sidebar-list a {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-color);
}

.pagination {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 24px 0;
  padding: 4px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.pagination::-webkit-scrollbar {
  height: 4px;
}

.pagination::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--secondary-color);
  color: var(--muted-color);
  font-size: 0.9rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pagination a.active,
.pagination a:hover {
  background: var(--primary-color);
  color: #fff;
}

/* 页码文案：禁止被 flex 压窄导致竖排换行；长数字时整栏可横向滑动 */
.pagination .pagination-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: max-content;
  padding: 8px 12px;
  min-height: 38px;
  border-radius: 10px;
  background: var(--secondary-color);
  color: var(--muted-color);
  font-size: 0.9rem;
  white-space: nowrap;
}

.footer {
  background: #f2f5f9;
  color: var(--text-color);
  margin-top: 36px;
  padding: 20px 0 26px;
  border-top: 1px solid #e2e8f0;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 12px;
}

/* 避免子项 min-content 宽度把整页撑出横向滚动条 */
.footer-columns > * {
  min-width: 0;
}

@media (min-width: 720px) {
  .footer-columns {
    grid-template-columns: minmax(0, 1.35fr) minmax(200px, 1fr);
    align-items: start;
    gap: 24px;
  }
}

.footer h3 {
  color: #b3251d;
  font-size: 1rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.footer-column--support h3 {
  margin-bottom: 10px;
}

.footer-nav-block + .footer-nav-block {
  margin-top: 14px;
}

.footer p {
  margin-bottom: 8px;
}

.footer-column--support p {
  font-size: 0.85rem;
  color: var(--muted-color);
  line-height: 1.55;
  margin-bottom: 6px;
}

.footer-column--support p:last-child {
  margin-bottom: 0;
}

/* 地区：单行横向滑动 + 小号文字，省垂直空间 */
.footer-region-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-color);
  margin: 0 0 6px;
  letter-spacing: 0.04em;
}

/* 地区链接在栏宽内自动换行，不撑开 body 横向滚动 */
.footer-region-scroll {
  max-width: 100%;
  overflow-x: visible;
}

.footer-region-links--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  width: 100%;
  max-width: 100%;
  line-height: 1.65;
  row-gap: 4px;
  column-gap: 0;
}

.footer .footer-region-links--inline a {
  flex-shrink: 0;
  font-size: 0.76rem;
  white-space: nowrap;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--muted-color);
  transition: color 0.15s ease;
}

/* 分隔符放在上一项末尾，换行时不会在新行行首出现「·」 */
.footer .footer-region-links--inline a:not(:last-child)::after {
  content: '\00a0·\00a0';
  color: #c5cedd;
  font-weight: 400;
  pointer-events: none;
}

.footer .footer-region-links--inline a:hover {
  color: #b3251d;
  background: transparent;
}

.footer .footer-region-links--inline a.active {
  color: #b3251d;
  font-weight: 600;
}

.footer .footer-region-links--inline a.active:not(:last-child)::after {
  color: #c5cedd;
}

.footer a {
  color: var(--muted-color);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-column--support a {
  color: var(--primary-color);
}

.footer a:hover {
  color: #b3251d;
}

.footer small {
  display: block;
  text-align: center;
  color: var(--muted-color);
  font-size: 0.85rem;
  margin-top: 24px;
}

@media (max-width: 960px) {
  .tender-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  header {
    position: static;
  }

  .header-top {
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    font-size: 0.9rem;
  }

  .nav-scroll .nav.nav-horizontal {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .detail-hero {
    padding: 24px 18px;
  }

  .detail-hero h1 {
    font-size: 1.3rem;
  }

  .detail-info {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .detail-content {
    padding: 18px;
  }

  .detail-tags-block {
    padding-left: 18px;
    padding-right: 18px;
    padding-bottom: 20px;
  }

  .footer {
    padding: 18px 0 24px;
  }

  .site-search {
    padding: 0 0 14px;
  }

  .site-search .search-input-wrap {
    padding: 10px 14px;
  }

  .site-search button {
    padding: 10px 16px;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .top-bar {
    padding: 12px 0;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .logo-image {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 36px 0;
  }

  .filters {
    flex-direction: column;
  }

  .filter-group {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .filter-group .filter-items {
    width: 100%;
  }

  .detail-content {
    padding: 16px;
    font-size: 0.9rem;
  }

  .detail-content h2 {
    font-size: 1rem;
    margin: 20px 0 10px;
  }

  .detail-hero {
    padding: 20px 16px;
  }

  .detail-hero h1 {
    font-size: 1.2rem;
    line-height: 1.4;
  }

  .detail-info {
    gap: 12px;
  }

  .detail-info .info-item {
    gap: 2px;
  }

  .detail-info span {
    font-size: 0.8rem;
  }

  .detail-info strong {
    font-size: 0.95rem;
  }

  .sidebar-card {
    padding: 14px;
  }

  .sidebar-card h3 {
    font-size: 0.95rem;
  }

  .sidebar-list a {
    font-size: 0.85rem;
  }

  .bottom-actions {
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  }

  .bottom-actions .action-btn {
    padding: 12px 0;
    font-size: 0.9rem;
  }

  .breadcrumb {
    font-size: 0.8rem;
    margin: 12px 0;
  }

  .tag-list {
    gap: 8px;
  }

  .tag-list a {
    font-size: 0.8rem;
    padding: 5px 10px;
  }
}

/* Home page specific */
.home-page {
  background: #f2f5f9;
  padding-bottom: 110px;
}

.site-page {
  background: #f2f5f9;
  padding-bottom: 110px;
}

.home-header,
.site-header {
  background: #f5f5f7;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 35, 95, 0.08);
}

.home-header .top-bar,
.site-header .top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.home-header .logo-area,
.site-header .logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1c1f2a;
}

.home-header .logo-image,
.site-header .logo-image {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.home-header .logo-text,
.site-header .logo-text {
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.home-header .location-link,
.site-header .location-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.92rem;
  color: #1e5ce3;
  font-weight: 600;
}

.home-header .location-link .arrow,
.site-header .location-link .arrow {
  font-size: 0.8rem;
}

.home-search,
.site-search {
  display: flex;
  gap: 10px;
  padding: 0 0 16px;
  align-items: center;
}

.home-search .search-input-wrap,
.site-search .search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid #d1d9e6;
  background: #fff;
}

.home-search .search-icon,
.site-search .search-icon {
  width: 20px;
  height: 20px;
  color: #9aa2b1;
}

.home-search .search-icon svg,
.site-search .search-icon svg {
  width: 100%;
  height: 100%;
}

.home-search input,
.site-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: var(--text-color);
}

.home-search input::placeholder,
.site-search input::placeholder {
  color: #b3bac7;
}

.home-search button,
.site-search button {
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  background: #b3251d;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.home-search button:hover,
.site-search button:hover {
  opacity: 0.9;
}

.home-main {
  padding: 16px 0 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px 16px 12px;
  border: 1px solid rgba(30, 92, 227, 0.08);
  margin-bottom: 12px;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-left: 4px solid #b3251d;
  padding-left: 12px;
  margin-bottom: 16px;
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.section-header > div {
  flex: 1;
}

.section-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-color);
}

.section-header p {
  margin: 0;
  color: var(--muted-color);
  font-size: 0.9rem;
  line-height: 1.5;
}

.section-header a {
  font-size: 0.85rem;
  color: #b3251d;
  font-weight: 500;
  white-space: nowrap;
  margin-left: 16px;
}

.table-skeleton {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  table-layout: fixed;
}

.table-skeleton thead {
  background: #f7f9fc;
  color: var(--muted-color);
}

.table-skeleton th,
.table-skeleton td {
  padding: 10px 10px;
  border-bottom: 1px solid #edf2f8;
  vertical-align: middle;
  color: var(--text-color);
  font-size: 0.88rem;
}

.table-skeleton th:nth-child(1),
.table-skeleton td:nth-child(1) {
  width: 60%;
}

.table-skeleton th:nth-child(2),
.table-skeleton td:nth-child(2) {
  width: 18%;
  white-space: nowrap;
  text-align: center;
}

.table-skeleton th:nth-child(3),
.table-skeleton td:nth-child(3) {
  width: 22%;
  white-space: nowrap;
  text-align: right;
}

.table-skeleton .title-cell a {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
}

.placeholder {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #eff3f9 0%, #e2e8f0 50%, #eff3f9 100%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}

.category-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  border-radius: 12px;
  background: #f7f9fc;
  color: var(--text-color);
  font-size: 0.85rem;
}

.section-note {
  margin-top: 12px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted-color);
}

@media (max-width: 640px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bottom-actions .actions-inner {
  display: flex;
  gap: 12px;
  width: min(96%, var(--max-width));
  margin: 0 auto;
}

.bottom-actions .action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0;
  border: none;
  border-radius: 42px;
  background: #b3251d;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  box-shadow: 0 4px 10px rgba(179, 37, 29, 0.2);
  flex: 1;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.bottom-actions .action-btn:hover {
  opacity: 0.9;
}

/* 去掉原生 button 的默认聚焦黑框；键盘 Tab 时用浅色描边保留可访问性 */
.bottom-actions .action-btn:focus {
  outline: none;
}

.bottom-actions .action-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 2px;
}

.bottom-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(245, 245, 247, 0.95);
  border-top: 1px solid #d8deeb;
  box-shadow: 0 -10px 30px rgba(15, 35, 95, 0.08);
  padding: 14px 16px 18px;
  backdrop-filter: blur(6px);
  z-index: 1000;
}

/* 底部按钮：自定义弹窗（高于底栏） */
.m-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0));
  box-sizing: border-box;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.m-modal.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.m-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
}

.m-modal__panel {
  position: relative;
  width: 100%;
  max-width: 400px;
  max-height: min(78vh, 560px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border-radius: 16px 16px 12px 12px;
  padding: 22px 18px 20px;
  box-shadow: 0 -8px 40px rgba(15, 35, 95, 0.18);
  border: 1px solid #e8ecf2;
  animation: m-modal-rise 0.28s ease-out;
}

@keyframes m-modal-rise {
  from {
    transform: translateY(18px);
    opacity: 0.85;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.m-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #f1f4f9;
  color: var(--muted-color);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.m-modal__close:hover {
  background: #e2e8f0;
  color: var(--text-color);
}

.m-modal__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1c1f2a;
  margin: 0 40px 12px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(179, 37, 29, 0.25);
}

.m-modal__text {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-color);
  margin: 0 0 10px;
}

.m-modal__list {
  margin: 0 0 12px;
  padding-left: 1.1em;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted-color);
}

.m-modal__list li {
  margin-bottom: 4px;
}

.m-modal__hint {
  font-size: 0.86rem;
  color: var(--muted-color);
  margin: 0 0 14px;
  line-height: 1.5;
}

.m-modal__actions {
  display: flex;
  justify-content: stretch;
  margin-bottom: 12px;
}

.m-modal__tel {
  flex: 1;
  text-align: center;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #b3251d, #c94a3d);
  color: #fff !important;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(179, 37, 29, 0.35);
  transition: filter 0.2s ease, transform 0.15s ease;
}

.m-modal__tel:hover {
  filter: brightness(1.05);
}

.m-modal__tel:active {
  transform: scale(0.98);
}

.m-modal__muted {
  font-size: 0.8rem;
  color: var(--muted-color);
  margin: 0;
  text-align: center;
}
