/* ==========================================================================
   ИЗОЛИРОВАННЫЕ СТИЛИ ДЛЯ СТРАНИЦЫ КОНТАКТОВ (ГАПОУ ТО «ТКТТС»)
   ========================================================================== */

/* Обертка страницы контактов */
.tktts-contacts-wrapper {
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    color: #334155;
    line-height: 1.6;
}

/* Заголовок страницы */
.tktts-contacts-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.tktts-contacts-header h2 {
    color: #163b5e;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.3;
}

.tktts-contacts-header p {
    color: #64748b;
    font-size: 15px;
    margin: 0;
}

/* Блок основных реквизитов */
.tktts-contacts-requisites {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #163b5e;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.tktts-contacts-requisites-info {
    flex: 1;
    min-width: 280px;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
}

.tktts-contacts-requisites-info p {
    margin: 0 0 6px 0 !important;
}

.tktts-contacts-requisites-info p:last-child {
    margin-bottom: 0 !important;
}

.tktts-contacts-requisites-info a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
}

.tktts-contacts-btn-feedback {
    display: inline-block;
    background: #163b5e !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background 0.2s ease;
    white-space: nowrap;
}

.tktts-contacts-btn-feedback:hover {
    background: #0f2842 !important;
}

/* Заголовки секций */
.tktts-contacts-section-title {
    color: #163b5e;
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 12px;
    font-weight: 700;
}

.tktts-contacts-section-title.is-bordered {
    padding-bottom: 8px;
    border-bottom: 2px solid #163b5e;
}

.tktts-contacts-founder-desc {
    font-size: 14px;
    color: #475569;
    margin-bottom: 14px;
}

/* Таблица учредителя */
.tktts-contacts-table-wrap {
    overflow-x: auto;
    margin-bottom: 30px;
}

.tktts-contacts-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    border-radius: 6px;
    overflow: hidden;
}

.tktts-contacts-table th {
    background: #f1f5f9;
    color: #163b5e;
    text-align: left;
    padding: 10px 14px;
    border-bottom: 2px solid #cbd5e1;
}

.tktts-contacts-table th:first-child {
    width: 35%;
}

.tktts-contacts-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    vertical-align: top;
}

.tktts-contacts-table tr:nth-child(even) {
    background: #fafbfc;
}

.tktts-contacts-table .col-name {
    font-weight: 700;
    color: #0f172a;
}

.tktts-contacts-table .col-addr {
    color: #64748b;
    font-size: 13px;
    display: inline-block;
    margin-top: 3px;
}

/* Сетка карточек: ровно по 2 штуки в строке */
.tktts-contacts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.tktts-contacts-card {
    flex: 1 1 calc(50% - 10px);
    min-width: 300px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.tktts-contacts-card.is-full {
    flex: 1 1 100%;
}

.tktts-contacts-card h4 {
    margin: 0 0 6px 0;
    color: #163b5e;
    font-size: 16px;
    font-weight: 700;
}

.tktts-contacts-card .card-index {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #64748b;
}

.tktts-contacts-card .card-address {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #475569;
}

.tktts-contacts-card-buttons {
    margin-bottom: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tktts-contacts-btn-map {
    font-size: 12px;
    background: #e0f2fe;
    color: #0369a1 !important;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 600;
}

.tktts-contacts-btn-route {
    font-size: 12px;
    background: #f1f5f9;
    color: #475569 !important;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none !important;
}

/* Изолированные списки внутри карточек (сброс глобального .post-content ul) */
.tktts-contacts-wrapper .tktts-contacts-card ul {
    list-style-type: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
    font-size: 14px;
    color: #334155;
    line-height: 1.7;
    flex: 1;
}

.tktts-contacts-wrapper .tktts-contacts-card ul li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 6px !important;
}

.tktts-contacts-wrapper .tktts-contacts-card ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0056b3;
    font-weight: bold;
}

.tktts-contacts-wrapper .tktts-contacts-card ul a {
    color: #0056b3;
    text-decoration: none;
}

.tktts-contacts-wrapper .tktts-contacts-card ul a:hover {
    color: #003d82;
    text-decoration: underline;
}

@media (max-width: 680px) {
    .tktts-contacts-card {
        flex: 1 1 100%;
        min-width: 0;
    }
}