@media (max-width: 83rem) {
    #application > .item-container {
        flex-direction: column;
        margin: 3rem 0;
    }
}

@media (max-width: 70rem) {
    header {
        overflow: hidden;
    }

    section {
        min-height: 100vh;
        min-height: 100dvh;
    }

    .keyword h1 {
        font-size: calc(100vw / 10);
        bottom: calc(50vh - 18rem);
    }

    .header-logo {
        display: none;
    }

    .header-banner {
        font-size: 2rem;
        width: 23rem;
        left: unset;
        right: 1rem;
        bottom: calc(50vh - 23rem);
    }

    .header-banner a {
        padding: 1rem 2rem 1rem 2rem;
        text-align: center;
    }

    nav {
        align-items: center;
        background: transparent;
        display: flex;
        justify-content: center;
        overflow: hidden;
        position: fixed;
        top: 0;
        z-index: 99;
        transition: 0.3s;
    }

    nav:has(input:checked) {
        height: 100vh;
        height: 100dvh;
        background: var(--theme-blue-800);
    }

    nav img {
        display: block;
        height: 5rem;
        position: absolute;
        top: 0rem;
        left: 1rem;
    }

    nav label {
        align-items: center;
        display: flex;
        flex-direction: column;
        height: 5rem;
        justify-content: space-evenly;
        position: absolute;
        top: 0;
        left: calc(100vw - 5rem);
        left: calc(100dvw - 5rem);
        transition: 0.3s;
        width: 5rem;
    }

    nav input:checked + label:hover {
        background: #cc0000;
    }

    nav label span {
        background: #fff;
        display: block;
        height: 0.2rem;
        width: 65%;
        transition: 0.3s;
    }

    nav input:checked + label span:first-child {
        transform: translate(0, 1.3rem) rotate(45deg);
    }

    nav input:checked + label span:nth-child(2) {
        opacity: 0;
    }

    nav input:checked + label span:last-child {
        transform: translate(0, -1.3rem) rotate(-45deg);
    }

    nav ul {
        position: absolute;
        top: calc(50vh - 20rem);
        align-items: start;
        flex-direction: column;
        font-weight: 700;
        gap: 2rem 0;
        height: calc(100vh - 40rem);
        margin: 5rem 0;
        min-height: 25rem;
    }

    nav ul li:last-child {
        background: #fff;
        border-radius: 2rem;
        padding: 1rem;
        width: 100%;
        text-align: center;
        box-shadow: 0 0 0.3rem var(--theme-blue-050);
    }

    nav ul li a {
        font-size: 1.5rem;
    }

    nav ul li:last-child a {
        color: var(--theme-blue-800);
    }

    #cost {
        padding: 3rem;
        position: relative;
    }

    .cost-elements-container {
        align-items: center;
        flex-direction: column;
    }

    .cost-elements-container picture {
        z-index: -1;
    }

    #cost .description-container {
        width: 100%;
    }

    .description-container > p,
    #cost .cost-card {
        -webkit-backdrop-filter: blur(10px) grayscale(0.7);
        backdrop-filter: blur(10px) grayscale(0.7);
    }

    #cost .cost-card ul {
        height: 3.5rem;
    }

    #cost .cost-card li:first-child .strong {
        font-size: 2rem;
    }

    #cost .cost-card:nth-child(1):has(input:checked),
    #cost .cost-card:nth-child(2):has(input:checked),
    #cost .cost-card:nth-child(3):has(input:checked) {
        order: inherit;
    }

    #cost img {
        position: absolute;
        top: 9rem;
        left: 6rem;
        right: 0;
        bottom: 0;
        width: calc(100% - 6rem);
    }
}

@media (max-width: 50rem) {
    #about {
        height: auto;
    }

    #about > .card-content-wrapper {
        flex-direction: column;
        gap: 1rem 0;
        margin: 0;
        transform: translate(0);
    }

    .card-content-wrapper > .card {
        flex: unset;
    }

    .card:nth-child(3) {
        padding: 2rem 1rem;
    }

    .card .img-wrapper {
        aspect-ratio: unset;
    }

    .card img {
        object-fit: contain;
        max-height: 10rem;
        width: 10rem;
    }

    .card:nth-child(2) img {
        padding: 3rem 0;
    }

    .card:nth-child(3) img {
        display: none;
    }

    #routine {
        position: relative;
    }

    #routine h2 {
        color: var(--theme-blue-800);
        position: initial;
    }

    .routine-frame {
        position: initial;
        flex-wrap: wrap;
    }

    .routine {
        height: 30vh;
        height: 30dvh;
    }

    .routine-img {
        position: initial;
        height: 100%;
        width: calc(100% - 5rem);
    }

    .routine:nth-child(odd) .routine-img {
        margin: 0 0 0 5rem;
    }

    .routine .routine-text {
        width: 5rem;
    }

    .routine:nth-child(odd) .routine-text {
        left: unset;
        right: unset;
    }

    .routine:nth-child(even) .routine-text {
        left: unset;
        right: 0;
    }

    .routine-text p {
        font-size: 1rem;
    }

    .routine-text p:nth-child(2) {
        font-size: 1.5rem;
    }

    .info-graphics-container {
        position: unset;
        padding: 0 1rem;
        margin: 0;
        width: 100%;
    }

    .info-graphics-container > * {
        max-width: 100%;
    }

    .info-graphics-container > .fun img {
        width: 15vw;
    }

    #bird {
        display: flex;
        flex-direction: column;
    }
    .birds-container {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .bird-container {
        align-items: center;
        margin: 1rem 0 !important;
        width: 100%;
    }

    .bird-container h3 {
        font-size: 2rem !important;
        width: 100%;
    }

    .bird-container img {
        margin: auto;
        max-height: unset !important;
        width: 80% !important;
    }

    .bird-container:nth-child(2) img {
        margin: 0;
    }

    #bird > p {
        width: 100%;
        min-width: unset;
        max-width: unset;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2.4rem;
        line-height: 3rem;
    }

    .PG-img-frame img {
        bottom: unset;
        top: 6rem;
    }

    .info-graphics-container {
        bottom: 1rem;
        gap: 0.5rem 0;
        position: absolute;
        justify-content: space-between;
    }

    .info-graphics-container .speed,
    .info-graphics-container .before-first-flight,
    .info-graphics-container .cost {
        width: 32%;
    }

    .info-graphics-container .speed > .large,
    .info-graphics-container .before-first-flight > .large,
    .info-graphics-container .cost > .large {
        font-size: 1.5rem;
    }

    .info-graphics-container .speed {
        order: -1;
    }

    .info-graphics-container .fun {
        width: 100%;
    }

    #application > .item-container {
        align-items: stretch;
        flex-direction: column-reverse;
        flex-wrap: nowrap;
        gap: 3rem 0;
        height: unset;
        margin: 3rem 0 0;
    }

    .application-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(19, 2rem);
        grid-template-areas:
            "name"
            "input-name"
            "ruby"
            "input-ruby"
            "id"
            "input-id"
            "request-date "
            "d1"
            "input-d1"
            "d2"
            "input-d2"
            "d3"
            "input-d3"
            "height-weight"
            "input-height"
            "input-weight"
            "other"
            "input-other"
            "submit";
        margin: 0 0 3rem;
    }

    #application h3 {
        font-size: 1.5rem;
    }

    .trial-plan table {
        display: flex;
        width: 100%;
        min-width: unset;
        justify-content: space-between;
    }

    .trial-plan tr {
        display: flex;
        flex-direction: column;
    }

    .trial-plan thead {
        background: #fff;
        color: var(--theme-blue-800);
        height: auto;
        width: 5rem;
    }

    .trial-plan thead th {
        height: 2.5rem;
        line-height: 1.5rem;
        padding: 0.6rem 0 0;
    }

    .trial-plan thead .strong {
        font-weight: 700;
    }

    .trial-plan td {
        font-size: 1.75rem;
        font-weight: 700;
        height: 2.5rem;
        line-height: 1.5rem;
        letter-spacing: 0.3rem;
        padding: 0.6rem 0 0;
        writing-mode: lr;
    }
}
