/* ==========================================================================
   HostBaran service pages (P5) — shared layout for plan pages, plus
   generic content-page chrome (faq / about / host / domain / offer).
   Depends on hb-modern.css tokens + shared components (.hb-btn, .hb-price,
   .hb-feature, .hb-sec-head).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Service hero
   ----------------------------------------------------------------------- */

.hb-phero {
        position: relative;
        overflow: hidden;
        background: linear-gradient(180deg, #F8EDE3 0%, rgba(248, 237, 227, 0) 100%);
        padding: 48px 0 64px;
}

.hb-phero::after {
        content: "";
        position: absolute;
        inset-inline-end: -240px;
        top: -260px;
        width: 620px;
        height: 620px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(129, 166, 198, 0.18) 0%, rgba(129, 166, 198, 0) 70%);
        pointer-events: none;
}

.hb-phero__inner {
        position: relative;
        display: flex;
        align-items: center;
        gap: 44px;
}

.hb-phero__content {
        flex: 1;
        min-width: 0;
}

.hb-phero__content h1 {
        margin: 0 0 14px;
        font-size: 36px;
        font-weight: 900;
        line-height: 1.5;
        color: var(--hb-ink);
}

.hb-phero__content > p {
        margin: 0 0 24px;
        max-width: 560px;
        font-size: 15.5px;
        line-height: 2.15;
        color: var(--hb-text);
}

.hb-phero__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
}

.hb-phero__art {
        flex-shrink: 0;
        max-width: 400px;
}

.hb-phero__art img {
        display: block;
        width: 100%;
        height: auto;
}

/* --------------------------------------------------------------------------
   Plans
   ----------------------------------------------------------------------- */

.hb-plans {
        padding: 44px 0 72px;
}

.hb-plans__grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 22px;
        align-items: stretch;
}

.hb-plans__grid--c3 {
        grid-template-columns: repeat(3, 1fr);
}

.hb-plans__grid .hb-price {
        padding: 26px 20px 22px;
}

.hb-plans__grid .hb-price__num {
        font-size: 24px;
}

.hb-plans__grid .hb-price__list li {
        font-size: 12.8px;
}

.hb-more {
        display: flex;
        justify-content: center;
        margin-top: 30px;
}

.hb-more a {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        padding: 11px 26px;
        border-radius: 999px;
        border: 1px solid var(--hb-line);
        background: #fff;
        color: var(--hb-primary);
        font-size: 14px;
        font-weight: 700;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hb-more a:hover {
        border-color: var(--hb-primary);
        box-shadow: var(--hb-shadow-sm);
        transform: translateY(-2px);
        color: var(--hb-primary);
}

/* --------------------------------------------------------------------------
   Uptime band + feature grids
   ----------------------------------------------------------------------- */

.hb-band {
        padding: 44px 0 64px;
}

.hb-band__lead {
        margin: 0 0 34px;
        text-align: center;
        color: var(--hb-muted);
        font-size: 15px;
        line-height: 2;
}

/* band uses a 3-column variant of the shared feature grid */
.hb-features__grid--c3 {
        grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 991.98px) {
        .hb-features__grid--c3 {
                grid-template-columns: 1fr;
        }
}

.hb-serv {
        padding: 48px 0;
        background: linear-gradient(180deg, #F8EDE3 0%, #fff 100%);
}

.hb-serv__head {
        max-width: 640px;
        margin: 0 auto 40px;
        text-align: center;
}

.hb-serv__head h2 {
        margin: 0 0 8px;
        font-size: 26px;
        font-weight: 800;
        color: var(--hb-ink);
}

.hb-serv__head p {
        margin: 0;
        font-size: 15px;
        color: var(--hb-muted);
}

/* --------------------------------------------------------------------------
   Managed / panel section
   ----------------------------------------------------------------------- */

.hb-managed {
        padding: 52px 0;
}

.hb-managed__card {
        display: flex;
        align-items: center;
        gap: 40px;
        background: #fff;
        border: 1px solid var(--hb-line);
        border-radius: 24px;
        padding: 40px 44px;
        box-shadow: var(--hb-shadow-sm);
}

.hb-managed__art {
        flex-shrink: 0;
        max-width: 330px;
}

.hb-managed__art img {
        display: block;
        width: 100%;
        height: auto;
}

.hb-managed__body h2 {
        margin: 0 0 12px;
        font-size: 24px;
        font-weight: 800;
        color: var(--hb-ink);
}

.hb-managed__body p {
        margin: 0;
        font-size: 15px;
        line-height: 2.2;
        color: var(--hb-text);
}

/* --------------------------------------------------------------------------
   Why-us / checklist
   ----------------------------------------------------------------------- */

.hb-whyus {
        padding: 48px 0 80px;
}

.hb-whyus__inner {
        display: flex;
        gap: 44px;
        align-items: center;
}

.hb-whyus__text {
        flex: 1;
        min-width: 0;
}

.hb-whyus__text > h2 {
        margin: 0 0 12px;
        font-size: 25px;
        font-weight: 800;
        color: var(--hb-ink);
}

.hb-whyus__text > p {
        margin: 0 0 10px;
        font-size: 15px;
        line-height: 2.15;
        color: var(--hb-text);
}

.hb-checks {
        margin: 14px 0 0;
        padding: 0;
        list-style: none;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 28px;
}

.hb-checks li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        font-weight: 600;
        color: var(--hb-ink);
}

.hb-checks li .hb-ic {
        flex-shrink: 0;
        color: #798777;
}

.hb-whyus__art {
        flex-shrink: 0;
        max-width: 360px;
}

.hb-whyus__art img {
        display: block;
        width: 100%;
        height: auto;
}

/* --------------------------------------------------------------------------
   Generic content page (faq / about / host / offer / domain)
   ----------------------------------------------------------------------- */

.hb-cpage__hero {
        padding: 46px 0 26px;
        background: linear-gradient(180deg, #F8EDE3 0%, rgba(248, 237, 227, 0) 100%);
}

.hb-cpage__hero h1 {
        margin: 0 0 12px;
        font-size: 32px;
        font-weight: 900;
        color: var(--hb-ink);
}

.hb-cpage__hero > .container-xxl > p {
        margin: 0;
        max-width: 660px;
        font-size: 15.5px;
        line-height: 2.15;
        color: var(--hb-text);
}

.hb-cpage__body {
        padding: 18px 0 72px;
}

.hb-cpage__body h2 {
        margin: 34px 0 12px;
        font-size: 22px;
        font-weight: 800;
        color: var(--hb-ink);
}

.hb-cpage__body h3 {
        margin: 26px 0 10px;
        font-size: 17px;
        font-weight: 800;
        color: var(--hb-ink);
}

.hb-cpage__body p {
        margin: 0 0 14px;
        font-size: 15px;
        line-height: 2.2;
        color: var(--hb-text);
}

.hb-cpage__body ul,
.hb-cpage__body ol {
        margin: 0 0 18px;
        padding-inline-start: 22px;
}

.hb-cpage__body li {
        font-size: 15px;
        line-height: 2.1;
        color: var(--hb-text);
}

/* domain search form (offer + domain pages) */

.hb-dsearch {
        display: flex;
        align-items: stretch;
        gap: 0;
        max-width: 620px;
        background: #fff;
        border: 1px solid var(--hb-line);
        border-radius: 16px;
        padding: 8px;
        box-shadow: var(--hb-shadow-sm);
}

.hb-dsearch input[type="text"] {
        flex: 1;
        min-width: 0;
        border: 0;
        outline: none;
        background: transparent;
        padding: 10px 16px;
        font-size: 15px;
        color: var(--hb-ink);
        font-family: inherit;
}

.hb-dsearch select {
        border: 0;
        outline: none;
        background: var(--hb-bg-soft);
        border-inline-start: 1px solid var(--hb-line);
        border-radius: 10px;
        padding: 0 12px;
        font-size: 14px;
        color: var(--hb-ink);
        font-family: inherit;
        cursor: pointer;
}

.hb-dsearch .hb-btn {
        border-radius: 11px;
        padding: 10px 22px;
}

.hb-dsearch__price {
        margin-inline-start: auto;
        display: flex;
        align-items: center;
        padding: 0 14px 0 4px;
        font-size: 14px;
        font-weight: 800;
        color: var(--hb-primary);
        white-space: nowrap;
}

.hb-dsearch__price small {
        font-weight: 500;
        color: var(--hb-muted);
}

/* alternating info rows (domain page) */

.hb-rows {
        padding: 20px 0 72px;
}

.hb-rows__item {
        display: flex;
        align-items: center;
        gap: 40px;
        padding: 30px 0;
}

.hb-rows__item + .hb-rows__item {
        border-top: 1px dashed var(--hb-line);
}

.hb-rows__body {
        flex: 1;
        min-width: 0;
}

.hb-rows__body h2 {
        margin: 0 0 8px;
        font-size: 21px;
        font-weight: 800;
        color: var(--hb-ink);
}

.hb-rows__body p {
        margin: 0;
        font-size: 14.5px;
        line-height: 2.15;
        color: var(--hb-text);
}

.hb-rows__art {
        flex-shrink: 0;
        max-width: 300px;
}

.hb-rows__art img {
        display: block;
        width: 100%;
        height: auto;
}

/* gift badges (offer page) */

.hb-gifts {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 18px;
}

.hb-gift {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        background: #fff;
        border: 1px solid var(--hb-line);
        border-radius: 18px;
        padding: 24px 14px 20px;
        box-shadow: var(--hb-shadow-sm);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hb-gift:hover {
        transform: translateY(-5px);
        box-shadow: var(--hb-shadow-md);
}

.hb-gift__name {
        font-size: 21px;
        font-weight: 900;
        color: var(--hb-primary);
        direction: ltr;
}

.hb-gift__old {
        font-size: 13px;
        color: var(--hb-muted);
        text-decoration: line-through;
}

.hb-gift__new {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 14px;
        border-radius: 999px;
        background: rgba(189, 210, 182, 0.28);
        color: #4E584B;
        font-size: 13px;
        font-weight: 800;
}

/* hosting type grid (host page) */

.hb-types {
        padding: 40px 0 72px;
}

.hb-types__grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
}

.hb-type {
        display: flex;
        flex-direction: column;
        background: #fff;
        border: 1px solid var(--hb-line);
        border-radius: 20px;
        padding: 24px 22px;
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hb-type:hover {
        transform: translateY(-5px);
        box-shadow: var(--hb-shadow-md);
        border-color: rgba(129, 166, 198, 0.6);
}

.hb-type__icon {
        display: grid;
        place-items: center;
        width: 52px;
        height: 52px;
        border-radius: 14px;
        background: var(--hb-grad);
        color: #fff;
        margin-bottom: 14px;
        box-shadow: 0 8px 20px rgba(129, 166, 198, 0.45);
}

.hb-type h3 {
        margin: 0 0 6px;
        font-size: 16.5px;
        font-weight: 800;
        color: var(--hb-ink);
}

.hb-type p {
        margin: 0 0 14px;
        font-size: 13.2px;
        line-height: 2;
        color: var(--hb-muted);
}

.hb-type__go {
        margin-top: auto;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 13.5px;
        font-weight: 700;
        color: var(--hb-primary);
}

.hb-type__go .hb-ic {
        transition: transform 0.2s ease;
}

.hb-type:hover .hb-type__go .hb-ic {
        transform: translateX(-4px);
}

/* comments wrapper on pages */

.hb-pcomments {
        padding: 0 0 80px;
}

.hb-pcomments .comments-area {
        max-width: 860px;
        margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
        .hb-plans__grid {
                grid-template-columns: repeat(2, 1fr);
        }
        .hb-plans__grid--c3 {
                grid-template-columns: repeat(2, 1fr);
        }
        .hb-gifts {
                grid-template-columns: repeat(3, 1fr);
        }
        .hb-types__grid {
                grid-template-columns: repeat(2, 1fr);
        }
}

@media (max-width: 991.98px) {
        .hb-phero__inner {
                flex-direction: column-reverse;
                gap: 24px;
        }
        .hb-phero__art {
                max-width: 340px;
        }
        .hb-phero__content h1 {
                font-size: 30px;
        }
        .hb-managed__card {
                flex-direction: column;
                gap: 22px;
                padding: 30px 24px;
        }
        .hb-managed__art {
                max-width: 250px;
        }
        .hb-whyus__inner {
                flex-direction: column-reverse;
                gap: 24px;
        }
        .hb-whyus__art {
                max-width: 300px;
        }
        .hb-rows__item {
                flex-direction: column;
                gap: 18px;
        }
        .hb-rows__art {
                max-width: 240px;
        }
}

@media (max-width: 575.98px) {
        .hb-phero {
                padding: 34px 0 46px;
        }
        .hb-phero__content h1 {
                font-size: 26px;
        }
        .hb-phero__actions .hb-btn {
                width: 100%;
                justify-content: center;
        }
        .hb-plans__grid,
        .hb-plans__grid--c3 {
                grid-template-columns: 1fr;
        }
        .hb-checks {
                grid-template-columns: 1fr;
        }
        .hb-gifts {
                grid-template-columns: 1fr;
        }
        .hb-types__grid {
                grid-template-columns: 1fr;
        }
        .hb-dsearch {
                flex-direction: column;
                gap: 10px;
                border-radius: 18px;
        }
        .hb-dsearch input[type="text"] {
                padding: 12px 14px;
        }
        .hb-dsearch select {
                border: 0;
                border-radius: 10px;
                padding: 10px 12px;
                width: 100%;
        }
        .hb-dsearch .hb-btn {
                width: 100%;
                justify-content: center;
        }
        .hb-dsearch__price {
                margin: 0;
                justify-content: center;
                padding: 0;
        }
}

@media (prefers-reduced-motion: reduce) {
        .hb-price,
        .hb-more a,
        .hb-gift,
        .hb-type,
        .hb-type__go .hb-ic {
                transition: none;
        }
}

/* ==========================================================================
   VPS Land (سرور مجازی خارج) — page-vpsland.php
   Country-card listing for foreign VPS locations. Depends on shared tokens
   and components from style.css (.hb-btn, .hb-pill, .hb-feature...).
   ========================================================================== */

.hb-vp-section {
        padding: 6px 0 72px;
}

.hb-vp-section + .hb-vp-section {
        padding-top: 10px;
}

.hb-vp-head {
        max-width: 620px;
        margin: 0 auto 36px;
        text-align: center;
}

.hb-vp-head__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        margin-bottom: 12px;
        border-radius: 14px;
        background: rgba(129, 166, 198, 0.22);
        color: var(--hb-primary);
}

.hb-vp-head h2 {
        margin: 0 0 8px;
        font-size: 25px;
        font-weight: 800;
        color: var(--hb-ink);
}

.hb-vp-head p {
        margin: 0;
        font-size: 14.5px;
        line-height: 1.9;
        color: var(--hb-muted);
}

.hb-vp-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
        gap: 22px;
        align-items: stretch;
}

.hb-vp-card {
        display: flex;
        flex-direction: column;
        background: #fff;
        border: 1px solid var(--hb-line);
        border-radius: 18px;
        padding: 22px 20px 20px;
        box-shadow: var(--hb-shadow-sm);
        transition: transform var(--hb-t), box-shadow var(--hb-t), border-color var(--hb-t);
}

.hb-vp-card:hover {
        transform: translateY(-4px);
        border-color: rgba(129, 166, 198, 0.7);
        box-shadow: 0 18px 42px rgba(129, 166, 198, 0.26);
}

.hb-vp-card__head {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 14px;
}

.hb-vp-card__head img {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        object-fit: cover;
        border: 1px solid var(--hb-line);
        flex-shrink: 0;
}

.hb-vp-card__head h3 {
        margin: 0;
        font-size: 17px;
        font-weight: 800;
        color: var(--hb-ink);
        line-height: 1.5;
}

.hb-vp-card__price {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 6px;
        margin: 0 0 14px;
        font-size: 14px;
        color: var(--hb-muted);
}

.hb-vp-card__price small {
        font-size: 12.5px;
        font-weight: 600;
}

.hb-vp-card__num {
        font-size: 23px;
        font-weight: 900;
        color: var(--hb-primary);
        line-height: 1;
}

.hb-vp-card__specs {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 0 0 18px;
}

.hb-vp-card__specs li {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 5px 10px;
        border-radius: 8px;
        background: var(--hb-bg-soft);
        font-size: 11.5px;
        font-weight: 600;
        color: var(--hb-text);
}

.hb-vp-card__specs li .hb-ic {
        color: var(--hb-sage-dark);
}

.hb-vp-card .hb-btn--block {
        margin-top: auto;
}

@media (max-width: 991.98px) {
        .hb-vp-grid {
                grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
                gap: 16px;
        }
        .hb-vp-section {
                padding: 4px 0 56px;
        }
}

@media (max-width: 575.98px) {
        .hb-vp-grid {
                grid-template-columns: 1fr 1fr;
                gap: 12px;
        }
        .hb-vp-card {
                padding: 16px 14px 14px;
        }
        .hb-vp-card__head img {
                width: 36px;
                height: 36px;
        }
        .hb-vp-card__head h3 {
                font-size: 14.5px;
        }
        .hb-vp-card__num {
                font-size: 19px;
        }
        .hb-vp-card__specs li {
                font-size: 10.5px;
                padding: 4px 8px;
        }
}

@media (max-width: 389.98px) {
        .hb-vp-grid {
                grid-template-columns: 1fr;
        }
}
