:root {
    --phone-size: 768px; /* max размер телефона */
    --tablet-size: 991px; /* max размер планшета */
    --laptop-size: 1280px; /* max размер ноутбука */
}

html, body {
  height: 100%;
}

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

.text-right {
    text-align: right;
}

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

.text-justify {
    text-align: justify;
}


.mobile-menu-container {
    position: relative;
    min-height: 400px;
}

.mobile-menu {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transform: translateX(-100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    max-height: 70vh;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
    opacity: 1;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
}

.mobile-menu-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    color: #f97316;
    background: #fff7ed;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-item {
    margin-bottom: 8px;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.mobile-menu-link:hover {
    background: #fff7ed;
    color: #f97316;
}

.mobile-menu-link.active {
    background: #fff7ed;
    color: #f97316;
    font-weight: 600;
}

.mobile-menu-arrow {
    transition: transform 0.3s ease;
}

.mobile-menu-arrow.rotate-90 {
    transform: rotate(90deg);
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 12px;
    border-left: 2px solid #f3f4f6;
}

.mobile-submenu.active {
    max-height: 500px;
}

.mobile-submenu-item {
    margin-bottom: 4px;
}

.mobile-submenu-link {
    display: block;
    padding: 10px 16px 10px 24px;
    color: #4b5563;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.mobile-submenu-link:hover {
    background: #fef3c7;
    color: #d97706;
    padding-left: 28px;
}

.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

@media (max-width: var(--phone-size)) {
    .mobile-menu {
        width: 90%;
        max-width: 320px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        border-radius: 0;
        padding-top: 60px;
        z-index: 50;
    }

    .mobile-menu-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        z-index: 51;
        padding: 16px 20px;
        margin: 0;
        border-bottom: 1px solid #e5e7eb;
    }
}


.active-indicator {
    display: inline-block;
    width: 4px;
    height: 20px;
    background: #f97316;
    border-radius: 2px;
    margin-right: 12px;
    vertical-align: middle;
}


header {
    transition: all 0.3s ease-in-out;
}

.navbar-shrink {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.navbar-shrink img {
    width: 40px !important;
    transition: width 0.3s ease-in-out;
}

.navbar-shrink .logo-text {
    opacity: 1 !important;
    transform: translateX(0) !important;
    left: 44px;
}

.navbar-logo {
    width: 96px;
    transition: width 0.3s ease-in-out;
}

.navbar-shrink .navbar-logo {
    width: 40px !important;
}

.logo-text {
    position: absolute;
    left: 100px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease-in-out;
    color: #1e293b;
    font-weight: 600;
    font-size: 1.25rem;
    white-space: nowrap;
}


.relative.flex.items-center {
    min-width: 96px;
    transition: min-width 0.3s ease-in-out;
}


.navbar-shrink .relative.flex.items-center {
    min-width: 96px;
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 1.1rem;
    }

    .navbar-shrink .logo-text {
        left: 44px;
    }


    .relative.flex.items-center {
        min-width: 80px;
    }

    .navbar-shrink .relative.flex.items-center {
        min-width: 40px;
    }
}


.mobile-submenu a {
    display: block;
    padding: 10px 16px 10px 24px !important;
    color: #4b5563 !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    font-size: 14px !important;
    margin-bottom: 4px !important;
}

.mobile-submenu a:hover {
    background: #fef3c7 !important;
    color: #d97706 !important;
    padding-left: 28px !important;
}


.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 12px;
    border-left: 2px solid #f3f4f6;
    padding-left: 8px;
}

.mobile-submenu.active {
    max-height: 500px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.main-content {
    padding: 20px 10px;
    margin: 0 auto;
    flex: 1 1;
    width: 100%;
    max-width: 1280px;
}