/*
 * Shared structural layer for all public themes.
 * Visual differences belong in style.css-derived public-base.css or /themes/*.css.
 */
:root {
    --public-container: 1180px;
    --public-radius: 12px;
    --public-line: #e7e9ee;
    --public-muted: #667085;
    --line: var(--public-line);
    --muted: var(--public-muted);
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    text-align: start;
}

body,
button,
input,
select,
textarea {
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
}

.page {
    display: flex;
    width: 100%;
    min-height: 100vh;
    flex-direction: column;
}

.page > * {
    flex-shrink: 0;
}

.page > main,
.page > .section-md {
    flex: 1 0 auto;
}

.container {
    width: min(100% - 32px, var(--public-container));
}

#page-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    background: #fff;
    transition: opacity .2s ease, visibility .2s ease;
}

#page-loader.is-hidden {
    visibility: hidden;
    opacity: 0;
}

.cssload-speeding-wheel {
    width: 42px;
    height: 42px;
    border: 3px solid color-mix(in srgb, var(--pub-primary) 28%, transparent);
    border-top-color: var(--pub-primary);
    border-radius: 50%;
    animation: public-spin .75s linear infinite;
}

@keyframes public-spin {
    to { transform: rotate(1turn); }
}

/* Header */
.page-header,
.rd-navbar-wrap {
    position: relative;
    z-index: 1030;
}

.rd-navbar-wrap {
    position: sticky;
    top: 0;
}

.rd-navbar {
    display: block !important;
    width: 100%;
    background: #fff;
    box-shadow: 0 5px 22px rgba(15, 23, 42, .07);
}

.rd-navbar-top-panel {
    padding: 7px 0;
    background: var(--pub-dark);
    color: rgba(255, 255, 255, .78);
    font-size: 12px;
}

.rd-navbar-top-panel a {
    color: inherit;
}

.rd-navbar-top-panel__main,
.rd-navbar-inner {
    width: min(100% - 32px, var(--public-container));
    margin-inline: auto;
}

.rd-navbar-top-panel__content,
.rd-navbar-top-panel__left,
.rd-navbar-top-panel__right,
.rd-navbar-items-list,
.list-inline-xxs,
.rd-navbar-inner,
.rd-navbar-panel,
.rd-navbar-nav {
    display: flex;
    align-items: center;
}

.rd-navbar-top-panel__content {
    justify-content: space-between;
    gap: 16px;
}

.rd-navbar-items-list,
.list-inline-xxs,
.rd-navbar-nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rd-navbar-items-list {
    gap: 18px;
}

.rd-navbar-items-list .unit {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rd-navbar-items-list p {
    margin: 0;
}

.list-inline-xxs {
    gap: 10px;
}

.public-theme-classic .site-top-social a.icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    font-size: 12px;
    line-height: 1;
    opacity: 1;
    transition: color .16s ease, background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.public-theme-classic .site-top-social a.icon:hover,
.public-theme-classic .site-top-social a.icon:focus-visible {
    border-color: var(--pub-primary);
    color: var(--pub-dark);
    background: var(--pub-primary);
    outline: none;
    transform: translateY(-1px);
}

.rd-navbar-top-panel__toggle {
    display: none;
}

@media (min-width: 992px) {
    .page .rd-navbar.rd-navbar-static .rd-navbar-top-panel {
        padding: 0;
    }

    .page .rd-navbar.rd-navbar-static .rd-navbar-top-panel__main,
    .page .rd-navbar.rd-navbar-static .rd-navbar-top-panel__content {
        min-height: 36px !important;
    }

    .page .rd-navbar.rd-navbar-static .rd-navbar-top-panel__content {
        gap: 18px;
    }

    .page .rd-navbar.rd-navbar-static .rd-navbar-top-panel__content > * {
        padding: 0 !important;
    }

    .page .rd-navbar.rd-navbar-static .rd-navbar-top-panel__left {
        min-width: 0;
        flex: 1 1 auto;
    }

    .page .rd-navbar.rd-navbar-static .rd-navbar-top-panel__right {
        flex: 0 0 auto;
    }

    .page .rd-navbar.rd-navbar-static .rd-navbar-items-list {
        width: 100%;
        min-width: 0;
        margin: 0 !important;
        gap: 16px;
        flex-wrap: nowrap;
    }

    .page .rd-navbar.rd-navbar-static .rd-navbar-items-list > li {
        min-width: 0;
        padding: 0 !important;
        line-height: 1.25;
    }

    .page .rd-navbar.rd-navbar-static .rd-navbar-items-list > li + li::before {
        display: none !important;
    }

    .page .rd-navbar.rd-navbar-static .rd-navbar-items-list .unit {
        min-width: 0;
        height: 36px;
        margin-bottom: 0;
        gap: 5px;
        flex-wrap: nowrap;
    }

    .page .rd-navbar.rd-navbar-static .rd-navbar-items-list .unit > * {
        margin-bottom: 0;
    }

    .page .rd-navbar.rd-navbar-static .rd-navbar-items-list .unit__left {
        display: grid;
        flex: 0 0 18px;
        width: 18px;
        place-items: center;
    }

    .page .rd-navbar.rd-navbar-static .rd-navbar-items-list .unit__left .icon {
        font-size: 16px;
        line-height: 1;
    }

    .page .rd-navbar.rd-navbar-static .rd-navbar-items-list .unit__body {
        min-width: 0;
    }

    .page .rd-navbar.rd-navbar-static .rd-navbar-items-list p,
    .page .rd-navbar.rd-navbar-static .rd-navbar-items-list a {
        line-height: 1.35;
        white-space: nowrap;
    }

    .page .rd-navbar.rd-navbar-static .site-top-address {
        max-width: min(40vw, 430px);
        flex: 1 1 auto;
    }

    .page .rd-navbar.rd-navbar-static .site-top-address p {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .page .rd-navbar.rd-navbar-static .site-top-phone,
    .page .rd-navbar.rd-navbar-static .site-top-hours {
        flex: 0 0 auto;
    }

    .page .rd-navbar.rd-navbar-static .site-top-social {
        flex-wrap: nowrap;
        white-space: nowrap;
    }
}

.rd-navbar-inner {
    min-height: 72px;
    justify-content: space-between;
    gap: 24px;
}

.rd-navbar-panel {
    min-width: 0;
    gap: 12px;
}

.rd-navbar-brand {
    min-width: 0;
}

.rd-navbar-brand .brand-name {
    max-width: 360px;
    color: var(--pub-dark);
    line-height: 1.3;
}

.rd-navbar-brand .brand-name img {
    flex: 0 0 auto;
}

.rd-navbar-nav-wrap {
    min-width: 0;
}

.rd-navbar-nav {
    justify-content: flex-end;
    gap: 2px;
}

.rd-navbar-nav > li {
    position: relative;
}

.rd-navbar-nav > li > a {
    display: block;
    padding: 10px 12px;
    border-radius: 9px;
    color: #252a34;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: color .16s ease, background-color .16s ease;
}

.rd-navbar-nav > li.active > a,
.rd-navbar-nav > li > a:hover,
.rd-navbar-nav > li > a:focus-visible {
    background: transparent;
    color: color-mix(in srgb, var(--pub-dark) 88%, #000);
}

.rd-navbar-dropdown {
    position: absolute;
    inset-block-start: calc(100% + 6px);
    inset-inline-start: 0;
    z-index: 1050;
    display: none;
    min-width: 220px;
    margin: 0;
    padding: 8px;
    list-style: none;
    border: 1px solid var(--public-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, .16);
}

.rd-navbar-dropdown a {
    display: block;
    padding: 9px 11px;
    border-radius: 8px;
    color: #252a34;
    font-size: 13px;
}

.rd-navbar-dropdown a:hover,
.rd-navbar-dropdown a:focus-visible {
    background: #f4f6f8;
}

.rd-navbar-nav > li:hover > .rd-navbar-dropdown,
.public-keyboard-nav .rd-navbar-nav > li > a:focus-visible ~ .rd-navbar-dropdown,
.public-keyboard-nav .rd-navbar-nav > li > .rd-navbar-dropdown:focus-within {
    display: block;
}

@media (min-width: 992px) {
    .page .rd-navbar.rd-navbar-static .rd-navbar-nav > li > .rd-navbar-dropdown {
        inset-block-start: calc(100% - 1px) !important;
        display: none !important;
        margin-block-start: 0 !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .page .rd-navbar.rd-navbar-static .rd-navbar-nav > li:hover > .rd-navbar-dropdown,
    .public-keyboard-nav .page .rd-navbar.rd-navbar-static .rd-navbar-nav > li > a:focus-visible ~ .rd-navbar-dropdown,
    .public-keyboard-nav .page .rd-navbar.rd-navbar-static .rd-navbar-nav > li > .rd-navbar-dropdown:focus-within {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
    }
}

.rd-navbar-toggle {
    position: relative;
    display: none;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    border: 1px solid var(--public-line);
    border-radius: 10px;
    background: #fff;
}

.rd-navbar-toggle span,
.rd-navbar-toggle span::before,
.rd-navbar-toggle span::after {
    position: absolute;
    inset-inline-start: 10px;
    width: 20px;
    height: 2px;
    border-radius: 3px;
    background: var(--pub-dark);
    content: "";
    transition: transform .18s ease, opacity .18s ease;
}

.rd-navbar-toggle span {
    inset-block-start: 19px;
}

.rd-navbar-toggle span::before {
    inset-block-start: -6px;
    inset-inline-start: 0;
}

.rd-navbar-toggle span::after {
    inset-block-start: 6px;
    inset-inline-start: 0;
}

.rd-navbar-toggle.active span {
    background: transparent;
}

.rd-navbar-toggle.active span::before {
    transform: translateY(6px) rotate(45deg);
}

.rd-navbar-toggle.active span::after {
    transform: translateY(-6px) rotate(-45deg);
}

/* Shared content primitives */
.section,
.section-md {
    position: relative;
}

.section-md {
    padding-block: clamp(42px, 6vw, 72px);
}

.section-lg {
    padding-block: clamp(64px, 8vw, 110px);
}

.heading-decorated {
    line-height: 1.35;
}

.row.row-15 {
    row-gap: 15px;
}

.row.row-30 {
    row-gap: 30px;
}

.row.row-60 {
    row-gap: 42px;
}

.post-classic,
.svc-card,
.prod-card,
.public-card {
    height: 100%;
}

.public-card {
    padding: clamp(20px, 3vw, 32px);
}

.home-page-content {
    width: min(100%, 960px);
    margin: 30px auto 0;
}

.home-page-section {
    padding-block: clamp(20px, 3vw, 32px) !important;
}

.home-page-section .home-page-content {
    margin-top: 0;
}

.home-page-entry {
    height: auto;
    text-align: start;
}

.home-page-entry + .home-page-entry {
    margin-top: 24px;
}

.home-page-entry__title {
    margin-bottom: 20px;
}

.home-page-entry__cover {
    display: block;
    width: 100%;
    max-height: 520px;
    margin-bottom: 24px;
    border-radius: 12px;
    object-fit: cover;
}

.home-page-entry .rich-body > :last-child {
    margin-bottom: 0;
}

.auth-card {
    width: min(100%, 470px);
    height: auto;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid color-mix(in srgb, var(--pub-dark) 10%, #fff);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 22px 65px -36px rgba(15, 23, 42, .48);
}

.auth-card h1 {
    margin: 0 0 10px;
    color: color-mix(in srgb, var(--pub-dark) 90%, #000);
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 900;
    line-height: 1.45;
    text-align: center;
}

.auth-card .auth-sub {
    margin-bottom: 24px;
    color: var(--public-muted);
    font-size: 13.5px;
    line-height: 1.9;
    text-align: center;
}

.auth-card .nav-pills {
    gap: 6px;
    padding: 5px;
    border: 1px solid var(--public-line);
    border-radius: 13px;
    background: #f5f7fa;
}

.auth-card .nav-pills .nav-link {
    width: 100%;
    border: 0;
    border-radius: 9px;
    color: #475467;
    background: transparent;
    font-size: 13px;
    font-weight: 800;
}

.auth-card .nav-pills .nav-link.active {
    color: var(--pub-dark);
    background: var(--pub-primary);
    box-shadow: 0 5px 16px color-mix(in srgb, var(--pub-primary) 24%, transparent);
}

.auth-card .form-control,
.auth-card .form-select {
    min-height: 50px;
    background-color: #fff;
}

.auth-card .btn-primary {
    min-height: 50px;
    border-color: var(--pub-primary);
    color: var(--pub-dark);
    background: var(--pub-primary);
    font-weight: 900;
}

.form-public {
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid var(--public-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 55px -38px rgba(15, 23, 42, .42);
}

.form-public .fp-group {
    background: #f9fafb;
}

.form-public .fp-choice {
    transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.form-public .fp-choice:has(input:checked) {
    border-color: var(--pub-primary);
    background: color-mix(in srgb, var(--pub-primary) 12%, #fff);
}

/* Child sections on public content pages */
.section-children {
    margin-block-end: clamp(24px, 3vw, 34px);
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--pub-dark) 9%, #fff);
    border-radius: 16px;
    background: color-mix(in srgb, #fff 92%, var(--pub-primary));
    box-shadow: 0 16px 45px -40px rgba(15, 23, 42, .46);
}

.section-child-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.section-children-toggle {
    display: none;
}

.section-child-card {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 64px;
    padding: 9px 11px;
    grid-template-columns: 34px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 9px;
    overflow: hidden;
    border: 1px solid var(--public-line);
    border-radius: 11px;
    color: #252a34;
    background: #fff;
    box-shadow: 0 9px 25px -22px rgba(15, 23, 42, .55);
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.section-child-card::before {
    position: absolute;
    inset-block: 10px;
    inset-inline-start: 0;
    width: 3px;
    border-radius: 3px;
    background: var(--pub-primary);
    content: "";
    transform: scaleY(0);
    transition: transform .18s ease;
}

.section-child-card:hover,
.section-child-card:focus-visible {
    border-color: color-mix(in srgb, var(--pub-primary) 68%, #d0d5dd);
    color: #252a34;
    box-shadow: 0 16px 35px -24px rgba(15, 23, 42, .5);
    outline: none;
    transform: translateY(-2px);
}

.section-child-card:hover::before,
.section-child-card:focus-visible::before {
    transform: scaleY(1);
}

.section-child-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 9px;
    background: color-mix(in srgb, var(--pub-primary) 15%, #f8fafc);
    font-size: 15px;
    line-height: 1;
}

.section-child-content {
    min-width: 0;
}

.section-child-content strong {
    display: block;
}

.section-child-content strong {
    overflow: hidden;
    color: color-mix(in srgb, var(--pub-dark) 88%, #000);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.7;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.section-child-arrow {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    color: color-mix(in srgb, var(--pub-dark) 68%, #fff);
    background: #f2f4f7;
    font-size: 13px;
    transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

.section-child-card:hover .section-child-arrow,
.section-child-card:focus-visible .section-child-arrow {
    color: var(--pub-dark);
    background: var(--pub-primary);
    transform: translateX(-2px);
}

@media (max-width: 991.98px) {
    .section-child-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .section-children {
        padding: 10px;
        border-radius: 13px;
    }

    .section-children-toggle {
        display: flex;
        width: 100%;
        min-height: 42px;
        padding: 7px 11px;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        border: 1px solid var(--public-line);
        border-radius: 10px;
        color: color-mix(in srgb, var(--pub-dark) 88%, #000);
        background: #fff;
        font-size: 13px;
        font-weight: 900;
        text-align: start;
    }

    .section-children-toggle:focus-visible {
        border-color: var(--pub-primary);
        outline: 3px solid color-mix(in srgb, var(--pub-primary) 22%, transparent);
    }

    .section-children-toggle-icon {
        display: grid;
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
        place-items: center;
        border-radius: 50%;
        background: color-mix(in srgb, var(--pub-primary) 16%, #f8fafc);
        font-size: 17px;
        line-height: 1;
        transition: transform .18s ease;
    }

    .section-children.is-open .section-children-toggle-icon {
        transform: rotate(180deg);
    }

    .js .section-children:not(.is-open) .section-child-list {
        display: none;
    }

    .section-child-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        margin-block-start: 9px;
    }

    .section-child-card {
        min-height: 58px;
        padding: 8px 10px;
        grid-template-columns: 32px minmax(0, 1fr) 22px;
        gap: 8px;
    }

    .section-child-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        font-size: 14px;
    }
}

@media (max-width: 359.98px) {
    .section-child-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

.cover-img,
.post-cover,
.prod-cover {
    width: 100%;
    object-fit: cover;
}

.button,
.btn {
    border-radius: 8px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.form-label {
    position: static;
    display: block;
    margin-bottom: 6px;
    transform: none;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
    opacity: 1;
    pointer-events: auto;
}

.form-control,
.form-select {
    min-height: 44px;
    border-color: #d7dce2;
    border-radius: 9px;
    text-align: start;
}

.form-control:focus,
.form-select:focus {
    border-color: color-mix(in srgb, var(--pub-primary) 75%, #64748b);
    box-shadow: 0 0 0 .22rem color-mix(in srgb, var(--pub-primary) 18%, transparent);
}

.form-check {
    padding-inline-start: 1.5em;
}

.form-check .form-check-input {
    float: inline-start;
    margin-inline-start: -1.5em;
}

.font-weight-normal {
    font-weight: 400 !important;
}

.ltr-text {
    direction: ltr;
    unicode-bidi: isolate;
}

/* Native, dependency-free home slider */
.swiper-slider.public-js-slider {
    position: relative;
    width: 100%;
    flex: 0 0 auto;
    overflow: hidden;
}

.public-js-slider .swiper-wrapper {
    position: relative;
    display: block;
    height: 100%;
    transform: none !important;
}

.public-js-slider .swiper-slide {
    position: absolute;
    inset: 0;
    display: grid;
    visibility: hidden;
    width: 100%;
    min-height: inherit;
    place-items: center;
    background-position: center;
    background-size: cover;
    opacity: 0;
    transition: opacity .55s ease, visibility .55s ease;
}

.public-js-slider .swiper-slide::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .28));
    content: "";
}

.public-js-slider .swiper-slide.is-active {
    visibility: visible;
    opacity: 1;
}

.public-js-slider .swiper-slide-caption {
    position: relative;
    z-index: 1;
}

.public-js-slider .swiper-button-prev,
.public-js-slider .swiper-button-next {
    z-index: 3;
    cursor: pointer;
}

.public-js-slider .swiper-pagination {
    z-index: 3;
}

.public-js-slider .swiper-pagination-bullet {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-inline: 4px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
}

.public-js-slider .swiper-pagination-bullet.is-active {
    width: 25px;
    border-radius: 999px;
    background: var(--pub-primary);
}

.parallax-container {
    background-position: center;
    background-size: cover;
}

.page-hero {
    min-height: 250px !important;
    padding-block: 0 !important;
}

.page-hero .parallax-content,
.page-hero .parallax-header {
    display: flex;
    align-items: center;
    min-height: 250px !important;
    padding-block: 0 !important;
}

.page-hero .parallax-header__inner {
    width: 100%;
    min-height: 0 !important;
}

.page-hero .parallax-header__content {
    padding-block: 0 !important;
}

.wow {
    opacity: 1;
}

.js .wow {
    transform: translateY(12px);
    opacity: 0;
    transition: opacity .45s ease, transform .45s ease;
}

.js .wow.is-visible {
    transform: none;
    opacity: 1;
}

/* Footer */
.footer-corporate {
    margin-top: auto;
}

.site-foot-grid {
    align-items: start;
}

.site-foot-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-foot-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-foot-list li + li {
    margin-top: 7px;
}

.footer-corporate__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.rights {
    margin: 0;
}

#ui-to-top {
    position: fixed;
    inset-inline-end: 18px;
    inset-block-end: 20px;
    z-index: 1020;
    display: grid;
    width: 44px;
    height: 44px;
    visibility: hidden;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--pub-primary);
    color: var(--pub-dark);
    box-shadow: 0 8px 26px rgba(15, 23, 42, .22);
    opacity: 0;
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
    transform: translateY(8px);
}

#ui-to-top.is-visible {
    visibility: visible;
    opacity: 1;
    transform: none;
}

.public-drawer-head,
.public-nav-backdrop {
    display: none;
}

@media (max-width: 991.98px) {
    body.public-nav-open {
        overflow: hidden;
    }

    body.public-nav-open .rd-navbar-wrap {
        z-index: 1200;
    }

    .rd-navbar-wrap {
        position: sticky;
        top: 0;
    }

    .page .rd-navbar.rd-navbar-fixed {
        position: relative;
        min-height: 0;
    }

    .page .rd-navbar.rd-navbar-fixed .rd-navbar-inner {
        width: min(100% - 24px, var(--public-container));
        min-height: 64px;
        padding: 8px 0 !important;
        margin-inline: auto;
    }

    .page .rd-navbar.rd-navbar-fixed .rd-navbar-panel {
        position: relative !important;
        inset: auto !important;
        z-index: 2;
        width: 100%;
        height: auto !important;
        min-height: 48px;
        padding: 0 !important;
        border: 0;
        justify-content: space-between;
        background: transparent;
    }

    .page .rd-navbar.rd-navbar-fixed .rd-navbar-brand {
        position: static !important;
        width: auto;
        height: auto !important;
        max-width: calc(100vw - 96px);
        overflow: visible;
    }

    .page .rd-navbar.rd-navbar-fixed .rd-navbar-brand .brand-name {
        max-width: calc(100vw - 96px);
        overflow: hidden;
        font-size: 18px !important;
        text-overflow: ellipsis;
    }

    .page .rd-navbar.rd-navbar-fixed .rd-navbar-brand .brand-name img {
        max-width: 46px;
        height: 32px !important;
    }

    .page .rd-navbar.rd-navbar-fixed .rd-navbar-toggle {
        position: relative;
        display: block;
        flex: 0 0 42px;
    }

    .page .rd-navbar.rd-navbar-fixed .rd-navbar-nav-wrap {
        position: fixed !important;
        inset-block: 0 !important;
        inset-inline-start: 0 !important;
        inset-inline-end: auto !important;
        z-index: 1101;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch;
        width: min(86vw, 330px) !important;
        max-width: 330px;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: none !important;
        padding: 0 0 24px !important;
        overflow-x: hidden;
        overflow-y: auto;
        border-inline-end: 1px solid var(--public-line);
        background: #fff;
        box-shadow: 18px 0 55px rgba(15, 23, 42, .22);
        opacity: 1;
        transform: translateX(-105%) !important;
        transition: transform .24s ease !important;
    }

    .page .rd-navbar.rd-navbar-fixed .rd-navbar-nav-wrap.active,
    .page .rd-navbar.rd-navbar-fixed .rd-navbar-nav-wrap.is-open {
        transform: translateX(0) !important;
    }

    [dir="rtl"] .page .rd-navbar.rd-navbar-fixed .rd-navbar-nav-wrap {
        box-shadow: -18px 0 55px rgba(15, 23, 42, .22);
        transform: translateX(105%) !important;
    }

    [dir="rtl"] .page .rd-navbar.rd-navbar-fixed .rd-navbar-nav-wrap.active,
    [dir="rtl"] .page .rd-navbar.rd-navbar-fixed .rd-navbar-nav-wrap.is-open {
        transform: translateX(0) !important;
    }

    .public-theme-liquidglass .rd-navbar-nav-wrap {
        border-color: rgba(255, 255, 255, .7) !important;
        background: rgba(245, 248, 255, .94) !important;
        backdrop-filter: blur(20px) saturate(145%);
        -webkit-backdrop-filter: blur(20px) saturate(145%);
    }

    .public-drawer-head {
        position: sticky;
        inset-block-start: 0;
        z-index: 2;
        display: flex;
        min-height: 64px;
        padding: 12px 16px;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid var(--public-line);
        background: color-mix(in srgb, #fff 94%, var(--pub-primary));
    }

    .public-drawer-head strong {
        color: var(--pub-dark);
        font-size: 15px;
        font-weight: 900;
    }

    .public-drawer-close {
        display: grid;
        width: 38px;
        height: 38px;
        padding: 0;
        place-items: center;
        border: 1px solid var(--public-line);
        border-radius: 10px;
        color: var(--pub-dark);
        background: #fff;
        font-size: 26px;
        line-height: 1;
    }

    .page .rd-navbar.rd-navbar-fixed .rd-navbar-nav {
        display: block !important;
        width: 100%;
        height: auto;
        margin: 0 !important;
        padding: 12px !important;
        text-align: start;
    }

    .page .rd-navbar.rd-navbar-fixed .rd-navbar-nav > li {
        margin: 2px 0 !important;
        text-align: start;
    }

    .page .rd-navbar.rd-navbar-fixed .rd-navbar-nav > li > a {
        padding: 11px 13px !important;
        border-radius: 9px;
        color: #252a34;
        font-size: 13.5px;
        font-weight: 800;
        line-height: 1.75;
    }

    .page .rd-navbar.rd-navbar-fixed .rd-navbar-nav > li.active > a,
    .page .rd-navbar.rd-navbar-fixed .rd-navbar-nav > li > a:hover {
        color: var(--pub-dark);
        background: color-mix(in srgb, var(--pub-primary) 20%, #fff);
    }

    .page .rd-navbar.rd-navbar-fixed .rd-navbar-dropdown {
        position: static !important;
        display: none !important;
        height: auto !important;
        margin: 4px 8px 8px !important;
        padding: 6px !important;
        overflow: visible !important;
        border: 1px solid var(--public-line);
        border-radius: 10px;
        background: #f8fafc;
        box-shadow: none;
        opacity: 1 !important;
    }

    .page .rd-navbar.rd-navbar-fixed .rd-navbar-nav > li.is-open > .rd-navbar-dropdown {
        display: block !important;
    }

    .page .rd-navbar.rd-navbar-fixed .rd-navbar-dropdown a {
        padding: 9px 11px !important;
        color: #475467;
        font-size: 12.5px;
    }

    .public-nav-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1100;
        display: block;
        visibility: hidden;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(15, 23, 42, .48);
        opacity: 0;
        transition: opacity .22s ease, visibility .22s ease;
    }

    .public-nav-backdrop.is-visible {
        visibility: visible;
        opacity: 1;
    }

    /* Mobile contact panel: a compact button remains visible; address and phone
       expand only when requested. */
    .page .rd-navbar.rd-navbar-fixed .rd-navbar-top-panel {
        position: relative !important;
        inset: auto !important;
        padding: 0;
        pointer-events: auto;
    }

    .page .rd-navbar.rd-navbar-fixed .rd-navbar-top-panel__main {
        position: relative;
        width: min(100% - 24px, var(--public-container));
        min-height: 36px;
        margin-inline: auto;
    }

    .page .rd-navbar.rd-navbar-fixed .rd-navbar-top-panel__toggle {
        position: relative !important;
        inset: auto !important;
        display: grid !important;
        width: 34px !important;
        height: 34px !important;
        margin-inline-start: auto;
        padding: 0;
        place-items: center;
        border: 0;
        color: #fff;
        background: transparent;
        cursor: pointer;
    }

    .page .rd-navbar.rd-navbar-fixed .rd-navbar-top-panel__toggle span {
        display: none !important;
    }

    .page .rd-navbar.rd-navbar-fixed .rd-navbar-top-panel__toggle::before {
        content: "+";
        font: 800 22px/1 Arial, sans-serif;
    }

    .page .rd-navbar.rd-navbar-fixed .rd-navbar-top-panel__toggle.active::before {
        content: "×";
        font-size: 23px;
    }

    .page .rd-navbar.rd-navbar-fixed .rd-navbar-top-panel__content {
        position: static !important;
        display: grid !important;
        visibility: hidden;
        width: 100% !important;
        max-height: 0;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden;
        border: 0 !important;
        color: rgba(255, 255, 255, .88);
        background: transparent !important;
        box-shadow: none !important;
        opacity: 0;
        pointer-events: none;
        text-align: start;
        transition: max-height .24s ease, padding .24s ease, opacity .18s ease, visibility .18s ease;
    }

    .page .rd-navbar.rd-navbar-fixed .rd-navbar-top-panel__main.active .rd-navbar-top-panel__content,
    .page .rd-navbar.rd-navbar-fixed .rd-navbar-top-panel__main.is-open .rd-navbar-top-panel__content {
        visibility: visible;
        max-height: 520px;
        padding: 8px 0 14px !important;
        opacity: 1;
        pointer-events: auto;
    }

    .page .rd-navbar.rd-navbar-fixed .rd-navbar-top-panel__left,
    .page .rd-navbar.rd-navbar-fixed .rd-navbar-top-panel__right {
        display: block;
        width: 100%;
    }

    .page .rd-navbar.rd-navbar-fixed .rd-navbar-items-list {
        display: grid;
        gap: 7px;
    }

    .page .rd-navbar.rd-navbar-fixed .rd-navbar-top-panel__right {
        margin-top: 9px;
    }

    .page .rd-navbar.rd-navbar-fixed .site-top-social {
        justify-content: flex-start;
        gap: 8px;
    }
}

@media (max-width: 767.98px) {
    .container {
        width: min(100% - 24px, var(--public-container));
    }

    .auth-card,
    .form-public {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .page-hero,
    .page-hero .parallax-content,
    .page-hero .parallax-header {
        min-height: 190px !important;
    }

    .footer-corporate__inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ==========================================================================
   اصلاحات مشترکِ اجزا (روی هر سه قالب اعمال می‌شود)
   ========================================================================== */

/* --- ۱) فاصله‌ی منوی دسکتاپ ---
   قالب پایه علاوه بر padding لینک، به خودِ li هم padding می‌داد (۱۳+۱۲ = ۲۵px
   در هر طرف). با ۸ آیتم، ۴۰۰px فقط فاصله می‌شد و با آیتم بیشتر می‌شکست. */
.rd-navbar-nav > li { padding-inline: 0 !important; }
.rd-navbar-nav > li > a { padding: 10px 11px; }

/* هرچه آیتم‌ها بیشتر/صفحه باریک‌تر، فشرده‌تر — تا منو نشکند */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .rd-navbar-nav > li > a { padding-inline: 8px; font-size: 12.5px; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .rd-navbar-nav > li > a { padding-inline: 6px; font-size: 12px; }
}

/* --- ۲) یکدست‌سازی دکمه‌ها ---
   علتِ «یک دکمه‌ی غول و بقیه کوچک»: در گروهِ flex، دکمه‌ی با متنِ بلند فشرده
   می‌شد و متنش به چند خط می‌رفت (۸۸px در برابر ۴۳px). با flex:0 0 auto دیگر
   فشرده نمی‌شود و در صورت کمبود جا، به خط بعد می‌رود — همه هم‌قد می‌مانند. */
.pd-cta-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 18px;
    padding: 12px;
    border: 1px solid var(--pub-line);
    border-radius: 12px;
    background: color-mix(in srgb, #fff 94%, var(--pub-primary));
}
.pd-cta-group > .button,
.prod-actions > .button {
    flex: 0 0 auto;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
.pd-cta-group > .button {
    width: 100%;
    min-width: 0;
    margin: 0 !important;
}
.pd-cta-note {
    margin: 10px 3px 0;
    color: var(--pub-muted);
    font-size: 12.5px;
    line-height: 1.9;
}
/* در موبایل، دکمه‌های اقدام خوانا و تمام‌عرض می‌شوند. */
@media (max-width: 575.98px) {
    .public-card {
        padding: 16px;
    }

    .pd-cta-group {
        grid-template-columns: minmax(0, 1fr);
        padding: 10px;
    }

    .pd-cta-group > .button {
        white-space: normal;
    }
}

/* --- ۳) بخش نظرات ---
   حالت خالی و «ورود لازم است» قبلاً متنِ خاکستریِ لخت بود. */
.pd-review-empty {
    border: 1px dashed #d8dae0;
    border-radius: 10px;
    padding: 18px 20px;
    color: #6b7280;
    background: #fbfbfc;
    text-align: center;
    margin-block: 10px 14px;
}
.pd-review-empty strong { color: #374151; display: block; margin-bottom: 4px; }
.pd-review-login {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-block-start: 14px;
    padding: 18px 20px;
    border: 1px solid var(--pub-line);
    border-radius: 12px;
    background: color-mix(in srgb, #fff 96%, var(--pub-primary));
}
.pd-review-login span {
    color: var(--pub-soft);
    line-height: 1.9;
}
.pd-review-login .button {
    min-height: 40px;
    margin: 0 !important;
    white-space: nowrap;
}
.pd-reviews {
    margin-block-start: 14px;
}

@media (max-width: 575.98px) {
    .pd-review-login {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px;
        text-align: center;
    }

    .pd-review-login .button {
        width: 100%;
    }
}

/* --- ۴) زیرخطِ آیتم فعالِ منو (بدون رنگ زمینه) --- */
.rd-navbar-nav > li > a { position: relative; }
.rd-navbar-nav > li.active > a::after,
.rd-navbar-nav > li > a:hover::after {
    content: "";
    position: absolute;
    inset-inline: 8px;
    inset-block-end: 2px;
    block-size: 2px;
    border-radius: 2px;
    background: var(--pub-primary);
}

/* --- ۵) عرضِ یکسانِ همه‌ی صفحات ---
   قبلاً هر صفحه ستون‌بندی خودش را داشت (col-lg-11، col-xl-10، col-lg-8 …) و
   عرضِ محتوا از صفحه‌ای به صفحه‌ی دیگر می‌پرید. یک عرضِ واحد تعریف می‌شود. */
:root { --pub-content-max: 1160px; }
.page .container { max-width: var(--pub-content-max) !important; }
/* ستون‌های باریک‌کننده‌ی داخل container در دسکتاپ تمام‌عرض می‌شوند تا پرشِ عرض حذف شود */
@media (min-width: 992px) {
    .page .container > .row > .col-lg-11,
    .page .container > .row > .col-xl-10,
    .page .container > .row > .col-lg-10,
    .page .container > .row > .col-lg-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* --- ۶) فاصله‌ی داخلی جدول‌ها (متن به خطوط نچسبد) --- */
.page table { border-collapse: collapse; width: 100%; }
.page table th,
.page table td {
    padding: 12px 14px;
    vertical-align: middle;
}
.page table th { text-align: start; }
.page .table-wrap, .page .table-responsive { border-radius: 10px; }

/* --- ۷) مهارِ حاشیه‌های بزرگ ---
   بخش‌های خالی، فاصله‌ی عمودیِ دوبرابر می‌ساختند. */
.page .section-md { padding-block: clamp(2.5rem, 5.5vw, 4.5rem); }
.page .section-md > .container > .row:only-child { margin-block: 0; }
.page .offset-top-30 { margin-top: 18px !important; }
.page hr { margin-block: 20px; }

/* --- ۸) هم‌ترازیِ دکمه‌ها در همه‌ی گروه‌ها --- */
.page .prod-actions,
.page .home-hero__cta,
.page .list-inline-xxs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.page .button,
.page .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}
.page .button-xs { min-height: 36px; }

/* --- ۹) توکن‌های رنگِ مشترک ---
   ویوها قبلاً رنگ‌ها را درون‌خطی هاردکد می‌کردند (#888، #999 …) که روی قالب را
   می‌گرفت و تغییر رنگ در پنل بی‌اثر می‌شد. این متغیرها از تنظیمات مشتق می‌شوند. */
:root {
    --pub-ink: var(--pub-dark, #151515);
    --pub-soft: color-mix(in srgb, var(--pub-dark, #151515) 70%, #ffffff);
    --pub-muted: color-mix(in srgb, var(--pub-dark, #151515) 50%, #ffffff);
    --pub-surface: #ffffff;
    --pub-line: color-mix(in srgb, var(--pub-dark, #151515) 14%, #ffffff);
}
