/* Responsive refinements for the template page. */

@media (max-width: 1100px) {
    :root {
        --site-padding-x: 28px;
        --section-spacing-y: 76px;
    }

    .how-section .steps-grid {
        grid-template-columns: 1fr;
        max-width: 720px;
        margin: 0 auto;
    }

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

@media (max-width: 760px) {
    :root {
        --site-padding-x: 20px;
        --section-spacing-y: 58px;
    }

    .site-nav {
        height: auto;
        min-height: 76px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 14px 0;
    }

    .logo-area img {
        width: 38px;
        height: 38px;
    }

    .logo-text {
        font-size: 21px;
    }

    .nav-menu {
        width: 100%;
        justify-content: center;
        gap: 4px;
        flex-wrap: wrap;
    }

    .nav-menu a {
        min-height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }

    .mega-menu {
        position: static;
        width: 100%;
        margin-top: 8px;
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .hero {
        min-height: auto;
        padding-top: 68px;
    }

    h1 {
        font-size: 38px;
    }

    h2,
    .how-section .section-title h2,
    .faq-section .section-title h2 {
        font-size: 30px;
    }

    .hero-description {
        font-size: 16px;
    }

    .upload-box {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 24px 20px;
        text-align: center;
    }

    .upload-content {
        justify-items: center;
        text-align: center;
    }

    .upload-box button {
        width: 100%;
    }

    .other-tools .site-container {
        flex-direction: column;
        align-items: stretch;
        gap: 34px;
    }

    .other-tools .section-title {
        flex: none;
        width: 100%;
        margin-bottom: 0;
    }

    .other-tools .tools-grid {
        flex: none;
        width: 100%;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .other-tools .tool-card,
    .other-tools .tool-card:nth-child(odd),
    .other-tools .tool-card:nth-child(even),
    .other-tools .tool-card:hover,
    .other-tools .tool-card:focus-visible,
    .other-tools .tool-card:nth-child(even):hover,
    .other-tools .tool-card:nth-child(even):focus-visible {
        transform: none;
    }

    .other-tools .tool-card {
        padding: 24px;
    }

    .how-section .section-title {
        max-width: 100%;
        margin-bottom: 34px;
    }

    .how-section .steps-grid {
        gap: 36px;
    }

    .how-section .step-card {
        width: 100%;
    }

    .how-section .step-img-box {
        aspect-ratio: 12 / 7;
    }

    .specs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .spec-card {
        padding: 24px;
    }

    .spec-card-action {
        align-items: flex-start;
        flex-direction: column;
    }

    .spec-card-action a {
        width: 100%;
        text-align: center;
    }

    .specs-header {
        margin-bottom: 34px;
    }

    .faq-section .section-title {
        max-width: 100%;
        margin-bottom: 34px;
    }

    .faq-section .faq-grid {
        gap: 12px;
    }

    .faq-section .faq-question {
        min-height: 54px;
        gap: 14px;
        padding: 18px 24px;
        font-size: 15px;
    }

    .faq-section .faq-item.active .faq-question {
        padding: 18px 24px 18px 20px;
    }

    .faq-section .faq-answer {
        padding: 0 16px;
    }

    .faq-section .faq-item.active .faq-answer {
        padding: 12px 16px 0 20px;
    }

    .faq-section .faq-answer p {
        padding-bottom: 18px;
    }

    .tool-closing-cta {
        padding: 44px 0;
    }

    .tool-closing-cta__inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 22px 22px 22px 18px;
    }

    .tool-closing-cta__button {
        width: 100%;
    }

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

@media (max-width: 420px) {
    :root {
        --site-padding-x: 16px;
    }

    h1 {
        font-size: 34px;
    }

    h2,
    .how-section .section-title h2,
    .faq-section .section-title h2 {
        font-size: 28px;
    }

    .tool-closing-cta__copy h2 {
        font-size: 26px;
    }

    .hero-features {
        justify-content: flex-start;
    }

    .hero-features span {
        width: 100%;
        text-align: center;
    }

    .how-section .step-card {
        padding: 14px;
    }

    .how-section .step-img-box {
        aspect-ratio: 10 / 7;
    }
}

@media (max-width: 1100px) {
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 900px) {
    .help-center-layout {
        grid-template-columns: 1fr;
    }

    .help-directory {
        position: static;
        max-height: none;
        overflow: visible;
        padding: 0;
    }

    .help-directory__details > summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 16px 18px;
        color: var(--primary-color);
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        list-style: none;
    }

    .help-directory__details > summary::-webkit-details-marker {
        display: none;
    }

    .help-directory__details > summary::after {
        content: "+";
        font-size: 22px;
        line-height: 1;
    }

    .help-directory__details[open] > summary::after {
        content: "−";
    }

    .help-directory__body {
        padding: 0 18px 20px;
    }
}

@media (max-width: 760px) {
    .contact-page__hero {
        padding-top: 48px;
        padding-bottom: 34px;
    }

    .contact-page__content {
        padding-top: 34px;
        padding-bottom: 58px;
    }

    .contact-page__layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-page__email-block {
        order: -1;
        padding: 26px 22px;
    }

    .contact-page__topics {
        padding: 24px 22px;
    }

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

    .catalog-hero {
        padding-top: 48px;
        padding-bottom: 34px;
    }

    .catalog-main {
        padding-top: 36px;
        padding-bottom: 58px;
    }

    .catalog-category + .catalog-category {
        margin-top: 38px;
        padding-top: 32px;
    }

    .catalog-card {
        min-height: 150px;
        padding: 18px;
    }

    .help-center-hero {
        padding-top: 46px;
        padding-bottom: 34px;
    }

    .help-center-main {
        padding-top: 30px;
        padding-bottom: 58px;
    }

    .help-center-layout {
        gap: 18px;
    }

    .help-article-panel {
        padding: 26px 22px 32px;
    }

    .help-article h2 {
        font-size: 28px;
    }
}

@media (max-width: 520px) {
    .contact-page__hero h1 {
        font-size: 34px;
    }

    .contact-page__email-block .contact-email-link {
        width: 100%;
        font-size: 16px;
    }

    .catalog-grid,
    .seller-tools-grid {
        grid-template-columns: 1fr;
    }

    .catalog-card {
        min-height: 0;
    }

    .help-article-panel {
        padding: 22px 18px 28px;
    }
}
