/* Final responsive safety layer — loaded after every template's local styles. */

html,
body {
    max-width: 100%;
    overflow-x: hidden
}

img,
video,
svg,
iframe {
    max-width: 100%;
    height: auto
}

table {
    max-width: 100%
}

* {
    min-width: 0
}

.container,
.navbar-container,
.landing-container {
    box-sizing: border-box
}

@media(max-width:1200px) {
    .container,
    .navbar-container,
    .landing-container {
        width: calc(100% - 48px)!important;
        max-width: none!important
    }
    .products-layout,
    .shop-layout,
    .blog-list-layout,
    .product-detail-layout,
    .cart-layout,
    .payment-layout,
    .order-form-layout,
    .create-plan-layout,
    .trainer-layout,
    .profile-content,
    .dashboard-layout {
        gap: 1.5rem!important
    }
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr))!important
    }
    .landing-products {
        grid-template-columns: repeat(3, minmax(0, 1fr))!important
    }
    .orders-grid,
    .plans-grid,
    .exercises-grid,
    .posts-grid,
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))!important
    }
}

@media(max-width:992px) {
    .container,
    .navbar-container,
    .landing-container {
        width: calc(100% - 36px)!important
    }
    .navbar {
        height: 68px!important
    }
    .navbar-container {
        height: 100%
    }
    .mobile-menu-toggle {
        display: flex!important;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: 0
    }
    .navbar-menu {
        position: fixed!important;
        top: 68px!important;
        right: -105%!important;
        left: auto!important;
        width: min(88vw, 360px)!important;
        height: calc(100dvh - 68px)!important;
        display: flex!important;
        flex-direction: column!important;
        align-items: stretch!important;
        gap: .35rem!important;
        padding: 1.1rem!important;
        background: #fffaf2!important;
        border-left: 1px solid var(--theme-line)!important;
        box-shadow: -16px 25px 45px rgba(23, 50, 77, .15)!important;
        overflow-y: auto!important;
        transition: right .3s ease!important;
        z-index: 1100!important
    }
    .navbar-menu.active {
        right: 0!important
    }
    .navbar-menu li,
    .navbar-menu a {
        width: 100%!important
    }
    .navbar-menu a {
        display: flex!important;
        align-items: center!important;
        gap: .7rem!important;
        padding: .85rem 1rem!important
    }
    .navbar-user {
        width: 100%!important
    }
    .user-menu-toggle {
        width: 100%!important;
        justify-content: flex-start!important
    }
    .user-dropdown {
        position: static!important;
        width: 100%!important;
        margin-top: .5rem!important;
        box-shadow: none!important
    }
    .cart-badge {
        order: -1
    }
    .hero-layout,
    .manifesto-grid,
    .product-detail-layout,
    .products-layout,
    .shop-layout,
    .blog-list-layout,
    .post-layout,
    .cart-layout,
    .payment-layout,
    .order-form-layout,
    .create-order-container,
    .create-plan-layout,
    .trainer-layout,
    .profile-content,
    .profile-layout,
    .dashboard-layout,
    .plan-layout {
        grid-template-columns: minmax(0, 1fr)!important
    }
    .sidebar,
    .products-sidebar,
    .filter-sidebar,
    .blog-sidebar,
    .order-sidebar,
    .exercise-sidebar,
    .payment-sidebar {
        width: 100%!important;
        position: static!important;
        max-height: none!important
    }
    .filters-form,
    .filter-content {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem
    }
    .filters-form .btn,
    .filter-actions {
        grid-column: 1/-1
    }
    .page-header-content {
        flex-direction: column!important;
        align-items: stretch!important;
        gap: 1.25rem!important
    }
    .page-header-text {
        width: 100%!important;
        min-width: 0!important
    }
    .page-header-stats {
        width: 100%!important;
        display: grid!important;
        grid-template-columns: repeat(3, minmax(0, 1fr))!important
    }
    .stat-badge {
        width: 100%!important;
        min-width: 0!important
    }
    .product-gallery {
        position: static!important
    }
    .product-main-image {
        height: auto!important;
        min-height: 380px
    }
    .product-thumbnails {
        flex-direction: row!important;
        overflow-x: auto!important
    }
    .cart-layout {
        display: grid!important
    }
    .order-summary {
        position: static!important;
        width: 100%!important
    }
    .summary-card {
        position: static!important
    }
    .login-container,
    .register-container,
    .auth-container {
        grid-template-columns: 1fr!important;
        width: min(680px, 100%)!important
    }
    .login-visual,
    .register-visual,
    .auth-visual {
        min-height: 260px!important;
        padding: 2rem!important
    }
    .visual-decoration {
        display: none!important
    }
    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr))!important;
        gap: 2rem!important
    }
    .footer-newsletter {
        flex-direction: column!important;
        align-items: stretch!important
    }
    .newsletter-content,
    .newsletter-form {
        width: 100%!important;
        max-width: none!important
    }
}

@media(max-width:768px) {
    body {
        font-size: 15px
    }
    .container,
    .navbar-container,
    .landing-container {
        width: calc(100% - 28px)!important
    }
    .section,
    .landing-section,
    .cart-section,
    .products-section,
    .blog-section,
    .profile-section,
    .payment-section {
        padding-top: 3.5rem!important;
        padding-bottom: 3.5rem!important
    }
    h1,
    .page-header-text h1 {
        font-size: clamp(1.7rem, 7vw, 2.15rem)!important
    }
    h2,
    .section-title {
        font-size: clamp(1.45rem, 6vw, 1.9rem)!important
    }
    h3 {
        font-size: 1.15rem!important
    }
    .page-header-unified,
    .page-header {
        padding: 2.2rem 0!important
    }
    .page-header-text p {
        font-size: .9rem!important
    }
    .page-header-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr))!important
    }
    .stat-badge {
        padding: 1rem!important
    }
    .stat-badge-content strong {
        font-size: 1.25rem!important
    }
    .breadcrumb-nav {
        white-space: nowrap;
        overflow-x: auto;
        flex-wrap: nowrap!important;
        padding-bottom: .25rem!important;
        scrollbar-width: none
    }
    .breadcrumb-nav::-webkit-scrollbar {
        display: none
    }
    .products-grid,
    .landing-products,
    .orders-grid,
    .plans-grid,
    .exercises-grid,
    .posts-grid,
    .blog-grid,
    .categories-grid,
    .features-grid,
    .info-grid,
    .stats-grid,
    .photos-grid,
    .form-grid,
    .details-grid,
    .form-row,
    .fields-grid,
    .exercise-stats,
    .plan-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr))!important
    }
    .journey-grid,
    .category-pills {
        grid-template-columns: 1fr!important
    }
    .split-heading,
    .shop-heading {
        display: block!important
    }
    .split-heading>p {
        margin-top: 1.25rem!important
    }
    .manifesto-grid {
        gap: 2rem!important
    }
    .manifesto-visual {
        min-height: 290px!important;
        padding: 2rem!important
    }
    .hero-layout {
        gap: 1rem!important
    }
    .landing-hero {
        min-height: auto!important;
        padding-top: 3.5rem!important
    }
    .hero-copy {
        text-align: center
    }
    .hero-copy>p {
        text-align: center!important;
        margin-inline: auto
    }
    .hero-actions,
    .hero-trust,
    .eyebrow {
        justify-content: center
    }
    .hero-visual {
        height: 390px!important
    }
    .product-stage {
        width: min(320px, 82vw)!important;
        height: 330px!important
    }
    .visual-ring {
        width: 300px!important;
        height: 300px!important
    }
    .progress-card {
        right: 0!important
    }
    .coach-card {
        left: 0!important
    }
    .hero-strip {
        overflow: hidden;
        white-space: nowrap;
        justify-content: flex-start!important;
        padding-inline: 1.5rem
    }
    .cart-table-header {
        display: none!important
    }
    .cart-item {
        display: grid!important;
        grid-template-columns: 1fr auto!important;
        gap: 1rem!important;
        padding: 1rem!important
    }
    .cart-item-product {
        grid-column: 1/-1!important
    }
    .cart-item-price,
    .cart-item-quantity,
    .cart-item-total,
    .cart-item-actions {
        width: auto!important;
        justify-self: stretch!important;
        text-align: right!important
    }
    .cart-item-actions {
        position: absolute!important;
        left: 1rem!important;
        top: 1rem!important
    }
    .cart-item .product-image {
        width: 90px!important;
        height: 90px!important;
        flex: 0 0 90px!important
    }
    .cart-actions {
        flex-direction: column!important;
        gap: .75rem!important
    }
    .cart-actions>* {
        width: 100%!important;
        text-align: center!important;
        justify-content: center!important
    }
    .product-main-image {
        min-height: 300px!important
    }
    .product-info,
    .product-details,
    .product-content {
        padding: 1.2rem!important
    }
    .product-actions {
        flex-direction: column!important
    }
    .product-actions>* {
        width: 100%!important
    }
    .quantity-selector {
        justify-content: center!important
    }
    .tabs,
    .filter-tabs,
    .profile-tabs {
        display: flex!important;
        overflow-x: auto!important;
        flex-wrap: nowrap!important;
        scrollbar-width: none
    }
    .tab,
    .filter-tab,
    .profile-tab {
        white-space: nowrap!important;
        flex: 0 0 auto!important
    }
    .progress-steps,
    .steps-indicator {
        overflow-x: auto!important;
        justify-content: flex-start!important;
        padding-bottom: .75rem!important
    }
    .progress-step,
    .step {
        min-width: 110px!important;
        flex: 0 0 auto!important
    }
    .step-label {
        white-space: normal!important
    }
    .form-actions,
    .detail-actions,
    .dashboard-actions,
    .header-actions,
    .action-buttons,
    .payment-actions {
        flex-direction: column!important;
        align-items: stretch!important;
        gap: .75rem!important
    }
    .form-actions>*,
    .detail-actions>*,
    .dashboard-actions>*,
    .header-actions>*,
    .action-buttons>*,
    .payment-actions>* {
        width: 100%!important;
        justify-content: center!important
    }
    .table-responsive,
    .orders-table-wrapper,
    .exercise-table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch
    }
    .orders-table,
    .exercise-table,
    table:not(.calendar) {
        min-width: 680px
    }
    .footer-content {
        grid-template-columns: 1fr!important
    }
    .footer-section {
        text-align: right!important
    }
    .footer-newsletter {
        padding: 1.3rem!important
    }
    .newsletter-form {
        display: flex!important;
        flex-direction: column!important
    }
    .newsletter-form input,
    .newsletter-form button {
        width: 100%!important;
        border-radius: 10px!important
    }
}

@media(max-width:520px) {
    .container,
    .navbar-container,
    .landing-container {
        width: calc(100% - 22px)!important
    }
    .navbar-brand {
        font-size: 1.12rem!important
    }
    .brand-mark {
        width: 34px;
        height: 34px
    }
    .navbar-menu {
        width: 92vw!important
    }
    .page-header-stats,
    .products-grid,
    .landing-products,
    .orders-grid,
    .plans-grid,
    .exercises-grid,
    .posts-grid,
    .blog-grid,
    .categories-grid,
    .features-grid,
    .info-grid,
    .stats-grid,
    .photos-grid,
    .form-grid,
    .details-grid,
    .form-row,
    .fields-grid,
    .exercise-stats,
    .plan-stats,
    .filters-form,
    .category-grid {
        grid-template-columns: minmax(0, 1fr)!important
    }
    .hero-copy h1 {
        font-size: 2.35rem!important;
        letter-spacing: -.04em!important
    }
    .hero-copy br {
        display: none
    }
    .hero-actions {
        flex-direction: column!important
    }
    .landing-btn {
        width: 100%!important
    }
    .hero-visual {
        height: 340px!important
    }
    .product-stage {
        width: 250px!important;
        height: 280px!important
    }
    .visual-ring {
        width: 245px!important;
        height: 245px!important
    }
    .float-card {
        font-size: .65rem!important;
        padding: .6rem!important
    }
    .progress-card {
        top: 45px!important
    }
    .coach-card {
        bottom: 25px!important
    }
    .visual-word,
    .mini-tag {
        display: none!important
    }
    .hero-strip {
        height: 58px!important
    }
    .landing-section {
        padding-block: 3.8rem!important
    }
    .journey-card {
        padding: 1.5rem!important;
        min-height: 230px!important
    }
    .manifesto-visual {
        min-height: 250px!important
    }
    .big-number {
        font-size: 4.7rem!important
    }
    .final-cta {
        padding: 4.5rem 0!important
    }
    .final-cta h2 {
        font-size: 2.55rem!important
    }
    .card,
    .dashboard-card,
    .order-card,
    .plan-card,
    .detail-section,
    .order-detail-container,
    .summary-card,
    .product-card,
    .blog-card,
    .form-card,
    .payment-card {
        border-radius: 15px!important;
        padding: 1rem!important
    }
    .product-card {
        padding: 0!important
    }
    .product-card .product-info {
        padding: 1rem!important
    }
    .login-page,
    .register-page,
    .auth-page,
    .change-password-page,
    .password-reset-page {
        padding: 1.5rem 0!important
    }
    .login-container,
    .register-container,
    .auth-container {
        border-radius: 18px!important
    }
    .login-visual,
    .register-visual,
    .auth-visual {
        min-height: 200px!important;
        padding: 1.4rem!important
    }
    .login-form-section,
    .register-form-section,
    .auth-form-section,
    .login-form-container,
    .register-form-container {
        padding: 1.4rem!important
    }
    .cart-item {
        grid-template-columns: 1fr!important
    }
    .cart-item-product {
        align-items: flex-start!important
    }
    .cart-item-price,
    .cart-item-quantity,
    .cart-item-total {
        grid-column: 1!important
    }
    .quantity-controls {
        width: max-content!important
    }
    .summary-body {
        padding: 1rem!important
    }
    .product-main-image {
        min-height: 240px!important
    }
    .product-thumbnails img,
    .thumbnail {
        width: 64px!important;
        height: 64px!important
    }
    .review-form,
    .comment-form {
        padding: 1rem!important
    }
    .modal,
    .modal-content {
        width: calc(100% - 20px)!important;
        max-width: none!important;
        margin: 10px!important;
        max-height: calc(100dvh - 20px)!important;
        overflow-y: auto!important
    }
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem!important
    }
    .footer {
        padding-top: 2.5rem!important
    }
    .social-links {
        flex-wrap: wrap
    }
    .footer-bottom {
        padding-top: 1.2rem!important
    }
}

@media(max-width:360px) {
    .container,
    .navbar-container,
    .landing-container {
        width: calc(100% - 16px)!important
    }
    .hero-copy h1 {
        font-size: 2rem!important
    }
    .page-header-stats {
        grid-template-columns: 1fr!important
    }
    .cart-item .product-image {
        width: 72px!important;
        height: 72px!important;
        flex-basis: 72px!important
    }
    .stat-badge {
        padding: .8rem!important
    }
}

@media(hover:none) {
    .card:hover,
    .product-card:hover,
    .blog-card:hover,
    .journey-card:hover {
        transform: none!important
    }
    .navbar-menu a {
        min-height: 44px
    }
    .btn,
    button,
    a.landing-btn {
        min-height: 44px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        scroll-behavior: auto!important;
        animation-duration: .01ms!important;
        animation-iteration-count: 1!important;
        transition-duration: .01ms!important
    }
}


/* Mobile sticky navigation */

.mobile-bottom-nav,
.mobile-nav-sheet,
.mobile-sheet-backdrop {
    display: none
}

@media(max-width:768px) {
    body {
        padding-bottom: calc(88px + env(safe-area-inset-bottom))
    }
    body.mobile-sheet-open {
        overflow: hidden
    }
    .mobile-menu-toggle {
        display: none!important
    }
    .navbar-menu {
        display: none!important
    }
    .mobile-bottom-nav {
        position: fixed;
        z-index: 1250;
        right: 12px;
        left: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        height: 68px;
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        align-items: center;
        padding: 7px 8px;
        border: 1px solid rgba(184, 213, 215, .88);
        border-radius: 22px;
        background: rgba(255, 252, 247, .9);
        box-shadow: 0 16px 42px rgba(13, 55, 70, .2);
        backdrop-filter: blur(18px) saturate(145%);
        -webkit-backdrop-filter: blur(18px) saturate(145%)
    }
    .mobile-bottom-link {
        position: relative;
        min-width: 0!important;
        height: 54px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 0 3px;
        border: 0;
        border-radius: 16px;
        background: transparent;
        color: #667b86;
        font-family: inherit;
        font-size: .65rem;
        font-weight: 700;
        text-decoration: none;
        cursor: pointer;
        transition: .22s ease
    }
    .mobile-bottom-link i {
        font-size: 1.12rem;
        color: #4d6874;
        transition: .22s ease
    }
    .mobile-bottom-link.active,
    .mobile-bottom-link.sheet-open {
        color: #087e91;
        background: linear-gradient(180deg, rgba(16, 180, 179, .13), rgba(24, 138, 173, .05))
    }
    .mobile-bottom-link.active i,
    .mobile-bottom-link.sheet-open i {
        color: #078da0;
        transform: translateY(-1px)
    }
    .mobile-bottom-link.active::after,
    .mobile-bottom-link.sheet-open::after {
        content: "";
        position: absolute;
        bottom: 2px;
        width: 18px;
        height: 3px;
        border-radius: 99px;
        background: linear-gradient(90deg, #11b3ad, #168aad)
    }
    .mobile-bottom-primary {
        margin-top: -24px;
        height: 62px;
        border-radius: 20px;
        background: linear-gradient(145deg, #ff9f1c, #ff7a18)!important;
        color: #fff!important;
        box-shadow: 0 10px 24px rgba(255, 137, 25, .35)
    }
    .mobile-bottom-primary i,
    .mobile-bottom-primary.active i {
        font-size: 1.3rem;
        color: #fff!important
    }
    .mobile-bottom-primary.active::after {
        background: #fff;
        bottom: 5px
    }
    .mobile-nav-icon-wrap {
        position: relative;
        display: grid;
        place-items: center
    }
    .mobile-cart-count {
        position: absolute;
        top: -7px;
        right: -10px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 99px;
        background: #ff7a18;
        color: #fff;
        font-size: .58rem;
        line-height: 16px;
        text-align: center
    }
    .mobile-sheet-backdrop {
        position: fixed;
        z-index: 1255;
        inset: 0;
        display: block;
        border: 0;
        background: rgba(5, 22, 29, .34);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: .25s ease
    }
    .mobile-sheet-backdrop.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto
    }
    .mobile-nav-sheet {
        position: fixed;
        z-index: 1260;
        right: 12px;
        left: 12px;
        bottom: calc(86px + env(safe-area-inset-bottom));
        display: block;
        max-height: min(68dvh, 520px);
        overflow-y: auto;
        padding: 10px 14px 16px;
        border: 1px solid rgba(184, 213, 215, .9);
        border-radius: 24px;
        background: rgba(255, 252, 247, .97);
        box-shadow: 0 -18px 50px rgba(10, 38, 49, .22);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(28px) scale(.97);
        transform-origin: bottom center;
        transition: .28s cubic-bezier(.2, .8, .2, 1)
    }
    .mobile-nav-sheet.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1)
    }
    .mobile-sheet-handle {
        width: 38px;
        height: 4px;
        margin: 1px auto 12px;
        border-radius: 99px;
        background: #c5d7d8
    }
    .mobile-sheet-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 2px 4px 14px;
        border-bottom: 1px solid #e0eceb
    }
    .mobile-sheet-heading strong,
    .mobile-sheet-heading span {
        display: block
    }
    .mobile-sheet-heading strong {
        color: #173d4b;
        font-size: 1rem
    }
    .mobile-sheet-heading span {
        margin-top: 3px;
        color: #758b93;
        font-size: .72rem
    }
    .mobile-sheet-close {
        width: 36px;
        height: 36px;
        display: grid;
        place-items: center;
        border: 1px solid #dce9e8;
        border-radius: 12px;
        background: #f4faf8;
        color: #315763
    }
    .mobile-sheet-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        padding-top: 12px
    }
    .mobile-sheet-links a,
    .mobile-sheet-links button {
        min-height: 56px;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border: 1px solid #deebe9;
        border-radius: 15px;
        background: #fff;
        color: #264d59;
        font-family: inherit;
        font-size: .78rem;
        font-weight: 750;
        text-decoration: none;
        text-align: right
    }
    .mobile-sheet-links i {
        width: 31px;
        height: 31px;
        display: grid;
        place-items: center;
        flex: 0 0 31px;
        border: 1px solid #bfe0dc;
        border-radius: 10px;
        color: #098e91;
        background: #f3fbf9;
        padding: 7px;
    }
    .mobile-sheet-links b {
        display: inline-grid;
        place-items: center;
        min-width: 20px;
        height: 20px;
        margin-right: 5px;
        padding: 0 5px;
        border-radius: 99px;
        background: #ff7a18;
        color: #fff;
        font-size: .65rem
    }
    .mobile-sheet-section-title {
        grid-column: 1/-1;
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 3px;
        padding: 10px 4px 2px;
        color: #667f88;
        font-size: .72rem;
        font-weight: 800
    }
    .mobile-sheet-section-title::after {
        content: "";
        height: 1px;
        flex: 1;
        background: #dce9e8
    }
    .mobile-sheet-section-title i {
        width: auto;
        height: auto;
        display: inline;
        flex: none;
        padding: 0;
        color: #ff8418;
        background: transparent;
        border: 0;
        border-radius: 0
    }
    .mobile-sheet-links .mobile-blog-link.active {
        border-color: #76cfc8;
        background: linear-gradient(135deg, #eefbf8, #f5fcfb);
        color: #087f88;
        box-shadow: inset 0 -2px 0 #18aaa5
    }
    .mobile-sheet-links .mobile-blog-link.active i {
        border-color: #78d0c8;
        background: #e7f8f5;
        color: #087f88
    }
    .mobile-blog-empty {
        grid-column: 1/-1;
        padding: 18px;
        border: 1px dashed #cbdedd;
        border-radius: 15px;
        color: #758b93;
        font-size: .76rem;
        text-align: center
    }
    .mobile-sheet-links .mobile-sheet-logout {
        color: #b64343
    }
    .mobile-sheet-links .mobile-sheet-logout i {
        border-color: #f0caca;
        background: #fff6f6;
        color: #c94a4a
    }
}

@media(max-width:380px) {
    .mobile-bottom-nav {
        right: 7px;
        left: 7px;
        padding-inline: 4px
    }
    .mobile-bottom-link {
        font-size: .59rem
    }
    .mobile-sheet-links {
        grid-template-columns: 1fr
    }
}

/* Structured responsive footer */
@media(max-width:992px) {
    .footer {
        margin-top: 3rem!important;
        padding: 3.25rem 0 2rem!important
    }
    .footer>.container {
        width: min(calc(100% - 32px), 920px)!important
    }
    .footer-content {
        display: grid!important;
        grid-template-columns: repeat(2, minmax(0, 1fr))!important;
        align-items: stretch!important;
        gap: 1rem!important;
        padding: 0 0 1.5rem!important
    }
    .footer-section {
        min-width: 0!important;
        margin: 0!important;
        padding: 1.25rem!important;
        border: 1px solid rgba(255,255,255,.12)!important;
        border-radius: 18px!important;
        background: rgba(255,255,255,.055)!important;
        text-align: right!important
    }
    .footer-section h3,
    .footer-logo {
        min-height: 34px!important;
        display: flex!important;
        align-items: center!important;
        justify-content: flex-start!important;
        gap: .7rem!important;
        margin: 0 0 1rem!important;
        text-align: right!important
    }
    .footer-section h3 i,
    .footer-logo>i {
        width: 34px!important;
        height: 34px!important;
        display: inline-grid!important;
        place-items: center!important;
        flex: 0 0 34px!important;
        margin: 0!important;
        border: 1px solid rgba(255,255,255,.15)!important;
        border-radius: 11px!important;
        font-size: .95rem!important
    }
    .footer-logo h3 {
        min-height: 0!important;
        margin: 0!important
    }
    .footer-description {
        margin: 0 0 1.15rem!important;
        line-height: 1.9!important;
        text-align: right!important
    }
    .footer-links,
    .footer-contact {
        display: grid!important;
        gap: .55rem!important;
        margin: 0!important;
        padding: 0!important
    }
    .footer-links li,
    .footer-contact li {
        width: 100%!important;
        margin: 0!important
    }
    .footer-links a {
        width: 100%!important;
        min-height: 40px!important;
        display: flex!important;
        align-items: center!important;
        justify-content: flex-start!important;
        gap: .65rem!important;
        padding: .55rem .7rem!important;
        border-radius: 11px!important;
        text-align: right!important
    }
    .footer-links a i {
        width: 18px!important;
        flex: 0 0 18px!important;
        margin: 0!important;
        text-align: center!important
    }
    .contact-item {
        width: 100%!important;
        min-height: 54px!important;
        display: grid!important;
        grid-template-columns: 38px minmax(0,1fr)!important;
        align-items: center!important;
        justify-content: stretch!important;
        gap: .7rem!important;
        padding: .55rem!important;
        border-radius: 12px!important;
        text-align: right!important
    }
    .contact-icon {
        width: 38px!important;
        height: 38px!important;
        display: grid!important;
        place-items: center!important;
        margin: 0!important
    }
    .contact-info {
        min-width: 0!important;
        display: flex!important;
        flex-direction: column!important;
        align-items: flex-start!important;
        gap: 2px!important;
        overflow-wrap: anywhere!important;
        text-align: right!important
    }
    .contact-info a,
    .contact-info span {
        max-width: 100%!important;
        margin: 0!important;
        text-align: right!important
    }
    .social-links {
        display: flex!important;
        align-items: center!important;
        justify-content: flex-start!important;
        gap: .65rem!important;
        margin: 0!important
    }
    .social-link {
        width: 40px!important;
        height: 40px!important;
        flex: 0 0 40px!important;
        margin: 0!important
    }
    .footer-bottom {
        min-height: 54px!important;
        display: flex!important;
        align-items: center!important;
        justify-content: space-between!important;
        flex-wrap: wrap!important;
        gap: .75rem 1.5rem!important;
        margin: 0!important;
        padding: 1.25rem .5rem 0!important;
        text-align: center!important
    }
    .footer-bottom p {
        display: flex!important;
        align-items: center!important;
        justify-content: center!important;
        gap: .45rem!important;
        margin: 0!important;
        text-align: center!important
    }
    .footer-social-row {
        display: flex!important;
        align-items: center!important;
        justify-content: center!important;
        gap: .85rem!important;
        padding: 1.25rem .5rem!important
    }
    .footer-social-row .social-links {
        justify-content: center!important
    }
}

@media(max-width:600px) {
    .footer {
        margin-top: 2.25rem!important;
        padding: 2.5rem 0 calc(100px + env(safe-area-inset-bottom))!important
    }
    .footer>.container {
        width: calc(100% - 22px)!important
    }
    .footer-content {
        grid-template-columns: minmax(0,1fr)!important;
        gap: .8rem!important
    }
    .footer-section {
        padding: 1rem!important;
        border-radius: 16px!important
    }
    .footer-description {
        font-size: .82rem!important
    }
    .footer-bottom p {
        flex-wrap: wrap!important;
        font-size: .72rem!important;
        line-height: 1.8!important
    }
    .footer-social-row {
        flex-direction: column!important;
        padding: 1.35rem .5rem!important
    }
    .footer-social-row .social-links {
        width: 100%!important;
        justify-content: center!important
    }
    .footer-bottom {
        flex-direction: column!important;
        justify-content: center!important
    }
}
