@media (max-width: 1050px) {
    .wrap {
        width: calc(100% - 40px);
    }

    header {
        height: auto;
    }

    .nav {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 0 12px;
        min-height: 72px;
        padding-block: 6px;
    }

    .nav .logo {
        width: clamp(100px, 24vw, 160px);
        height: 58px;
    }

    .nav-actions {
        grid-column: 2;
        grid-row: 1;
        gap: 8px;
    }

    header .button {
        min-height: 44px;
        max-width: 160px;
        padding: 7px 12px;
        font-size: 13px;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .nav-actions .icon-link {
        display: grid;
        place-items: center;
        min-width: 30px;
        min-height: 44px;
    }

    .nav-actions .icon-link svg {
        width: 22px;
        height: 22px;
    }

    .nav-toggle {
        grid-column: 3;
        grid-row: 1;
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid #ffffff56;
        border-radius: 12px;
        color: inherit;
        background: transparent;
        font-size: 24px;
        line-height: 1;
    }

    .nav-toggle[aria-expanded="false"] span:last-child,
    .nav-toggle[aria-expanded="true"] span:first-child {
        display: none;
    }

    .nav-toggle:not([hidden])[aria-expanded="false"] + nav {
        display: none;
    }

    .nav nav {
        grid-column: 1 / -1;
        display: grid;
        gap: 0;
        margin-top: 6px;
        padding: 4px 0;
        border-top: 1px solid #ffffff38;
    }

    .nav nav a {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 44px;
        padding: 8px 6px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .nav-paw {
        position: static;
        flex: 0 0 18px;
    }

    .nav nav a[aria-current] {
        color: #fff;
    }

    main,
    footer {
        overflow-wrap: anywhere;
    }

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

    .care-grid > :first-child {
        grid-column: 1 / -1;
    }

    .shop-grid {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-rail {
        width: 152px;
        padding-inline: 14px;
    }

    .hero h1,
    .hero p {
        height: auto;
    }

    .hero h1 {
        min-height: 2em;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    .catalog-layout {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 22px;
    }

    .filters label {
        flex: 1 1 145px;
        min-width: 0;
    }

    .forms-grid,
    .fields,
    .intro-split,
    .map-row,
    .about-story {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fields label,
    .fields :is(input, select, textarea) {
        min-width: 0;
        max-width: 100%;
    }

    .fields :is(input, select, textarea),
    .filters :is(input, select) {
        font-size: 16px;
    }

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

@media (max-width: 760px) {
    .wrap {
        width: calc(100% - 32px);
    }

    .button {
        padding: 11px 16px;
        min-height: 44px;
        text-align: center;
    }

    .hero {
        --hero-photo-height: clamp(340px, 100vw, 490px);
        height: auto;
    }

    .hero .photos,
    .hero .veil {
        height: var(--hero-photo-height);
    }

    .hero .photo {
        object-position: 72% top;
    }

    .hero .veil {
        background:
            linear-gradient(0deg, var(--cream), transparent 48%),
            linear-gradient(90deg, #f8f5f1f2 0%, #f8f5f1de 35%, #f8f5f166 64%, transparent 100%);
    }

    .hero .wipe {
        display: none;
    }

    .hero-inner {
        height: auto;
        padding: clamp(86px, 26vw, 155px) 0 16px;
        pointer-events: auto;
    }

    .hero-copy,
    .pickup-copy,
    .pickup-rail {
        width: 100%;
    }

    .hero h1 {
        min-height: 0;
        font-size: clamp(31px, 7.3vw, 48px);
        margin: 12px 0;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .hero-actions {
        gap: 8px;
    }

    .hero-rail {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: auto;
        gap: 6px;
        margin-top: 16px;
        padding: 0;
        background: transparent;
    }

    .rail-item {
        min-height: 48px;
        padding: 8px;
        gap: 6px;
        border-radius: 12px;
        background: #ffffffb0;
        font-size: 12px;
    }

    .rail-item .symbol {
        flex: 0 0 24px;
        width: 24px;
        font-size: 23px;
    }

    .rail-item .symbol svg {
        display: block;
        width: 24px;
        height: 24px;
    }

    .handwriting {
        top: 14px;
        right: 8px;
        font-size: clamp(22px, 5.2vw, 33px);
    }

    .controls {
        position: static;
        flex-wrap: wrap;
        gap: 2px;
        margin-top: 12px;
    }

    .dot {
        display: grid;
        place-items: center;
        width: 32px;
        height: 44px;
        padding: 0;
    }

    .pause {
        min-height: 44px;
        padding: 4px 10px;
    }

    .care,
    .shop,
    .inner-section {
        padding-block: 32px;
    }

    .care-grid,
    .shop-grid {
        gap: 14px;
    }

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

    .care-bridge,
    .section-heading,
    .end-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .care-bridge a {
        white-space: normal;
    }

    .service-card {
        height: clamp(185px, 43vw, 280px);
    }

    .card-label {
        inset: auto 7px 7px;
        padding: 8px 10px;
        border-radius: 14px;
        font-size: 14px;
    }

    .pickup {
        display: flex;
        flex-direction: column;
        height: auto;
        padding-block: 24px;
        gap: 12px;
    }

    .pickup::after {
        content: none;
    }

    .pickup-picture {
        position: static;
        align-self: center;
        width: min(100% - 32px, 460px);
        height: auto;
        aspect-ratio: 445 / 275;
        border-radius: 16px;
        overflow: hidden;
    }

    .pickup-picture > img,
    .pickup-picture > svg {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .pickup .wrap {
        flex-direction: column;
        height: auto;
        gap: 18px;
    }

    .pickup-rail .hand {
        margin: 0 0 14px;
        font-size: 29px;
    }

    .categories,
    .category-grid,
    .brand-grid,
    .values-grid,
    .video-grid,
    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .category svg {
        height: clamp(92px, 22vw, 135px);
    }

    .inner-page h1 {
        font-size: clamp(32px, 7.5vw, 46px);
    }

    .inner-page h2 {
        font-size: clamp(25px, 6vw, 34px);
    }

    .intro-split,
    .about-story,
    .service-detail,
    .catalog-layout,
    .forms-grid,
    .map-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .inner-page .intro-split > img,
    .detail-visual,
    .gallery-visual {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .inner-page .intro-split > img {
        width: 100%;
    }

    .service-detail {
        padding-block: 24px;
    }

    .service-detail:nth-child(even) .detail-visual {
        order: initial;
    }

    .catalog-layout {
        padding-bottom: 32px;
    }

    .catalog-sidebar {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
        border: 0;
        padding: 0;
    }

    .catalog-sidebar h3,
    .catalog-sidebar .notice {
        width: 100%;
        margin: 8px 0 0;
    }

    .catalog-sidebar a,
    .jump-links a {
        min-height: 44px;
    }

    .catalog-sidebar a {
        border: 1px solid #191b5520;
    }

    .catalog-sidebar a.current {
        border-color: var(--navy);
    }

    .form-panel,
    .end-cta,
    .empty,
    .species-card,
    .contact-card {
        padding: 18px;
    }

    .contact-card,
    .form-panel {
        min-width: 0;
    }

    .map-row iframe {
        height: 280px;
    }

    dialog {
        width: calc(100% - 32px);
        max-height: calc(100% - 32px);
        padding: 16px;
    }

    .gallery-modal {
        width: calc(100% - 24px);
    }

    .gallery-modal .modal-visual {
        height: min(55vh, 480px);
    }

    .gallery-modal form {
        flex-wrap: wrap;
        gap: 12px;
    }

    .footer-top {
        min-height: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 16px;
        padding-block: 28px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .footer-brand img {
        width: min(220px, 100%);
    }

    .footer-brand p {
        font-size: 17px;
    }

    .footer-cta p {
        font-size: 26px;
        margin-bottom: 14px;
    }

    .footer-bottom {
        flex-wrap: wrap;
        gap: 10px 16px;
    }

    .social-access {
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        max-width: calc(100% - 20px);
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 5px;
    }

    .social-access a,
    .social-access .instagram {
        padding: 7px 10px;
        min-height: 44px;
        font-size: 12px;
        text-align: center;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 480px) {
    .wrap {
        width: calc(100% - 24px);
    }

    .nav {
        gap: 0 6px;
    }

    .nav-actions {
        gap: 3px;
    }

    header .button {
        max-width: 100px;
        padding-inline: 6px;
        font-size: 12px;
    }

    .nav-actions .icon-link {
        min-width: 26px;
    }

    .product-grid,
    .category-grid,
    .video-grid,
    .values-grid,
    .contact-cards,
    .fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .filters label {
        flex-basis: 100%;
    }

    .footer-top {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-social,
    .footer-cta {
        justify-self: center;
        text-align: center;
    }
}
