/*
 * Contacts page 2026.
 * Scope: /kontakty/ only via page-kontakty.php.
 * Source of truth: approved contact-page mockup.
 */

#content.site-content {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 24px 0 48px;
}

#content.site-content::before,
#content.site-content::after {
    display: none;
}

.kyc-contacts-page,
.kyc-contacts-page * {
    box-sizing: border-box;
}

.kyc-contacts-page {
    --kyc-blue: #003f99;
    --kyc-blue-2: #075fd3;
    --kyc-blue-3: #0d72e8;
    --kyc-deep: #002d75;
    --kyc-text: #0c2341;
    --kyc-muted: #6f7f94;
    --kyc-border: #dbe5f1;
    --kyc-soft: #f7faff;
    --kyc-red: #e51f2a;
    --kyc-shadow: 0 10px 30px rgba(11, 49, 103, .08);
    width: min(1430px, calc(100% - 32px));
    max-width: 1430px;
    margin: 0 auto;
    color: var(--kyc-text);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
}

.kyc-contacts-page a {
    text-decoration: none;
}

.kyc-contacts-page h1,
.kyc-contacts-page h2,
.kyc-contacts-page h3,
.kyc-contacts-page p {
    margin-top: 0;
}

.kyc-contacts-page svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Hero */
.kyc-contacts-hero {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    border-radius: 10px;
    padding: 54px 46px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(0, 50, 132, .98) 0%, rgba(0, 59, 158, .94) 36%, rgba(0, 74, 184, .44) 61%, rgba(0, 62, 155, .20) 100%),
        url("../images/hero-desktop.webp") center center / cover no-repeat;
    box-shadow: var(--kyc-shadow);
}

.kyc-contacts-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -35% 44%;
    height: 56%;
    border-radius: 50%;
    background: rgba(13, 114, 232, .20);
    transform: rotate(-5deg);
    pointer-events: none;
}

.kyc-contacts-hero__content {
    position: relative;
    z-index: 2;
    width: min(500px, 46%);
}

.kyc-contacts-hero h1 {
    margin: 0 0 16px;
    color: #fff;
    font-family: inherit;
    font-size: clamp(38px, 3.45vw, 50px);
    font-weight: 500;
    line-height: 1.03;
    letter-spacing: -.025em;
}

.kyc-contacts-hero__content > p {
    max-width: 410px;
    margin-bottom: 26px;
    color: rgba(255, 255, 255, .94);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
}

.kyc-contacts-hero__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.kyc-btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 11px 18px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.2;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.kyc-btn:hover {
    transform: translateY(-1px);
}

.kyc-btn--red {
    color: #fff;
    background: var(--kyc-red);
    box-shadow: 0 7px 18px rgba(229, 31, 42, .24);
}

.kyc-btn--red:hover {
    color: #fff;
    background: #cf1823;
}

.kyc-btn--ghost {
    color: #fff;
    background: transparent;
}

.kyc-btn--ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.kyc-btn__icon,
.kyc-contact-fact__link span,
.kyc-contact-map-card > a span {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.kyc-contacts-hero__qr {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 34px;
    width: 190px;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 9px;
    padding: 17px 17px 16px;
    color: var(--kyc-text);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 16px 36px rgba(0, 33, 83, .18);
}

.kyc-contacts-hero__qr strong {
    display: block;
    margin-bottom: 12px;
    color: #102844;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
}

.kyc-contacts-hero__qr img {
    display: block;
    width: 116px;
    height: 116px;
    margin: 0 auto;
}

/* Quick facts */
.kyc-contact-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.kyc-contact-fact {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    min-height: 145px;
    border: 1px solid var(--kyc-border);
    border-radius: 9px;
    padding: 22px 20px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(20, 54, 99, .055);
}

.kyc-contact-fact__icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #0561c9;
}

.kyc-contact-fact__icon svg {
    width: 30px;
    height: 30px;
}

.kyc-contact-fact__label {
    display: block;
    margin-bottom: 5px;
    color: #8a96a8;
    font-size: 12px;
    font-weight: 400;
}

.kyc-contact-fact__value {
    display: block;
    margin-bottom: 7px;
    color: #092a5d;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.42;
}

.kyc-contact-fact__value--address {
    max-width: 230px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.46;
    letter-spacing: -.005em;
}

.kyc-contact-fact__accent {
    display: block;
    margin-bottom: 3px;
    color: var(--kyc-red);
    font-size: 14px;
    font-weight: 500;
}

.kyc-contact-fact div > span:not(.kyc-contact-fact__label):not(.kyc-contact-fact__value):not(.kyc-contact-fact__accent) {
    display: block;
    color: #5f6f83;
    font-size: 13px;
    font-weight: 400;
}

.kyc-contact-fact__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: #0056bd;
    font-size: 13px;
    font-weight: 500;
}

.kyc-contact-fact__link:hover {
    color: #003f99;
}

/* Address and maps */
.kyc-contact-map-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.kyc-contact-address-card,
.kyc-contact-map-card,
.kyc-additional-offices {
    border: 1px solid var(--kyc-border);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(20, 54, 99, .05);
}

.kyc-contact-address-card {
    display: flex;
    flex-direction: column;
    padding: 22px 20px;
}

.kyc-contact-address-card h2,
.kyc-contact-map-card h2,
.kyc-additional-offices h2 {
    margin-bottom: 16px;
    color: #07347a;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
}

.kyc-contact-address-card__block {
    margin-bottom: 18px;
}

.kyc-contact-address-card__block:last-child {
    margin-bottom: 0;
}

.kyc-contact-address-card__block h3 {
    margin-bottom: 7px;
    color: #16345d;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
}

.kyc-contact-address-card__block p {
    margin-bottom: 0;
    color: #5d6b7d;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
}

.kyc-contact-map-card {
    overflow: hidden;
    padding: 0 0 14px;
}

.kyc-contact-map-card h2 {
    margin: 0;
    padding: 18px 18px 14px;
}

.kyc-contact-map-card__frame {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    background: #edf4fb;
}

.kyc-contact-map-card__frame iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: 0;
}

.kyc-contact-map-card > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 13px 18px 0;
    color: #0755b5;
    font-size: 13px;
    font-weight: 500;
}

.kyc-contact-map-card > a:hover {
    color: #003f99;
}

/* Offices */
.kyc-additional-offices {
    margin-top: 18px;
    padding: 18px 20px 20px;
}

.kyc-additional-offices h2 {
    margin-bottom: 12px;
}

.kyc-additional-offices__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 7px;
}

.kyc-additional-offices__item {
    display: grid;
    grid-template-columns: 7px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    color: #4f6075;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.45;
}

.kyc-additional-offices__dot {
    width: 5px;
    height: 5px;
    margin-top: 7px;
    border-radius: 50%;
    background: #1269d4;
}

/* Desktop refinement */
@media (max-width: 1250px) {
    .kyc-contacts-page {
        width: min(1180px, calc(100% - 28px));
    }

    .kyc-contacts-hero {
        min-height: 320px;
        padding: 48px 40px;
    }

    .kyc-contacts-hero__content {
        width: 44%;
    }

    .kyc-contacts-hero__qr {
        right: 26px;
        width: 178px;
    }

    .kyc-contact-map-grid {
        grid-template-columns: 250px minmax(0, 1fr) minmax(0, 1fr);
    }

    .kyc-contact-facts {
        gap: 14px;
    }
}

@media (max-width: 1050px) {
    #content.site-content {
        padding-top: 18px;
    }

    .kyc-contacts-page {
        width: min(100% - 24px, 980px);
    }

    .kyc-contacts-hero {
        min-height: 315px;
        padding: 42px 32px;
        background-position: 58% center;
    }

    .kyc-contacts-hero__content {
        width: 47%;
    }

    .kyc-contacts-hero h1 {
        font-size: 42px;
    }

    .kyc-contacts-hero__qr {
        width: 166px;
        padding: 14px;
    }

    .kyc-contacts-hero__qr img {
        width: 98px;
        height: 98px;
    }

    .kyc-contact-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kyc-contact-map-grid {
        grid-template-columns: 1fr 1fr;
    }

    .kyc-contact-address-card {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: start;
        column-gap: 22px;
    }

    .kyc-contact-address-card h2 {
        grid-column: 1 / -1;
    }

    .kyc-contact-address-card__block {
        margin-bottom: 0;
    }

    .kyc-additional-offices__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 767px) {
    #content.site-content {
        padding: 12px 0 28px;
    }

    .kyc-contacts-page {
        width: calc(100% - 14px);
        max-width: none;
        font-size: 15px;
    }

    .kyc-contacts-hero {
        min-height: auto;
        border-radius: 9px;
        padding: 28px 20px 20px;
        background:
            linear-gradient(180deg, rgba(0, 58, 155, .96) 0%, rgba(0, 63, 159, .91) 62%, rgba(0, 54, 137, .96) 100%),
            url("../images/hero-mobile.webp") 64% center / cover no-repeat;
    }

    .kyc-contacts-hero::after {
        inset: auto -30% -16% 28%;
        height: 34%;
    }

    .kyc-contacts-hero__content {
        width: 100%;
        padding-right: 0;
    }

    .kyc-contacts-hero h1 {
        margin-bottom: 12px;
        font-size: clamp(30px, 8.8vw, 37px);
        line-height: 1.06;
    }

    .kyc-contacts-hero__content > p {
        max-width: 95%;
        margin-bottom: 22px;
        font-size: 15px;
        line-height: 1.5;
    }

    .kyc-contacts-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .kyc-btn {
        width: 100%;
        min-height: 44px;
    }

    .kyc-btn--ghost {
        border-color: rgba(255, 255, 255, .26);
        background: rgba(255, 255, 255, .07);
    }

    .kyc-contacts-hero__qr {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin-top: 18px;
        transform: none;
        display: grid;
        grid-template-columns: 1fr 92px;
        align-items: center;
        gap: 14px;
        padding: 14px 14px 14px 16px;
    }

    .kyc-contacts-hero__qr strong {
        margin: 0;
        font-size: 15px;
        line-height: 1.3;
    }

    .kyc-contacts-hero__qr img {
        width: 88px;
        height: 88px;
        margin: 0;
    }

    .kyc-contact-facts {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 12px;
    }

    .kyc-contact-fact {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 9px;
        min-height: 0;
        border-radius: 8px;
        padding: 15px 13px;
    }

    .kyc-contact-fact__icon {
        width: 28px;
        height: 28px;
    }

    .kyc-contact-fact__icon svg {
        width: 24px;
        height: 24px;
    }

    .kyc-contact-fact__label {
        font-size: 10.5px;
    }

    .kyc-contact-fact__value {
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    .kyc-contact-fact__value--address {
        max-width: none;
        font-size: 11.8px;
        line-height: 1.42;
        letter-spacing: 0;
    }

    .kyc-contact-fact__accent,
    .kyc-contact-fact div > span:not(.kyc-contact-fact__label):not(.kyc-contact-fact__value):not(.kyc-contact-fact__accent),
    .kyc-contact-fact__link {
        font-size: 11.5px;
    }

    .kyc-contact-map-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 12px;
    }

    .kyc-contact-address-card {
        display: flex;
        grid-column: auto;
        padding: 18px 16px;
    }

    .kyc-contact-address-card__block {
        margin-bottom: 14px;
    }

    .kyc-contact-map-card {
        padding-bottom: 12px;
    }

    .kyc-contact-map-card h2 {
        padding: 15px 15px 12px;
        font-size: 15px;
    }

    .kyc-contact-map-card__frame {
        min-height: 235px;
    }

    .kyc-contact-map-card__frame iframe {
        height: 235px;
    }

    .kyc-contact-map-card > a {
        margin: 11px 15px 0;
        font-size: 12.5px;
    }

    .kyc-additional-offices {
        margin-top: 12px;
        padding: 16px 15px;
    }

    .kyc-additional-offices__grid {
        grid-template-columns: 1fr 1fr;
        gap: 7px 16px;
    }

    .kyc-additional-offices__item {
        font-size: 11.5px;
    }
}

@media (max-width: 480px) {
    .kyc-contacts-page {
        width: calc(100% - 10px);
    }

    .kyc-contacts-hero {
        padding: 24px 14px 14px;
    }

    .kyc-contacts-hero h1 {
        font-size: 31px;
    }

    .kyc-contacts-hero__content > p {
        max-width: 100%;
        font-size: 14px;
    }

    .kyc-contact-facts {
        grid-template-columns: 1fr;
    }

    .kyc-contact-fact {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .kyc-additional-offices__grid {
        grid-template-columns: 1fr;
    }
}
