* {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

table {
    max-width: 100%;
}

section {
    width: 100%;
}

.container,
.wrapper,
.wrap,
.rm-container,
.admin-page,
.admin-card {
    max-width: 100%;
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 34px !important;
        line-height: 1.1;
    }

    h2 {
        font-size: 28px !important;
        line-height: 1.15;
    }

    h3 {
        font-size: 22px !important;
    }

    section {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .hero,
    .rm-hero,
    .home-hero,
    .page-hero {
        padding: 70px 20px !important;
    }

    .grid,
    .products-grid,
    .home-press-grid,
    .rm-grid,
    .cards-grid {
        grid-template-columns: 1fr !important;
    }

    .card,
    .product-card,
    .home-press-card,
    .rm-card {
        width: 100% !important;
    }

    .admin-table,
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    input,
    textarea,
    select,
    button {
        max-width: 100%;
        width: 100%;
    }

    .btn,
    .button,
    .rm-btn,
    .admin-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .header,
    .navbar,
    .nav,
    .admin-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 30px !important;
    }

    h2 {
        font-size: 24px !important;
    }

    p {
        font-size: 15px;
    }

    section {
        padding-top: 45px !important;
        padding-bottom: 45px !important;
    }
}