body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: #f0f4f8;
    color: #0d1b2a;
    min-height: 100vh;
    overflow: hidden;
}

/* Шапка */
.hero-section {
    background: linear-gradient(120deg, #2b2d42, #778da9);
    color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 60px;
    box-sizing: border-box;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 10px; /* Минимальный отступ */
}

.header-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.header-title-sub {
    font-size: 1.2rem;
    font-weight: 400;
    color: #d3d8e0;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-nav-link {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-nav-link:hover {
    color: #e63946;
}

.header-action-btn {
    background: #e63946;
    color: #ffffff;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.header-action-btn:hover {
    background: #d00000;
    transform: scale(1.05);
}

/* Футер */
.pagination-section {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background: linear-gradient(120deg, #2b2d42, #778da9);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    height: 70px;
    box-sizing: border-box;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 10px; /* Минимальный отступ */
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-text {
    font-size: 0.85rem;
    color: #ffffff;
    margin: 0;
}

.footer-btn {
    background: #ffffff;
    color: #e63946;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.footer-btn:hover {
    background: #f8f9fa;
    transform: scale(1.05);
}

.footer-disclaimer {
    font-size: 0.75rem;
    max-width: 400px;
    text-align: right;
    position: relative;
    padding-left: 24px;
}

.footer-disclaimer::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23e63946" stroke-width="2"><path d="M12 2L2 19h20L12 2z"/><path d="M12 8v4"/><path d="M12 16h.01"/></svg>') no-repeat center;
    background-size: contain;
    border: 1px solid #ffffff;
    border-radius: 50%;
}

.footer-disclaimer a {
    color: #e63946;
    text-decoration: none;
}

.footer-disclaimer a:hover {
    text-decoration: underline;
}

.pagination {
    margin: 0;
}

.page-link {
    background: #ffffff;
    color: #0d1b2a;
    border: none;
    border-radius: 8px;
    margin: 0 5px;
    font-size: 0.9rem;
    transition: background 0.3s, transform 0.2s;
}

.page-link:hover {
    background: #e63946;
    color: #ffffff;
    transform: scale(1.05);
}

.page-item.active .page-link {
    background: #e63946;
    color: #ffffff;
}

.page-item.disabled .page-link {
    background: #d3d3d3;
    color: #6c757d;
}

/* Карточки */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    cursor: pointer;
    height: auto;
    box-sizing: border-box;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    width: calc(100% - 8px) !important; /* Перекрываем inline-стили */
    height: 300px;
    margin: 0 4px;
    box-sizing: border-box;
}

.card-body {
    padding: 0.75rem;
}

.card-body p {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.card-body strong {
    font-size: 0.95rem;
}

/* Остальные стили (без изменений) */
.search-section {
    position: fixed;
    top: 70px;
    bottom: 70px;
    left: 40px;
    right: 40px;
    background: #ffffff;
    border-radius: 20px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    padding: 10px 20px;
}

.search-section .container-fluid {
    flex: 1;
    padding: 0;
    margin: 0;
    height: 100%;
    overflow: hidden;
}

.cards-container {
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

.cards-container .row {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.cards-container .col {
    flex: 1 1 auto;
    max-width: 100%;
}

.btn-primary {
    background: #e63946;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1rem;
    transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
    background: #d00000;
    transform: scale(1.05);
}

.btn-danger {
    border-radius: 25px;
}

.table {
    border-radius: 15px;
    overflow: hidden;
}

.table thead th {
    background: #415a77;
    color: #ffffff;
}

.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(90deg, #415a77, #778da9);
    color: #fff;
    padding: 15px 20px;
}

.modal-body {
    padding: 20px;
    background: #f8f9fa;
}

.modal-map {
    width: 100%;
    height: 350px;
}

#adDetails p {
    margin-bottom: 0.1rem;
    font-size: 0.9rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    font-weight: 500;
    color: #0d1b2a;
    margin-bottom: 5px;
    display: block;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 8px 12px;
}

.form-control:focus, .form-select:focus {
    border-color: #415a77;
    box-shadow: 0 0 5px rgba(65, 90, 119, 0.3);
}

.required::after {
    content: " *";
    color: #e63946;
}

.toggle-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-toggle {
    padding: 6px 15px;
    border-radius: 20px;
    background: #e9ecef;
    color: #0d1b2a;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-toggle.active {
    background: #415a77;
    color: #fff;
}

.inline-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.form-check-input:checked {
    background-color: #415a77;
    border-color: #415a77;
}

.textarea {
    resize: vertical;
}

.pikaday-input {
    width: 100%;
}

#map {
    height: 400px;
    width: 100%;
    border-radius: 10px;
}

.route-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.start-block {
    border: 2px solid #e63946;
    padding: 10px;
    border-radius: 8px;
}

.end-block {
    border: 2px solid #415a77;
    padding: 10px;
    border-radius: 8px;
}
.header-title-sub {
    font-size: 1rem; /* или другой размер */
}
/* Стили спиннера для карт */
.map-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 6px solid transparent;
    border-top: 6px solid #e63946;
    border-right: 6px solid #415a77;
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
        border-top-color: #e63946;
        border-right-color: #415a77;
    }
    50% {
        transform: translate(-50%, -50%) rotate(180deg);
        border-top-color: #415a77;
        border-right-color: #e63946;
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
        border-top-color: #e63946;
        border-right-color: #415a77;
    }
}
/* Стили для всех блоков */
.messenger-badges,
.messenger-links,
.inline-icons,
.messenger-icons {
  display: inline-flex;
  gap: 12px;
  vertical-align: middle;
}

.icon-link,
.messenger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.icon-link:hover,
.messenger-btn:hover {
  transform: translateY(-2px);
}

/* Специфичные стили для блоков */
/* Для footer-contact */
.messenger-badges {
  margin-top: 10px;
}
.messenger-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f5f5;
  text-decoration: none;
}
.messenger-btn.telegram:hover { background: #0088cc; }
.messenger-btn.whatsapp:hover { background: #25D366; }
.messenger-btn svg {
  transition: fill 0.3s;
  fill: #555;
}
.messenger-btn:hover svg { fill: white; }

/* Для hero-section */
.messenger-links {
  margin-left: 8px;
  font-size: 0.9em;
}
.icon-link {
  margin: 0 5px;
}
.icon-link .icon {
  width: 22px;
  height: 22px;
  transition: all 0.3s;
}
.icon-link:hover .icon {
  transform: scale(1.2);
}
.icon-link[title="Telegram"] .icon { fill: #0088cc; }
.icon-link[title="WhatsApp"] .icon { fill: #25D366; }

/* Для списка */
.inline-icons {
  margin-left: 10px;
}
.mini-icon {
  width: 18px;
  height: 18px;
  margin: 0 5px;
  transition: all 0.3s;
}
.inline-icons a:hover .mini-icon {
  transform: scale(1.2);
}

/* Для футера */
.messenger-option {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #ccc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  text-decoration: none;
}
.icon-circle .icon {
  width: 24px;
  height: 24px;
  fill: white;
}
.icon-circle.telegram { background: #0088cc; }
.icon-circle.whatsapp { background: #25D366; }
.icon-circle:hover { opacity: 0.9; }