.imc-contact-widget {
    --imc-primary: #1baa1d;
    --imc-primary-dark: #158a17;
    --imc-primary-light: #e8f5e8;
    --imc-text-dark: #222;
    --imc-text-gray: #666;
    --imc-border: #ddd;
    --imc-shadow-hover: 0 18px 40px rgba(27, 170, 29, 0.18);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--imc-text-dark);
    background:
        radial-gradient(1200px 500px at 0% 0%, #f6fbf6 0%, rgba(246,251,246,0) 60%),
        radial-gradient(1000px 500px at 100% 100%, #f4f8f4 0%, rgba(244,248,244,0) 60%),
        #fff;
    width: 100%;
    display: block;
    box-sizing: border-box;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.imc-contact-widget *,
.imc-contact-widget *::before,
.imc-contact-widget *::after {
    box-sizing: border-box;
}

.imc-contact-widget p,
.imc-contact-widget div,
.imc-contact-widget h3,
.imc-contact-widget h4,
.imc-contact-widget strong,
.imc-contact-widget a,
.imc-contact-widget span {
    margin: 0;
    padding: 0;
    font-family: inherit;
}

.imc-contact-widget .imc-inner {
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    padding: 0;
}

.imc-contact-widget a {
    color: var(--imc-primary-dark);
    text-decoration: none;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.imc-contact-widget a:hover {
    color: var(--imc-primary);
    text-decoration: underline;
    text-shadow: 0 0 12px rgba(27, 170, 29, 0.35);
}

/* ===== ОПИСАНИЕ СВЕРХУ ===== */
.imc-intro {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

/* ===== ОФИСЫ ===== */
.imc-offices {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
}

/* ===== ДОРОГАЯ КАРТОЧКА ОФИСА + АНИМИРОВАННОЕ СИЯНИЕ ===== */
.imc-office {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    overflow: hidden;
    background: linear-gradient(
        120deg,
        #f7f7f7 0%,
        #ececec 25%,
        #f3f3f3 50%,
        #e4e4e4 75%,
        #f7f7f7 100%
    );
    background-size: 300% 300%;
    animation:
        imcShine 9s ease-in-out infinite,
        imcFadeUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 8px 24px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition:
        transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
        box-shadow 0.45s ease,
        border-color 0.45s ease;
}

.imc-office:nth-child(1) { animation-delay: 0s, 0s; }
.imc-office:nth-child(2) { animation-delay: 0s, 0.12s; }
.imc-office:nth-child(3) { animation-delay: 0s, 0.24s; }
.imc-office:nth-child(4) { animation-delay: 0s, 0.36s; }

/* верхняя акцентная полоса */
.imc-office::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        rgba(27, 170, 29, 0) 0%,
        rgba(27, 170, 29, 0.55) 50%,
        rgba(27, 170, 29, 0) 100%
    );
    background-size: 200% 100%;
    animation: imcLine 6s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes imcShine {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes imcLine {
    0%   { background-position: 0% 50%; opacity: 0.6; }
    50%  { background-position: 100% 50%; opacity: 1; }
    100% { background-position: 0% 50%; opacity: 0.6; }
}

@keyframes imcFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.imc-office:hover {
    transform: translateY(-4px);
    border-color: rgba(27, 170, 29, 0.35);
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 24px 50px rgba(27, 170, 29, 0.18),
        0 0 0 1px rgba(27, 170, 29, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ===== ОТСТУП СВЕРХУ ОТ ОПИСАНИЯ ОФИСА ===== */
.imc-office-info {
    padding: 70px 45px 40px 45px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: transparent;
    position: relative;
    z-index: 1;
}

.imc-office-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ===== ДОРОГАЯ ИКОНКА С СИЯНИЕМ ===== */
.imc-office-icon {
    position: relative;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #22c024 0%, #158a17 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    border-radius: 4px;
    box-shadow:
        0 6px 14px rgba(27, 170, 29, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.45s ease;
    animation: imcPulse 3.5s ease-in-out infinite;
}

.imc-office:hover .imc-office-icon {
    transform: scale(1.06) rotate(-2deg);
    box-shadow:
        0 10px 24px rgba(27, 170, 29, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

@keyframes imcPulse {
    0%, 100% { box-shadow: 0 6px 14px rgba(27, 170, 29, 0.35), inset 0 1px 0 rgba(255,255,255,0.35); }
    50%      { box-shadow: 0 8px 22px rgba(27, 170, 29, 0.55), inset 0 1px 0 rgba(255,255,255,0.45); }
}

.imc-office-head h4 {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    letter-spacing: 0.2px;
}

.imc-office-head .imc-office-tag {
    font-size: 12px;
    color: var(--imc-primary-dark);
    margin-top: 3px;
    display: block;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.85;
}

.imc-office-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.imc-office-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 14.5px;
    line-height: 1.55;
    color: #333;
    transition: transform 0.3s ease;
}

.imc-office-row:hover {
    transform: translateX(3px);
}

.imc-office-row .imc-row-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #eaf7ea 0%, #d8efd9 100%);
    color: var(--imc-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    margin-top: 1px;
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 1px 2px rgba(0,0,0,0.06);
    transition: background 0.35s ease, transform 0.35s ease;
}

.imc-office-row:hover .imc-row-icon {
    background: linear-gradient(135deg, #d8efd9 0%, #c4e6c6 100%);
    transform: scale(1.05);
}

.imc-office-row a {
    font-weight: 600;
    word-break: break-word;
}

/* карта — полупрозрачная, чтобы градиент просвечивал */
.imc-office-map {
    background: rgba(255, 255, 255, 0.5);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--imc-text-gray);
    font-size: 13px;
    text-align: center;
    padding: 0;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.imc-office-map > div {
    width: 100%;
    height: 100%;
}

.imc-office-map iframe {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 280px;
    border: 0;
}

/* уважение к пользователям, отключившим анимации */
@media (prefers-reduced-motion: reduce) {
    .imc-office,
    .imc-office::before,
    .imc-office-icon {
        animation: none !important;
    }
    .imc-office {
        background: #f5f5f5;
    }
}

/* ===== ЗАГОЛОВОК РЕКВИЗИТОВ (без анимации) ===== */
.imc-details-title h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    letter-spacing: 0.2px;
}

/* ===== РЕКВИЗИТЫ ===== */
.imc-details {
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    background: #fff;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 12px 32px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.imc-details:hover {
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.05),
        0 20px 48px rgba(27, 170, 29, 0.12);
    transform: translateY(-2px);
}

.imc-details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.imc-details-table tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.imc-details-table tr:hover {
    background: #fafdfa;
}

.imc-details-table tr:last-child {
    border-bottom: none;
}

.imc-details-table th {
    width: 240px;
    text-align: left;
    vertical-align: top;
    padding: 20px 24px;
    font-size: 13px;
    font-weight: 700;
    color: var(--imc-primary-dark);
    background: linear-gradient(180deg, #fbfdfb 0%, #f5faf5 100%);
    border-right: 1px solid #f0f0f0;
    line-height: 1.5;
    letter-spacing: 0.2px;
}

.imc-details-table td {
    padding: 20px 24px;
    color: #333;
    line-height: 1.65;
    vertical-align: top;
}

.imc-details-table td strong {
    display: block;
    font-weight: 700;
    color: #111;
    font-size: 15px;
    margin-bottom: 10px;
    letter-spacing: 0.2px;
}

.imc-details-table td a {
    font-weight: 600;
    position: relative;
}

.imc-details-table td a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 1px;
    background: var(--imc-primary);
    transition: width 0.35s ease;
}

.imc-details-table td a:hover::after {
    width: 100%;
}

.imc-req-mini {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 20px;
}

.imc-req-mini .imc-mini-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 3px;
    background: linear-gradient(180deg, #fbfdfb 0%, #f4faf5 100%);
    border: 1px solid #eef4ee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.imc-req-mini .imc-mini-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(27, 170, 29, 0.12);
}

.imc-req-mini .lbl {
    font-size: 12px;
    font-weight: 700;
    color: var(--imc-text-gray);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.imc-req-mini .val {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

/* ===================================================== */
/* ==================== АДАПТИВ ======================== */
/* ===================================================== */

/* ===== ПЛАНШЕТ: до 900px ===== */
@media (max-width: 900px) {
    .imc-contact-widget {
        padding: 0;
    }
    .imc-contact-widget .imc-inner {
        padding: 0;
    }

    /* описание */
    .imc-intro {
        font-size: 15px;
        line-height: 1.65;
        margin-bottom: 32px !important;
    }

    /* офисы в одну колонку */
    .imc-offices {
        gap: 24px;
        margin-bottom: 44px;
    }
    .imc-office {
        grid-template-columns: 1fr;
    }

    /* отступы внутри карточки офиса */
    .imc-office-info {
        padding: 50px 30px 30px 30px !important;
    }
    .imc-office-head {
        margin-left: 20px !important;
        padding-top: 0 !important;
    }
    .imc-office-body {
        margin-left: 20px !important;
    }
    .imc-office-row {
        padding-left: 10px !important;
    }

    /* карта — под описанием, сверху граница */
    .imc-office-map {
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        min-height: 260px;
    }
    .imc-office-map iframe {
        min-height: 260px;
    }

    /* заголовок реквизитов */
    .imc-details-title {
        margin-top: 44px !important;
        margin-bottom: 20px !important;
    }

    /* таблица реквизитов — label сверху на всю ширину */
    .imc-details-table th {
        width: 190px;
        padding: 18px 20px;
    }
    .imc-details-table td {
        padding: 18px 20px;
    }
    .imc-req-mini {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 16px;
    }
}

/* ===== ТЕЛЕФОН: до 640px ===== */
@media (max-width: 640px) {
    .imc-contact-widget {
        padding: 0;
    }
    .imc-contact-widget .imc-inner {
        padding: 0;
    }

    /* описание */
    .imc-intro {
        font-size: 14.5px;
        line-height: 1.6;
        margin-bottom: 26px !important;
    }

    /* офисы */
    .imc-offices {
        gap: 18px;
        margin-bottom: 32px;
    }
    .imc-office-info {
        padding: 36px 20px 24px 20px !important;
    }
    .imc-office-head {
        margin-left: 10px !important;
    }
    .imc-office-body {
        margin-left: 10px !important;
        gap: 12px;
    }
    .imc-office-row {
        padding-left: 8px !important;
        gap: 10px;
        font-size: 14px;
        line-height: 1.5;
    }
    .imc-office-row .imc-row-icon {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .imc-office-head h4 {
        font-size: 16px;
    }
    .imc-office-head .imc-office-tag {
        font-size: 11px;
        letter-spacing: 0.3px;
    }
    .imc-office-icon {
        width: 42px;
        height: 42px;
        font-size: 17px;
        border-radius: 3px;
    }

    .imc-office-map {
        min-height: 220px;
    }
    .imc-office-map iframe {
        min-height: 220px;
    }

    /* заголовок реквизитов */
    .imc-details-title {
        margin-top: 30px !important;
        margin-bottom: 16px !important;
    }
    .imc-details-title h3 {
        font-size: 18px;
    }

    /* таблица реквизитов — превращается в вертикальные блоки */
    .imc-details-table,
    .imc-details-table tbody,
    .imc-details-table tr,
    .imc-details-table th,
    .imc-details-table td {
        display: block;
        width: 100%;
    }
    .imc-details-table tr {
        border-bottom: 1px solid #f0f0f0;
    }
    .imc-details-table th {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 14px 20px 8px;
        background: linear-gradient(180deg, #fbfdfb 0%, #f5faf5 100%);
        font-size: 12px;
    }
    .imc-details-table td {
        padding: 10px 20px 18px;
        font-size: 14.5px;
        line-height: 1.6;
    }
    .imc-details-table td strong {
        font-size: 14.5px;
        margin-bottom: 8px;
    }

    /* реквизиты — 2 колонки */
    .imc-req-mini {
        grid-template-columns: 1fr 1fr;
        gap: 8px 12px;
    }
    .imc-req-mini .imc-mini-item {
        padding: 6px 8px;
    }
    .imc-req-mini .lbl {
        font-size: 11px;
    }
    .imc-req-mini .val {
        font-size: 14px;
    }
}

/* ===== МАЛЕНЬКИЙ ТЕЛЕФОН: до 420px ===== */
@media (max-width: 420px) {
    .imc-contact-widget .imc-inner {
        padding: 0px;
    }

    .imc-intro {
        font-size: 14px;
        margin-bottom: 22px !important;
    }

    .imc-office-info {
        padding: 30px 16px 20px 16px !important;
    }
    .imc-office-head {
        margin-left: 6px !important;
        gap: 12px;
    }
    .imc-office-body {
        margin-left: 6px !important;
    }
    .imc-office-row {
        padding-left: 6px !important;
    }
    .imc-office-head h4 {
        font-size: 15px;
    }
    .imc-office-icon {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .imc-office-map {
        min-height: 200px;
    }
    .imc-office-map iframe {
        min-height: 200px;
    }

    .imc-details-title h3 {
        font-size: 17px;
    }
    .imc-details-table td {
        padding: 8px 16px 16px;
        font-size: 14px;
    }
    .imc-details-table th {
        padding: 12px 16px 6px;
    }

    /* реквизиты — в одну колонку */
    .imc-req-mini {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}