/* =====================================================================
   PRINTINGLIFE — KONTAKTY
   Hero → 3 info-карточки (связь / адрес / часы) → маршруты (пешком / авто)
   → блок доставки.
   Токены — из printinglife-header.css.
   ===================================================================== */

.pl-kontakty {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--pl-text);
    -webkit-font-smoothing: antialiased;
}

.pl-kontakty__container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 var(--pl-page-px);
}

/* ========== HERO ========== */
.pl-kontakty__hero {
    padding: 3rem 0 1.5rem;
    background: #ffffff;
}

.pl-kontakty__title {
    font-size: clamp(1.875rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--pl-ink);
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.1;
}

/* ========== Секции ========== */
.pl-kontakty__section {
    padding: 3rem 0;
    background: #fff;
}

.pl-kontakty__section--light {
    background: var(--pl-bg-soft);
}

.pl-kontakty__section-head {
    margin-bottom: 1.75rem;
}

.pl-kontakty__section-head h2 {
    font-size: clamp(1.4rem, 2.2vw, 1.75rem);
    font-weight: 800;
    color: var(--pl-ink);
    letter-spacing: -0.02em;
    margin: 0 0 0.4rem;
}

.pl-kontakty__section-head p {
    max-width: 720px;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--pl-muted);
}

/* ========== 3 info-карточки ========== */
.pl-kontakty__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.pl-kontakty__card {
    background: #fff;
    border: 1px solid var(--pl-line);
    border-radius: 14px;
    padding: 1.5rem 1.5rem 1.75rem;
    transition: border-color 200ms ease, box-shadow 200ms ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pl-kontakty__card:hover {
    border-color: rgba(254, 46, 70, 0.25);
    box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.06);
}

.pl-kontakty__card-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pl-kontakty__card-head h2,
.pl-kontakty__card-head h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--pl-ink);
    letter-spacing: -0.005em;
}

.pl-kontakty__card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--pl-bg-tint);
    color: var(--pl-brand);
    flex-shrink: 0;
}

.pl-kontakty__card-icon svg {
    width: 20px;
    height: 20px;
}

/* Общий стиль списков в карточках */
.pl-kontakty__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pl-kontakty__list li {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--pl-line-soft);
}

.pl-kontakty__list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.pl-kontakty__list a,
.pl-kontakty__list strong {
    color: var(--pl-ink);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color 160ms ease;
}

.pl-kontakty__list a:hover {
    color: var(--pl-brand);
}

.pl-kontakty__muted {
    font-size: 0.75rem;
    color: var(--pl-muted);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-weight: 600;
}

.pl-kontakty__stack {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* Мини-чип типа «Telegram» справа от номера */
.pl-kontakty__chip {
    display: inline-flex !important;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    background: var(--pl-bg-soft);
    border: 1px solid var(--pl-line);
    border-radius: 999px;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    color: var(--pl-ink-soft) !important;
    line-height: 1;
}

.pl-kontakty__chip svg {
    width: 12px;
    height: 12px;
}

.pl-kontakty__chip:hover {
    border-color: var(--pl-brand);
    color: var(--pl-brand) !important;
}

/* Параграфы в карточке адреса */
.pl-kontakty__line {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--pl-ink);
    font-weight: 500;
}

/* Карта-превью */
.pl-kontakty__map {
    display: block;
    position: relative;
    height: 160px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    overflow: hidden;
    transition: transform 240ms ease;
    margin-top: auto;
}

.pl-kontakty__map:hover {
    transform: translateY(-2px);
}

.pl-kontakty__map::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, 0.55) 100%);
}

.pl-kontakty__map-label {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 1;
}

.pl-kontakty__map-label svg {
    width: 16px;
    height: 16px;
}

/* ========== Маршруты (пешком / на машине) ========== */
.pl-kontakty__routes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.pl-kontakty__route {
    background: #fff;
    border: 1px solid var(--pl-line);
    border-radius: 14px;
    padding: 1.5rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pl-kontakty__steps {
    counter-reset: pl-step;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pl-kontakty__steps li {
    counter-increment: pl-step;
    padding-left: 2.25rem;
    position: relative;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--pl-ink);
}

.pl-kontakty__steps li::before {
    content: counter(pl-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 26px;
    height: 26px;
    background: var(--pl-bg-tint);
    color: var(--pl-brand);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== Доставка ========== */
.pl-kontakty__delivery {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg, var(--pl-bg-soft) 0%, #fff 100%);
    border: 1px solid var(--pl-line);
    border-radius: 14px;
}

.pl-kontakty__delivery-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--pl-brand);
    color: #fff;
    flex-shrink: 0;
}

.pl-kontakty__delivery-icon svg {
    width: 30px;
    height: 30px;
}

.pl-kontakty__delivery h3 {
    margin: 0 0 0.35rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--pl-ink);
}

.pl-kontakty__delivery p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--pl-ink-soft);
    max-width: 700px;
}

.pl-kontakty__delivery strong {
    color: var(--pl-ink);
    font-weight: 700;
}

/* ========== Адаптивность ========== */
@media (max-width: 960px) {
    .pl-kontakty__cards {
        grid-template-columns: 1fr;
    }
    .pl-kontakty__routes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .pl-kontakty__hero {
        padding: 2.5rem 0 2rem;
    }
    .pl-kontakty__section {
        padding: 2.25rem 0;
    }
    .pl-kontakty__card,
    .pl-kontakty__route {
        padding: 1.25rem;
    }
    .pl-kontakty__delivery {
        flex-direction: column;
        padding: 1.5rem;
    }
    .pl-kontakty__map {
        height: 140px;
    }
}
