/* =========================================================
   LOCO Contacts — v1.0.0
   Модуль єдиного джерела контактів + два шорткоди:
   [loco_callback] — картка виклику (для попапа)
   [loco_contact_page] — блок сторінки контактів
   ========================================================= */

:root{
    --loco-c-grad: var(--ltk-grad-header, linear-gradient(90deg, #034DCF 0%, #3074F9 100%));
    --loco-c-white: #FFFFFF;
    --loco-c-white-10: #EAF3FF;
    --loco-c-neutral-100: #EAF3FF;
    --loco-c-neutral-200: #DCE7F8;
    --loco-c-neutral-900: #1E1E1E;
    --loco-c-blue-600: #1E56C3;
    --loco-c-text: #000;
}

/* ================================================================
   [loco_callback] — CALLBACK CARD (для попапа)
   ================================================================ */
.loco-callback{
    box-sizing: border-box;
    width: 100%;
    
    overflow: hidden;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 16px;
    font-family: 'Gilroy','Inter',system-ui,sans-serif !important;
    color: #fff !important;
}

.loco-callback *,
.loco-callback *::before,
.loco-callback *::after{ box-sizing: border-box; }

.loco-callback__list{
    align-self: stretch;
    display: flex; flex-direction: column;
    gap: 12px;
}

.loco-callback__row{
    align-self: stretch;
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid var(--loco-c-neutral-100);
}

.loco-callback__left{
    display: flex; align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.loco-op-icon{
    display: inline-flex;
    align-items: center; justify-content: center;
    flex: 0 0 auto;
    border-radius: 16px;
    overflow: hidden;
}
.loco-op-icon svg{ display: block; width: 100%; height: 100%; }

.loco-callback__num{
    color: #fff !important;
    font-family: 'Gilroy','Inter',system-ui,sans-serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}

.loco-callback__call{
    width: 56px; height: 56px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--loco-c-neutral-900);
    border-radius: 16px;
    color: #fff !important;
    text-decoration: none !important;
    flex: 0 0 auto;
    transition: transform .2s ease, background .2s ease;
}
.loco-callback__call:hover{ background: #2B2B2B; transform: translateY(-1px); }
.loco-callback__call svg{ width: 32px; height: 32px; }

.loco-callback__or{
    color: #fff !important;
    font-family: 'Gilroy','Inter',system-ui,sans-serif !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: .04em;
}

.loco-callback__socials{
    display: flex; align-items: flex-start; justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.loco-callback__soc{
    height: 64px;
    padding: 12px;
    background: #fff;
    border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff !important;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease;
}
.loco-callback__soc:hover{
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(3,42,120,.25);
}
.loco-soc-icon{
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 auto;
    border-radius: 999px;
    overflow: hidden;
}
.loco-soc-icon svg{ display: block; width: 100%; height: 100%; }

/* Callback — mobile / у попапі */
@media (max-width: 500px){
    
    .loco-callback__num{ font-size: 16px !important; }
    .loco-callback__row{ padding: 6px; border-radius: 16px; }
    .loco-callback__call{ width: 48px; height: 48px; border-radius: 14px; }
    .loco-callback__call svg{ width: 24px; height: 24px; }
    .loco-callback__soc{ height: 56px; padding: 8px; }
}

/* ================================================================
   [loco_contact_page] — CONTACT PAGE BLOCK
   ================================================================ */
.loco-contact-page{
    box-sizing: border-box;
    display: flex; flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    font-family: 'Gilroy','Inter',system-ui,sans-serif !important;
    color: var(--loco-c-text) !important;
}
.loco-contact-page *, .loco-contact-page *::before, .loco-contact-page *::after{ box-sizing: border-box; }

.loco-contact-page__grid{
    align-self: stretch;
    display: flex; flex-direction: column;
    align-items: flex-start;
    gap: 40px;
}

.loco-contact-page__item{
    display: flex; align-items: flex-start;
    gap: 16px;
    align-self: stretch;
}

.loco-contact-page__ico{
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px;
    background: var(--loco-c-neutral-200);
    border-radius: 16px;
    color: var(--loco-c-blue-600);
}
.loco-contact-page__ico svg{ width: 24px; height: 24px; display: block; }

.loco-contact-page__body{
    flex: 1 1 auto;
    display: flex; flex-direction: column;
    justify-content: center;
    gap: 16px;
    min-width: 0;
    padding-top: 4px;
}

.loco-contact-page__val{
    color: var(--loco-c-text) !important;
    font-family: 'Gilroy','Inter',system-ui,sans-serif !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    word-wrap: break-word;
}
.loco-contact-page__val--link{
    text-decoration: none !important;
    transition: color .18s ease;
}
.loco-contact-page__val--link:hover{ color: var(--loco-c-blue-600) !important; }
.loco-contact-page__days{
    display: inline-block;
    min-width: 60px;
    color: var(--loco-c-blue-600) !important;
    font-weight: 500 !important;
    margin-right: 8px;
}

.loco-contact-page__socials{
    align-self: stretch;
    display: flex; flex-direction: column;
    gap: 8px;
    max-width: 340px;
}
.loco-contact-page__socials-title{
    color: var(--loco-c-text) !important;
    font-family: 'Gilroy','Inter',system-ui,sans-serif !important;
    font-size: 24px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: .02em;
}
.loco-contact-page__socials-list{
    display: flex; align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.loco-contact-page__soc{
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease;
}
.loco-contact-page__soc:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(3,42,120,.18);
}

/* Contact page — tablet (2 columns) */
@media (min-width: 768px) and (max-width: 1024px){
    .loco-contact-page__grid{
        flex-direction: row;
        flex-wrap: wrap;
        gap: 32px;
    }
    .loco-contact-page__item{
        flex: 0 1 calc(50% - 16px);
        min-width: 300px;
    }
}

/* Contact page — desktop layout: остаётся вертикальный столбец 376 wide (Figma) */
/* (по умолчанию — уже вертикальный) */

/* Contact page — mobile */
@media (max-width: 500px){
    .loco-contact-page{ gap: 24px; }
    .loco-contact-page__grid{ gap: 24px; }
    .loco-contact-page__ico{ padding: 12px; border-radius: 12px; }
    .loco-contact-page__ico svg{ width: 20px; height: 20px; }
    .loco-contact-page__val{ font-size: 15px !important; }
    .loco-contact-page__socials-title{ font-size: 20px !important; }
}
