:root {
    --bg-color: #ffffff;
    --bg-light: #f5f5f7;
    --text-main: #1d1d1f;
    --text-muted: #86868b;
    --accent-blue: #0071e3;
    --accent-blue-hover: #0077ed;
    --card-width: 280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 14px 0;
    transition: background 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: -0.02em;
    z-index: 1001;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent-blue);
}


.nav-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    z-index: 1001;
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--text-main);
    transition: color 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.cart-btn:hover {
    color: var(--accent-blue);
}

.cart-btn:active {
    transform: scale(0.9);
}

.cart-icon {
    width: 24px;
    height: 24px;
    display: block;
}

.cart-count {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--accent-blue);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    box-sizing: border-box;
}

.cart-count.show {
    display: inline-flex;
}

.cart-count.bump {
    animation: cart-bump 0.3s ease;
}

@keyframes cart-bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.cart-panel {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    z-index: 1002;
    width: 340px;
    max-width: calc(100vw - 24px);
    max-height: min(480px, 75vh);
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
    padding: 10px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.cart-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.cart-panel-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    padding: 6px 10px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 6px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.cart-item:hover {
    background: #f5f5f7;
}

.cart-item-img {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #aeaeb2;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    box-sizing: border-box;
}

.cart-item-img svg {
    width: 24px;
    height: 24px;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 3px;
}

.cart-item-remove {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    color: #aeaeb2;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cart-item-remove:hover {
    background: #e8e8ed;
    color: var(--text-main);
    transform: rotate(90deg);
}

.cart-empty {
    display: block;
    padding: 34px 12px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.cart-empty svg {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.cart-empty p {
    margin: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .cart-panel {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        max-height: calc(100vh - 60px);
        border-radius: 0;
        border: none;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        transform: translateY(-16px);
        transform-origin: top center;
    }

    .cart-panel.open {
        transform: translateY(0);
    }
}

.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger-line {
    width: 22px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.2s;
}


.burger-btn.active .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-btn.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-btn.active .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .burger-btn {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        padding-top: 100px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.4s;
        z-index: 1000;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 40px;
        gap: 24px;
    }

    .nav-links a {
        font-size: 28px;
        font-weight: 600;
        letter-spacing: -0.02em;
        color: #1d1d1f;
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 16px;
    }
}


.hero {
    text-align: center;
    padding: 160px 20px 90px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.hero p {
    font-size: 24px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 44px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    text-align: center;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 30px;
    text-align: center;
}

.text-center { text-align: center; }
.text-left { text-align: left; }


.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 980px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-blue-hover);
}

.btn:active {
    transform: scale(0.93);
}

.btn.added {
    background-color: #8e8e93 !important;
    border-color: #8e8e93 !important;
    color: #ffffff !important;
    animation: btn-pop 0.35s ease;
}

.btn.added:hover {
    background-color: #8e8e93 !important;
}

@keyframes btn-pop {
    0% { transform: scale(1); }
    40% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.chip {
    position: relative;
    overflow: hidden;
    padding: 10px 22px;
    border-radius: 980px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    color: var(--text-main);
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.chip.pop {
    animation: chip-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chip .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 113, 227, 0.18);
    transform: scale(0);
    opacity: 1;
    animation: chip-ripple 0.55s ease-out forwards;
    pointer-events: none;
}

.chip.active .ripple {
    background: rgba(255, 255, 255, 0.4);
}

@keyframes chip-pop {
    0% { transform: scale(1); }
    40% { transform: scale(0.88); }
    100% { transform: scale(1); }
}

@keyframes chip-ripple {
    to { transform: scale(2.5); opacity: 0; }
}

.chip:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.chip.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
}

.iphone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.iphone-grid.single {
    display: flex;
    justify-content: center;
}

.iphone-grid.single .iphone-card {
    width: 100%;
    max-width: 320px;
}

@media (min-width: 881px) {
    .iphone-grid.two-cards {
        display: flex;
        justify-content: center;
        gap: 30px;
    }
    .iphone-grid.two-cards .iphone-card {
        flex: 0 1 calc((100% - 60px) / 3);
    }
}

.slider-section {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0 40px;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.nav-btn {
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background: rgba(225, 225, 230, 0.75);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d1d1f;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-btn:hover {
    background: rgba(200, 200, 210, 0.95);
    transform: translateY(-50%) scale(1.08);
}

.prev-btn { left: 40px; }
.next-btn { right: 40px; }
.nav-btn svg { width: 22px; height: 22px; }

.carousel-track {
    position: relative;
    width: var(--card-width);
    height: 100%;
    transform-style: preserve-3d;
}

.carousel-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, opacity;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0;
    pointer-events: none;
}

.carousel-card.active {
    pointer-events: auto;
}

.carousel-card .card-image-box {
    width: 100%;
    height: 320px;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    margin-bottom: 24px;
    box-sizing: border-box;
    overflow: hidden;
}

.carousel-card .card-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.12)) brightness(var(--dim, 1));
    transition: transform 0.3s ease, filter 0.4s ease;
}

.carousel-card:hover .card-img {
    transform: scale(1.04);
}

.carousel-card .card-info {
    text-align: center;
    width: 120%;
}

.carousel-card .card-info h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.carousel-card .card-info .subtitle {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.4;
}

.carousel-card .card-info .price {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.iphone-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: card-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.iphone-card.leaving {
    opacity: 0;
    transform: translateY(-14px) scale(0.97);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

@keyframes card-in {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}

#carouselSection {
    animation: card-in 0.5s ease backwards;
}

@media (prefers-reduced-motion: reduce) {
    .chip.pop,
    .chip .ripple,
    .iphone-card,
    #carouselSection {
        animation: none;
    }
    .iphone-card.leaving {
        transition: none;
    }
}

.iphone-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.iphone-card .card-image-box {
    width: 100%;
    height: 220px;
    background: #f5f5f7;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    margin-bottom: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.iphone-card .card-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.12));
    transition: transform 0.3s ease;
}

.iphone-card:hover .card-img {
    transform: scale(1.04);
}

.iphone-card .card-info {
    text-align: center;
    width: 100%;
}

.iphone-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.iphone-card .subtitle {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.4;
}

.iphone-card .price {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 16px;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    font-size: 18px;
    padding: 40px 0;
}


.trade-in-banner {
    display: flex;
    background: linear-gradient(90deg, #e5e5ea 30%, #e8863c 100%);
    border-radius: 32px;
    overflow: hidden;
    min-height: 480px;
    margin-top: 20px;
}

.trade-in-left {
    flex: 1.1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-title {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1d1d1f;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.banner-subtitle {
    font-size: 19px;
    color: #3a3a3c;
    margin-bottom: 35px;
    max-width: 90%;
}

.trade-in-right {
    flex: 0.9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 360px;
}

.banner-form .input-field {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    font-size: 16px;
    font-family: inherit;
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.banner-form .input-field:focus {
    border-color: var(--accent-blue);
    background: #ffffff;
}

.dark-btn {
    background-color: #1d1d1f;
    color: #ffffff;
}

.dark-btn:hover {
    background-color: #000000;
}

.result-box {
    margin-top: 10px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    font-size: 18px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.hidden {
    display: none;
}

.phones-illustration {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.old-phone {
    position: absolute;
    width: 210px;
    left: calc(50% - 150px);
    top: 50%;
    transform: translateY(-50%) rotate(-12deg);
    border-radius: 28px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    opacity: 0.85;
    filter: grayscale(30%) brightness(0.9);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.new-phone {
    position: absolute;
    width: 260px;
    left: calc(50% - 50px);
    top: 50%;
    transform: translateY(-50%) rotate(5deg);
    border-radius: 36px;
    box-shadow: -15px 25px 40px rgba(0, 0, 0, 0.25);
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.phones-illustration:hover .old-phone {
    transform: translateY(-50%) rotate(-18deg) translateX(-15px);
}

.phones-illustration:hover .new-phone {
    transform: translateY(-50%) rotate(8deg) scale(1.03);
}


@media (max-width: 880px) {
    .old-phone {
        width: 160px;
        left: calc(50% - 110px);
    }
    .new-phone {
        width: 200px;
        left: calc(50% - 35px);
    }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.product-card .main-image {
    width: 100%;
    max-width: 190px;
    height: 190px;
    object-fit: contain;
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.product-card .price {
    font-size: 16px;
    color: var(--text-muted);
}


footer {
    background-color: var(--bg-light);
    padding: 35px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 880px) {
    .section-title {
        font-size: 30px;
    }

    .filter-bar {
        flex-wrap: nowrap;
        justify-content: safe center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        gap: 8px;
        margin: 0 -20px 30px;
        padding: 0 20px 12px;
        scrollbar-width: none;
    }
    .filter-bar::-webkit-scrollbar {
        display: none;
    }
    .chip {
        flex-shrink: 0;
        scroll-snap-align: start;
        padding: 8px 16px;
        font-size: 13px;
        white-space: nowrap;
    }


    .iphone-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .iphone-grid.single .iphone-card {
        max-width: 260px;
    }
    .carousel-container {
        height: 460px;
    }
    .carousel-track {
        width: 200px;
    }
    .carousel-card .card-image-box {
        height: 240px;
        margin-bottom: 18px;
    }
    .carousel-card .card-info h3 {
        font-size: 20px;
    }
    .nav-btn {
        width: 38px;
        height: 38px;
    }
    .nav-btn svg {
        width: 18px;
        height: 18px;
    }
    .prev-btn { left: 6px; }
    .next-btn { right: 6px; }
    .iphone-card {
        padding: 16px;
        border-radius: 18px;
    }
    .iphone-card .card-image-box {
        height: 160px;
        padding: 12px;
        margin-bottom: 12px;
        border-radius: 14px;
    }
    .iphone-card h3 {
        font-size: 17px;
        margin-bottom: 6px;
    }
    .iphone-card .subtitle {
        font-size: 13px;
        margin-bottom: 8px;
    }
    .iphone-card .price {
        font-size: 15px;
        margin-bottom: 10px;
    }
    .iphone-card .btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .trade-in-banner {
        flex-direction: column;
    }
    .trade-in-left {
        padding: 40px 24px;
    }
    .banner-form {
        max-width: 100%;
    }
    .phones-illustration {
        min-height: 320px;
    }
    .old-phone { width: 160px; left: 10%; }
    .new-phone { width: 200px; right: 10%; }
    .hero h1 { font-size: 40px; }
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s ease;
    z-index: 1000;
}

.mobile-nav.active {
    max-height: 350px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-nav-list {
    list-style: none;
    padding: 12px 24px 0;
}

.mobile-nav-link {
    display: block;
    padding: 14px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: color 0.2s ease;
}

.mobile-nav-list li:last-child .mobile-nav-link {
    border-bottom: none;
}

.mobile-nav-link:hover {
    color: var(--accent-blue);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .mobile-nav,
    .menu-overlay {
        display: block;
    }

    .nav-actions {
        gap: 10px;
    }
}