/**
 * ============================================================
 * KM KZZPRM w Trójmieście
 * Strona główna - Responsive
 * ============================================================
 *
 * Tablet: 900 px
 * Telefon: 600 px
 * Mały telefon: 380 px
 */

/* ============================================================
   1. TABLET / iPAD
   ============================================================ */

@media (max-width: 900px) {

    /* WSPÓLNA SZEROKOŚĆ */

    .hero-container,
    .about-container,
    .values-container,
    .documents-container,
    .join-container,
    .latest-posts-container {
        width: min(720px, calc(100% - 48px));
    }

    /* HERO */

    .hero,
    .hero-container {
        min-height: auto;
    }

    .hero-container {
        padding: 48px 0;

        grid-template-columns: minmax(0, 1fr) 230px;
        align-items: center;

        gap: 44px;
    }

    .hero-content {
        max-width: 600px;
    }

    .hero-title {
        font-size: clamp(2.8rem, 7vw, 3.8rem);
    }

    .hero-description {
        max-width: 580px;

        font-size: 0.96rem;
        line-height: 1.6;
    }

    .hero-motto {
        font-size: 1.15rem;
    }

    .hero-visual {
        min-height: 290px;
    }

    .hero-logo {
        top: 0;
        right: 0;

        width: 210px;
    }

    .hero-slogan {
        top: 198px;
        right: 14px;
        bottom: auto;

        width: 135px;
    }

    /* O NAS */

    .about-container {
        padding: 52px 0;

        grid-template-columns: 1fr;

        gap: 34px;
    }

    .about-content {
        max-width: 660px;
    }

    .about-title {
        font-size: 2.25rem;
    }

    .about-text {
        max-width: 660px;

        font-size: 0.96rem;
        line-height: 1.65;
    }

    .about-national {
        font-size: 0.9rem;
    }

    .about-since-text {
        font-size: 0.85rem;
    }

    .about-since-text strong {
        font-size: 0.9rem;
    }

    .about-visual {
        min-height: auto;

        padding: 28px;
    }

    .about-quote p {
        font-size: 1.35rem;
    }

    .about-ekg {
        max-width: 340px;
    }

    .about-words {
        justify-content: flex-start;

        font-size: 0.58rem;
    }

    /* WARTOŚCI */

    .values-container {
        padding: 44px 0;
    }

    .values-heading {
        margin-bottom: 30px;
    }

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

    .value-item {
        min-height: auto;

        padding: 8px 22px;
    }

    .value-icon {
        width: 58px;
        height: 58px;
    }

    .value-title {
        font-size: 1.08rem;
    }

    .value-text {
        font-size: 0.83rem;
        line-height: 1.55;
    }

    /* DOKUMENTY */

    .documents-container {
        padding: 44px 0 50px;
    }

    .documents-grid {
        grid-template-columns: 1fr;
    }

    .document-card {
        min-height: auto;

        padding: 20px 22px;
    }

    .document-title {
        font-size: 0.94rem;
    }

    .document-text {
        font-size: 0.84rem;
        line-height: 1.55;
    }

    .document-link {
        font-size: 0.78rem;
    }

    /* DOŁĄCZ */

    .join,
    .join-container {
        min-height: auto;
    }

    .join-container {
        padding: 42px 0;

        grid-template-columns: 1fr 0.9fr;

        gap: 42px;
    }

    .join-title {
        font-size: 2rem;
    }

    .join-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .join-button,
    .join-contact-link {
        font-size: 0.78rem;
    }

    /* NAJNOWSZE WPISY */

    .latest-posts-container {
        padding: 46px 0 54px;
    }

    .latest-posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .latest-post-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .latest-post-title {
        font-size: 0.92rem;
    }

    .latest-posts-all {
        font-size: 0.78rem;
    }

    .latest-posts-empty p {
        font-size: 0.9rem;
        line-height: 1.55;
    }
}

/* ============================================================
   2. TELEFON
   ============================================================ */

@media (max-width: 600px) {

    /* WSPÓLNA SZEROKOŚĆ */

    .hero-container,
    .about-container,
    .values-container,
    .documents-container,
    .join-container,
    .latest-posts-container {
        width: calc(100% - 32px);
    }

    /* WSPÓLNY TEKST */

    .section-eyebrow {
        font-size: 0.72rem;
    }

    /* HERO */

    .hero-container {
        padding: 42px 0 34px;

        display: block;
    }

    .hero-eyebrow {
        margin-bottom: 12px;

        font-size: 0.74rem;
    }

    .hero-title {
        font-size: clamp(2.7rem, 13vw, 3.5rem);
        line-height: 1;
    }

    .hero-description {
        margin-top: 20px;

        font-size: 1rem;
        line-height: 1.65;
    }

    .hero-accent {
        margin-top: 20px;
    }

    .hero-motto {
        margin-top: 16px;

        font-size: 1.2rem;
    }

    .hero-actions {
        margin-top: 24px;

        flex-direction: column;

        gap: 10px;
    }

    .hero-button {
        width: 100%;
        min-height: 46px;

        font-size: 0.88rem;
    }

    .hero-visual {
        min-height: 280px;

        margin-top: 28px;
    }

    .hero-logo {
        top: 0;
        left: 50%;
        right: auto;

        width: 190px;
        max-width: 58vw;

        transform: translateX(-50%);
    }

    .hero-slogan {
        top: 186px;
        left: 50%;
        right: auto;
        bottom: auto;

        width: 135px;

        transform: translateX(-50%);
    }

    /* O NAS */

    .about-container {
        padding: 44px 0;

        gap: 28px;
    }

    .about-title {
        margin-bottom: 20px;

        font-size: 2rem;
    }

    .about-text {
        margin-bottom: 14px;

        font-size: 1rem;
        line-height: 1.7;
    }

    .about-national {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .about-since {
        align-items: flex-start;
    }

    .about-since-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .about-since-text strong {
        font-size: 0.95rem;
    }

    .about-visual {
        padding: 24px 22px;
    }

    .about-quote {
        padding-left: 17px;
    }

    .about-quote p {
        font-size: 1.28rem;
        line-height: 1.18;
    }

    .about-quote::before {
        height: 36px;
    }

    .about-ekg {
        max-width: 100%;

        margin-top: 16px;
    }

    .about-words {
        flex-wrap: wrap;

        gap: 6px;

        font-size: 0.56rem;
    }

    /* WARTOŚCI */

    .values-container {
        padding: 42px 0;
    }

    .values-heading {
        margin-bottom: 24px;
    }

    .values-title {
        font-size: 1.85rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-item,
    .value-item+.value-item {
        min-height: auto;

        padding: 24px 0;

        border-left: 0;
        border-bottom: 1px solid #cfdee9;
    }

    .value-item:last-child {
        border-bottom: 0;
    }

    .value-icon {
        width: 60px;
        height: 60px;

        margin-bottom: 12px;
    }

    .value-title {
        font-size: 1.2rem;
    }

    .value-text {
        max-width: 340px;

        font-size: 0.95rem;
        line-height: 1.65;
    }

    /* DOKUMENTY */

    .documents-container {
        padding: 42px 0 46px;
    }

    .documents-title {
        font-size: 1.85rem;
    }

    .documents-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .document-card {
        grid-template-columns: 48px 1fr;

        padding: 20px;

        gap: 15px;
    }

    .document-title {
        font-size: 1rem;
    }

    .document-text {
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .document-link {
        font-size: 0.84rem;
    }

    /* DOŁĄCZ */

    .join-container {
        padding: 42px 0;

        grid-template-columns: 1fr;

        gap: 24px;
    }

    .join-title {
        font-size: 2rem;
    }

    .join-text {
        margin: 0 0 18px;

        font-size: 1rem;
        line-height: 1.65;
    }

    .join-button {
        width: 100%;
        min-height: 44px;

        font-size: 0.86rem;
    }

    .join-contact-link {
        margin: 16px 0 0;

        font-size: 0.86rem;
    }

    /* NAJNOWSZE WPISY */

    .latest-posts-container {
        padding: 42px 0 48px;
    }

    .latest-posts-heading {
        align-items: flex-start;
        flex-direction: column;

        gap: 14px;
    }

    .latest-posts-title {
        font-size: 1.85rem;
    }

    .latest-posts-all {
        font-size: 0.84rem;
    }

    .latest-posts-grid {
        grid-template-columns: 1fr;
    }

    .latest-post-card:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .latest-post-image-link,
    .latest-post-image,
    .latest-post-placeholder {
        min-height: 190px;
        height: 190px;
    }

    .latest-post-content {
        min-height: 110px;

        padding: 16px 44px 18px 16px;
    }

    .latest-post-date {
        font-size: 0.72rem;
    }

    .latest-post-title {
        font-size: 1rem;
        line-height: 1.4;
    }

    .latest-posts-empty {
        padding: 24px 22px;
    }

    .latest-posts-empty p {
        font-size: 0.94rem;
        line-height: 1.6;
    }
}

/* ============================================================
   3. BARDZO MAŁY TELEFON
   ============================================================ */

@media (max-width: 380px) {

    .hero-container,
    .about-container,
    .values-container,
    .documents-container,
    .join-container,
    .latest-posts-container {
        width: calc(100% - 24px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-title,
    .join-title {
        font-size: 1.85rem;
    }

    .values-title,
    .documents-title,
    .latest-posts-title {
        font-size: 1.7rem;
    }
}

/* ============================================================
   4. OGRANICZENIE ANIMACJI
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .hero-logo,
    .hero-slogan {
        transition: none;
    }
}