/* =========================================================
   StabHub — Pages CSS (Contacts, Articles, etc.)
   v2.0 | Redesigned for dark theme
   ========================================================= */

.contacts_content {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 2em;
    margin-bottom: 4em;
    margin-top: 2em;
}

.contacts_content .hidden {
    display: none !important;
}

.contacts_content .contacts_table {
    flex-grow: 1;
}

.contacts_content .contacts_sidebar {
    width: 40%;
    min-width: 40%;
    margin-left: auto;
    margin-right: auto;
}

.contacts_table table {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
}

.contacts_table table td {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-top: 0.9em;
    padding-bottom: 0.9em;
    color: #8890a8;
    font-size: 13px;
    line-height: 1.6;
}

.contacts_table table td:first-child {
    padding-right: 1em;
    width: 30%;
    color: #4a4f65;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contacts_table table td h2 {
    padding-top: 1.5em;
    color: #ffc800;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contacts_table table td a {
    text-decoration: none;
    color: #ffc800;
    transition: all 0.25s;
}

.contacts_table table td a:hover {
    color: #ffda44;
    text-decoration: underline;
}

.contacts_content .contacts_sidebar > * {
    box-sizing: border-box;
    padding: 1.2em;
    background: #1a1c26;
    border: 1px solid rgba(255,200,0,0.12);
    border-radius: 12px;
    transition: all 0.3s;
}

.contacts_content .contacts_sidebar > *:hover {
    box-shadow: 0 0 30px rgba(255,200,0,0.12), 0 8px 40px rgba(0,0,0,0.4);
    border-color: rgba(255,200,0,0.25);
}

.contacts_content .contacts_sidebar strong {
    display: block;
    color: #e8eaf0;
    font-weight: 700;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.2em;
}

.contacts_content .contacts_sidebar .contacts_brief {
    display: flex;
    max-width: 100%;
    gap: 1.2em;
    overflow: hidden;
    margin-bottom: 1.2em;
}

.contacts_content .contacts_sidebar .contacts_brief > *:first-child {
    max-height: 5.4em;
}

.contacts_content .contacts_sidebar .contacts_brief > *:nth-child(2) {
    overflow: hidden;
}

.contacts_content .contacts_sidebar .contacts_brief > *:nth-child(2) > * {
    display: block;
    line-height: 1.9em;
}

.contacts_content .contacts_sidebar .contacts_brief > *:nth-child(2) a {
    text-decoration: none;
    padding-left: 1.66rem;
    background-size: 1rem 1rem;
    background-repeat: no-repeat;
    background-position: 0 center;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #8890a8;
    font-size: 13px;
    transition: all 0.2s;
}

.contacts_content .contacts_sidebar .contacts_brief > *:nth-child(2) a:hover {
    color: #ffc800;
    text-decoration: underline;
}

.contacts_tel { background-image: url(img/icons.svg#phone); }
.contacts_site { background-image: url(img/icons.svg#link); }
.contacts_email { background-image: url(img/icons.svg#email); }

.contacts_btns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.contacts_btns a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    background: linear-gradient(135deg, #ffc800 0%, #ffda44 50%, #ffc800 100%);
    height: 38px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 6px;
    transition: all 0.25s;
    box-shadow: 0 0 12px rgba(255,200,0,0.2);
}

.contacts_btns a:hover {
    box-shadow: 0 0 20px rgba(255,200,0,0.4);
    transform: translateY(-1px);
}

.contacts_social {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1.2em;
}

.contacts_social a {
    display: block;
    height: 2.4rem;
    width: 2.4rem;
    background-size: 1.1rem 1.1rem;
    background-repeat: no-repeat;
    background-position: center center;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    background-color: #22253a;
    transition: all 0.2s;
}

.contacts_social a:hover {
    background-color: rgba(255,200,0,0.1);
    border-color: rgba(255,200,0,0.4);
    box-shadow: 0 0 10px rgba(255,200,0,0.2);
    transform: scale(1.1);
}

.contacts_social a.contacts_telegram { background-image: url(img/icons.svg#telegram); }
.contacts_social a.contacts_fb { background-image: url(img/icons.svg#fb); }
.contacts_social a.contacts_ok { background-image: url(img/icons.svg#ok); }
.contacts_social a.contacts_vk { background-image: url(img/icons.svg#vk); }
.contacts_social a.contacts_twitter { background-image: url(img/icons.svg#twitter); }
.contacts_social a.contacts_instagram { background-image: url(img/icons.svg#instagram); }
.contacts_social a.contacts_youtube { background-image: url(img/icons.svg#youtube); }
.contacts_social a.contacts_dzen { background-image: url(img/icons.svg#dzen); }
.contacts_social a.contacts_whatsup { background-image: url(img/icons.svg#whatsup); }
