/* هدر و فوتر مهمان — هم‌شکل سایت rayket.com (بازسازی کلاس‌های Tailwind قالب وردپرس) */

.rk-header,
.rk-footer,
.rk-mobile-nav {
    direction: rtl;
    font-family: "IRANSansXFaNum", sans-serif;
}

.rk-header *,
.rk-footer *,
.rk-mobile-nav * {
    box-sizing: border-box;
}

.rk-header a,
.rk-footer a,
.rk-mobile-nav a {
    text-decoration: none !important;
}

.rk-header ul,
.rk-footer ul,
.rk-mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rk-header p,
.rk-footer p {
    margin: 0;
}

.rk-ico {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

/* ================================================================ هدر */

.rk-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
    background: rgba(255, 255, 255, .95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #f3f4f6;
    transition: box-shadow .3s;
}

.rk-header.is-scrolled {
    box-shadow: 0 10px 15px -3px rgba(15, 76, 117, .05), 0 4px 6px -4px rgba(15, 76, 117, .05);
}

.rk-header-inner {
    width: 1140px;
    max-width: 100%;
    margin: 0 auto;
    height: 57px;
    display: flex;
    align-items: center;
}

.rk-logo {
    flex: 0 0 auto;
    margin-left: 12px;
    display: flex;
}

.rk-logo img {
    width: 118px;
    height: auto;
}

.rk-grow {
    flex: 1 1 auto;
}

.rk-menu {
    display: flex;
    align-items: center;
}

.rk-menu-item {
    position: relative;
}

.rk-menu-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 57px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: #374151;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: color .15s;
}

.rk-menu-icon {
    width: 20px;
    height: 20px;
    margin-left: 4px;
    color: #9ca3af;
    transition: color .15s;
}

.rk-menu-arrow {
    width: 12px;
    margin-right: 4px;
    color: #9ca3af;
    transition: transform .2s, color .15s;
}

.rk-menu-bar {
    position: absolute;
    right: 12px;
    left: 12px;
    bottom: -1px;
    height: 2px;
    border-radius: 999px;
    background: #0f4c75;
    transform: scaleX(0);
    transition: transform .3s;
    z-index: 1;
}

.rk-dropdown {
    position: absolute;
    top: 57px;
    right: -8px;
    display: none;
    width: 330px;
    gap: 4px;
    padding: 10px !important;
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(15, 76, 117, .1);
}

.rk-dropdown--wide {
    width: 600px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rk-dd-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    transition: background .15s;
}

.rk-dd-link:hover {
    background: #f0f7fc;
}

.rk-dd-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(15, 76, 117, .06);
    color: #0f4c75;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
}

.rk-dd-link:hover .rk-dd-icon {
    background: #0f4c75;
    color: #fff;
}

.rk-dd-text {
    min-width: 0;
    flex: 1 1 auto;
}

.rk-dd-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    line-height: 1.6;
    transition: color .15s;
}

.rk-dd-link:hover .rk-dd-title {
    color: #0f4c75;
}

.rk-dd-badge {
    padding: 2px 6px;
    border-radius: 6px;
    background: #f7ac1e;
    color: #07283f;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}

.rk-dd-desc {
    display: block;
    margin-top: 2px;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.6;
}

.rk-dd-more {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
}

.rk-dd-more a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #0f4c75 !important;
    font-size: 12px;
    font-weight: 800;
    transition: background .15s;
}

.rk-dd-more a:hover {
    background: #f0f7fc;
}

.rk-dd-more svg {
    width: 16px;
    height: 16px;
}

.rk-menu-cta {
    margin-right: 8px;
}

.rk-kb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 12px;
    background: #10b981;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, .2), 0 2px 4px -2px rgba(16, 185, 129, .2);
    transition: background .15s;
}

.rk-kb-btn:hover {
    background: #059669;
}

.rk-phone {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    padding: 6px 8px;
    border-radius: 12px;
    transition: background .15s;
}

.rk-phone:hover {
    background: #f9fafb;
}

.rk-phone-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.25;
}

.rk-phone-text span {
    color: #9ca3af;
    font-size: 10px;
    font-weight: 600;
}

.rk-phone-text b {
    color: #1f2937;
    font-size: 15px;
    font-weight: 900;
}

.rk-phone-icon {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #ecfdf5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rk-ping {
    position: absolute;
    top: -2px;
    left: -2px;
    width: 10px;
    height: 10px;
    display: flex;
}

.rk-ping span:first-child {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #34d399;
    opacity: .75;
    animation: rkPing 1s cubic-bezier(0, 0, .2, 1) infinite;
}

.rk-ping span:last-child {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #fff;
}

@keyframes rkPing {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.rk-account-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: #0f4c75;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 6px -1px rgba(15, 76, 117, .2), 0 2px 4px -2px rgba(15, 76, 117, .2);
    transition: background .15s;
}

.rk-account-btn:hover {
    background: #077ab8;
}

.rk-account-icon {
    width: 20px;
    height: 20px;
}

.rk-burger {
    display: none;
    width: 40px;
    height: 40px;
    margin-right: 8px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #374151;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.rk-burger:hover {
    background: #f9fafb;
}

.rk-burger-open {
    width: 28px;
    height: 28px;
}

.rk-burger-close {
    width: 24px;
    height: 24px;
    display: none;
}

@media (min-width: 1024px) {
    .rk-menu-item:hover .rk-menu-link {
        color: #0f4c75;
    }

    .rk-menu-item:hover .rk-menu-icon {
        color: #077ab8;
    }

    .rk-menu-item:hover .rk-menu-arrow {
        color: #0f4c75;
        transform: rotate(180deg);
    }

    .rk-menu-item:hover .rk-menu-bar {
        transform: scaleX(1);
    }

    .rk-menu-item:hover .rk-dropdown {
        display: grid;
    }
}

@media (max-width: 1279px) {
    .rk-header-inner {
        padding: 0 12px;
    }

    .rk-phone-text {
        display: none;
    }
}

@media (max-width: 1023px) {
    .rk-logo {
        margin-left: 8px;
    }

    .rk-logo img {
        width: 110px;
    }

    .rk-menu {
        display: none;
        position: absolute;
        top: 56px;
        right: 0;
        left: 0;
        max-height: calc(100vh - 57px);
        overflow-y: auto;
        padding-bottom: 96px !important;
        background: #fff;
        border-top: 1px solid #f3f4f6;
        box-shadow: 0 20px 25px -5px rgba(15, 76, 117, .1);
    }

    .rk-header.is-open .rk-menu {
        display: block;
    }

    .rk-menu-item {
        border-bottom: 1px solid #f3f4f6;
    }

    .rk-menu-link {
        width: 100%;
        height: auto;
        padding: 16px 20px;
        font-size: 16px;
        text-align: right;
    }

    .rk-menu-title {
        flex: 1 1 auto;
    }

    .rk-menu-icon {
        width: 24px;
        height: 24px;
    }

    .rk-menu-bar {
        display: none;
    }

    .rk-menu-item.is-open .rk-menu-link,
    .rk-menu-item.is-open .rk-menu-icon {
        color: #0f4c75;
    }

    .rk-menu-item.is-open .rk-menu-arrow {
        transform: rotate(180deg);
    }

    .rk-dropdown,
    .rk-dropdown--wide {
        position: static;
        width: auto;
        padding: 8px !important;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: #f9fafb;
    }

    .rk-menu-item.is-open .rk-dropdown {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .rk-dd-icon {
        background: #fff;
        border: 1px solid #f3f4f6;
    }

    .rk-dd-desc,
    .rk-dd-title {
        white-space: normal;
    }

    .rk-menu-cta {
        margin: 0;
        padding: 16px;
    }

    .rk-kb-btn {
        padding: 12px 16px;
        font-size: 16px;
    }

    .rk-phone {
        margin-left: 4px;
    }

    .rk-account-btn {
        padding: 0;
        background: transparent;
        color: #374151 !important;
        box-shadow: none;
    }

    .rk-account-btn:hover {
        background: transparent;
    }

    .rk-account-btn span {
        display: none;
    }

    .rk-account-icon {
        width: 32px;
        height: 32px;
    }

    .rk-burger {
        display: flex;
    }

    .rk-header.is-open .rk-burger-open {
        display: none;
    }

    .rk-header.is-open .rk-burger-close {
        display: block;
    }

    body.rk-menu-lock {
        overflow: hidden;
    }
}

/* ================================================================ منوی پایین موبایل */

.rk-mobile-nav {
    display: none;
}

@media (max-width: 1023px) {
    .rk-mobile-nav {
        display: block;
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1030;
        padding-bottom: env(safe-area-inset-bottom);
        background: rgba(255, 255, 255, .95);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border-top: 1px solid #f3f4f6;
        box-shadow: 0 -8px 24px -12px rgba(15, 76, 117, .15);
    }

    .rk-mobile-nav ul {
        display: flex;
        align-items: stretch;
        height: 60px;
        padding: 0 8px;
    }

    .rk-mobile-nav li {
        width: 25%;
    }

    .rk-mobile-nav a {
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: #9ca3af;
        font-size: 11px;
        font-weight: 600;
        transition: color .15s;
    }

    .rk-mobile-nav a:hover {
        color: #4b5563;
    }

    .rk-mobile-nav .rk-ico {
        width: 24px;
        height: 24px;
    }

    .rk-mnav-logo {
        width: 20px;
        height: 24px;
        object-fit: contain;
        opacity: .4;
        filter: grayscale(1);
    }

    body:has(.rk-mobile-nav) {
        padding-bottom: 60px;
    }
}

/* ================================================================ فوتر */

.rk-footer {
    width: 100%;
    background: #fff;
    border-top: 1px solid #f3f4f6;
}

.rk-footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 48px 0 0;
}

.rk-footer-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 40px 24px;
    padding-bottom: 32px;
}

.rk-footer-brand {
    grid-column: span 4;
}

.rk-footer-brand img {
    width: 120px;
    margin-bottom: 16px;
}

.rk-footer-brand p {
    max-width: 448px;
    color: #6b7280;
    font-size: 13px;
    line-height: 28px;
    text-align: justify;
}

.rk-footer-col {
    grid-column: span 2;
}

.rk-footer-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px !important;
    color: #1f2937;
    font-size: 14px;
    font-weight: 800;
}

.rk-footer-title span {
    width: 6px;
    height: 16px;
    border-radius: 999px;
    background: #077ab8;
}

.rk-footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rk-footer-col a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7280 !important;
    font-size: 13px;
    font-weight: 500;
    transition: color .15s;
}

.rk-footer-col a span {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: #d1d5db;
    transition: width .15s, background .15s;
}

.rk-footer-col a:hover {
    color: #0f4c75 !important;
}

.rk-footer-col a:hover span {
    width: 10px;
    background: #077ab8;
}

.rk-footer-contacts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.rk-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.rk-contact:hover {
    border-color: rgba(7, 122, 184, .25);
    box-shadow: 0 4px 6px -1px rgba(15, 76, 117, .05);
}

.rk-contact-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rk-contact-icon--green { background: #ecfdf5; color: #059669; }
.rk-contact-icon--blue { background: rgba(15, 76, 117, .07); color: #0f4c75; }
.rk-contact-icon--violet { background: #f5f3ff; color: #8b5cf6; }

.rk-contact-text {
    min-width: 0;
}

.rk-contact-label {
    display: block;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.8;
}

.rk-contact-label i {
    color: #d1d5db;
    font-style: normal;
}

.rk-contact-text b {
    display: block;
    color: #1f2937;
    font-size: 14px;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .15s;
}

.rk-contact:hover .rk-contact-text b {
    color: #0f4c75;
}

.rk-footer-trust {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding: 24px;
    border: 1px solid #f3f4f6;
    border-radius: 24px;
    background: #f9fafb;
}

.rk-namads {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.rk-namads > a,
.rk-namads > span {
    width: 76px;
    height: 76px;
    padding: 8px;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s;
}

.rk-namads > a:hover {
    border-color: rgba(7, 122, 184, .3);
}

.rk-namads img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rk-trust-text {
    flex: 1 1 auto;
    text-align: right;
}

.rk-trust-text p {
    color: #6b7280;
    font-size: 12px;
    line-height: 24px;
}

.rk-trust-text .rk-trust-title {
    margin-bottom: 4px !important;
    color: #1f2937;
    font-size: 14px;
    font-weight: 800;
}

.rk-trust-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
}

.rk-trust-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #374151 !important;
    font-size: 14px;
    font-weight: 800;
    transition: background .15s;
}

.rk-trust-btn:hover {
    background: #f3f4f6;
}

.rk-trust-btn--primary {
    border-color: #0f4c75;
    background: #0f4c75;
    color: #fff !important;
}

.rk-trust-btn--primary:hover {
    border-color: #077ab8;
    background: #077ab8;
}

.rk-footer-bar {
    background: #0b3a5a;
}

.rk-footer-bar-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
    text-align: center;
}

.rk-footer-bar-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rk-footer-bar-links a {
    color: rgba(255, 255, 255, .6) !important;
    transition: color .15s;
}

.rk-footer-bar-links a:hover {
    color: #fff !important;
}

@media (max-width: 1180px) {
    .rk-footer-inner,
    .rk-footer-bar-inner {
        padding-right: 16px;
        padding-left: 16px;
    }
}

@media (max-width: 1023px) {
    .rk-footer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .rk-footer-brand {
        grid-column: span 4;
    }

    .rk-footer-col {
        grid-column: span 1;
    }

    .rk-footer-trust {
        flex-direction: column;
    }

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

@media (max-width: 767px) {
    .rk-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rk-footer-brand {
        grid-column: span 2;
    }

    .rk-footer-contacts {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 639px) {
    .rk-footer-bar-inner {
        flex-direction: column;
    }

    .rk-trust-actions {
        flex-direction: column;
        width: 100%;
    }
}
