/* Homepage — mobile & tablet responsive polish (KTCC colors) */

/* Prevent horizontal scroll from wide children */
body {
    overflow-x: clip;
}

.home-page .container,
.about .container,
.projects .container {
    padding-left: clamp(16px, 4vw, 32px);
    padding-right: clamp(16px, 4vw, 32px);
}

/* ----- About / ISO block ----- */
@media (max-width: 768px) {
    .about-iso-showcase {
        padding: 20px 16px;
    }

    .about-certificate-panel__toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .about-certificate-panel__actions {
        flex-direction: column;
        width: 100%;
    }

    .about-certificate-panel__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .about-certificate-frame-wrap {
        min-height: 280px;
    }

    .about-certificate-iframe {
        height: min(380px, 50vh);
    }
}

@media (max-width: 576px) {
    .about-intro .about-lead,
    .about-intro .about-support {
        font-size: 15px;
        line-height: 1.72;
    }

    .about-iso-badge {
        padding: 14px 16px;
    }
}

/* ----- Why choose (extra mobile) ----- */
/* why-choose mobile rules live in css/why-choose.css */

/* ----- Team filters ----- */
@media (max-width: 520px) {
    .ktcc-team__headline {
        font-size: 1.35rem;
    }
}

/* ----- Footer ----- */
@media (max-width: 768px) {
    footer {
        padding: 56px 0 24px;
    }

    .mini-contact-cta + footer {
        padding-top: 0;
        padding-bottom: 24px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
    }

    .footer-col:first-child {
        grid-column: 1 / -1;
    }

    .footer-col p {
        font-size: 14px;
        margin-bottom: 0;
    }

    .footer-links a {
        font-size: 14px;
    }

    .contact-method {
        align-items: flex-start;
        font-size: 14px;
        padding: 6px 0;
    }

    .contact-method i {
        flex-shrink: 0;
        margin-top: 1px;
    }

    .contact-method span {
        line-height: 1.55;
        word-break: break-word;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 36px;
    }

    .footer-col h3 {
        font-size: 17px;
        margin-bottom: 16px;
    }

    .footer-bottom {
        padding-top: 24px;
    }

    .footer-bottom p {
        font-size: 13px;
        line-height: 1.6;
        padding: 0 8px;
    }
}
