/* About, Support, Terms — shared page styles */

.page-aside-title {
    font-weight: 800;
    font-size: 20px;
    line-height: 35px;
    color: #0A0B0F;
    margin: 0 0 16px;
    text-align: right;
}

.page-search-meta {
    margin: 16px 0 0;
    font-size: 16px;
    line-height: 24px;
    color: #A2AAC3;
}

.page-hero {
    padding: 32px 0 48px;
}

.page-hero-top {
    margin-bottom: 60px;
}

.page-hero-title {
    margin: 0 0 18px;
    font-weight: 800;
    font-size: 44px;
    line-height: 64px;
    letter-spacing: -0.01em;
    color: #0A0B0F;
}

.page-hero-title--sm {
    font-size: 32px;
    line-height: 44px;
}

.page-hero-lead {
    margin: 0;
    font-weight: 500;
    font-size: 18px;
    line-height: 28px;
    color: #282E3E;
}

.page-hero-line {
    width: 60px;
    margin: 30px 0;
    border: none;
    border-top: 2px solid #E8EAF0;
}

.page-hero-desc {
    margin: 0;
    font-weight: 300;
    font-size: 14px;
    line-height: 25px;
    color: #282E3E;
}

.page-hero-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 31px;
}

.page-hero-image {
    width: 100%;
    height: 445px;
    object-fit: cover;
    border-radius: 21px;
    background: #F6F7FB;
    display: block;
}

.page-section-title {
    margin: 0;
    font-weight: 700;
    font-size: 28px;
    line-height: 44px;
    letter-spacing: -0.03em;
    color: #0A0B0F;
    text-align: right;
}

.page-section-title--sm {
    font-size: 18px;
    line-height: 28px;
}

.page-section-subtitle {
    margin: 8px 0 0;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: -0.03em;
    color: #838EAF;
    text-align: right;
}

.page-section-desc {
    margin: 0;
    font-weight: 400;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: -0.03em;
    color: #505B7C;
    text-align: right;
}

.page-section-head {
    margin-bottom: 48px;
    text-align: right;
}

.page-section-head-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 28px;
    width: 100%;
}

.page-stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 54px 32px;
    border: 1px solid #E0E3EB;
    border-radius: 25px;
    background: #fff;
}

.page-stat-value {
    font-weight: 800;
    font-size: 44px;
    line-height: 64px;
    letter-spacing: -0.01em;
    color: #0A0B0F;
}

.page-stat-label {
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: -0.03em;
    color: #0A0B0F;
    text-align: right;
}

.page-contact-card {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 26px;
    min-height: 272px;
    padding: 48px 40px;
    border: 1px solid #E0E3EB;
    border-radius: 25px;
    background: #fff;
}

.page-contact-card-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #F5F7FC;
    color: var(--color-primary);
    font-size: 24px;
}

.page-contact-card-title {
    margin: 0;
    font-weight: 400;
    font-size: 20px;
    line-height: 30px;
    color: #0A0B0F;
}

.page-contact-card-link {
    font-weight: 600;
    font-size: 16px;
    color: var(--color-primary);
}

.others-social-row .social-link {
    background: #F5F7FC;
    color: #0A0B0F;
    border: 1px solid #E0E3EB;
}

.others-social-row .social-link:hover {
    color: var(--color-primary);
}

.others-social-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.others-social-row .social-link {
    width: 44px;
    height: 44px;
}

/* Support */
.support-page .block {
    padding: 48px 0;
}

.support-faq-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
}

.support-faq-side {
    flex: 0 0 397px;
    max-width: 100%;
}

.support-faq-main {
    flex: 1 1 0;
    min-width: 0;
}

.support-faq-head {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 32px;
}

.support-faq-tabs {
    flex-wrap: wrap;
    gap: 8px;
}

.support-faq-tabs button.tab {
    font: inherit;
    background: transparent;
    cursor: pointer;
}

.support-faq-tabs .tab {
    padding: 18px;
    border: 1.5px solid #E0E3EB;
    border-radius: 16px;
    font-size: 14px;
    line-height: 25px;
    white-space: nowrap;
}

.support-faq-tabs .tab.tab-active {
    background: #0A0B0F;
    border-color: #0A0B0F;
    color: #fff;
    font-weight: 700;
}

.page-search-form {
    width: 100%;
    max-width: 100%;
    height: 65px;
    padding: 20px 28px;
    border: 1.5px solid #E0E3EB;
    border-radius: 12px;
}

.support-faq-search,
.terms-search-form {
    width: 100%;
    max-width: 100%;
}

.support-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.support-accordion .accordion-item {
    margin: 0;
    border: 1px solid #E8EAF0;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.support-accordion .accordion-item.active {
    box-shadow: 0 49px 72.5px 15px rgba(166, 164, 171, 0.11);
    border-color: #fff;
}

.support-accordion .accordion-btn {
    gap: 62px;
    padding: 26px 49px;
    font-weight: 400;
    font-size: 14px;
    line-height: 25px;
    letter-spacing: -0.03em;
    color: #838EAF;
    text-align: right;
}

.support-accordion .accordion-item.active > .accordion-btn {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #0A0B0F;
}

.support-accordion .accordion-btn::after {
    content: "\e912";
    flex: 0 0 41px;
    width: 41px;
    height: 41px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E0E3EB;
    border-radius: 50%;
    font-size: 12px;
    color: #0A0B0F;
    transform: rotate(90deg);
}

.support-accordion .accordion-item.active > .accordion-btn::after {
    background: #0A0B0F;
    border-color: #0A0B0F;
    color: #fff;
    transform: rotate(0deg);
}

.support-accordion .accordion-body {
    padding: 0 49px 30px;
}

.support-accordion .accordion-item.active > .accordion-body {
    border-top: 1px solid #E9E9E9;
    margin: 0 49px;
    padding: 16px 0 30px;
}

.support-accordion .accordion-body > p {
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    font-weight: 400;
    font-size: 14px;
    line-height: 25px;
    letter-spacing: -0.03em;
    color: #838EAF;
}

.support-contact-title {
    margin: 0 0 46px;
}

.support-contact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
}

.support-contact-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    padding: 48px 40px;
    border: 1px solid #E0E3EB;
    border-radius: 25px;
    background: #fff;
}

.support-contact-card-top {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.support-contact-card-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2437AA;
}

.support-contact-card-icon .icons-shop {
    font-size: 32px;
    line-height: 1;
}

.support-contact-card-icon img {
    width: 32px;
    height: 32px;
    display: block;
}

.support-contact-card-title {
    margin: 0;
    font-weight: 400;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: -0.03em;
    color: #0A0B0F;
    text-align: right;
}

.support-contact-card-link {
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.02em;
    color: #0A0B0F;
    text-decoration: underline;
}

.support-faq-search-input::-webkit-search-cancel-button {
    cursor: pointer;
}

.support-faq-search-empty {
    margin: 12px 0 0;
    padding: 16px 20px;
    border-radius: 12px;
    background: #F5F7FC;
    color: #505B7C;
    font-size: 14px;
    line-height: 24px;
    text-align: right;
}

.support-accordion .accordion-item.is-search-match > .accordion-btn {
    color: #0A0B0F;
}

/* Terms */
.terms-page .block {
    padding: 48px 0;
}

.terms-index-section {
    padding-top: 24px;
}

.terms-index-title {
    margin: 0 0 23px;
}

.terms-index {
    padding: 35px 46px;
    background: #F5F7FC;
    border-radius: 20px;
}

.terms-index-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 60px;
}

.terms-index-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
    letter-spacing: -0.02em;
    color: #0A0B0F;
    text-align: right;
}

.terms-index-link.is-active {
    font-weight: 700;
    color: #2D45D2;
}

.terms-index-link-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    order: -1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0A0B0F;
}

.terms-index-link-icon .icons-shop {
    font-size: 24px;
    line-height: 1;
}

.terms-index-link.is-active .terms-index-link-icon {
    color: #2D45D2;
}

.terms-content-block {
    scroll-margin-top: 120px;
}

.terms-content-block + .terms-content-block {
    margin-top: 64px;
    padding-top: 64px;
    border-top: 1px solid #E8ECF5;
}

.terms-content-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

.support-page .page-hero-top,
.terms-page .page-hero-top {
    margin-bottom: 0;
}

.terms-index-section .page-aside-title {
    margin-bottom: 23px;
}

.terms-search-form {
    flex: 0 0 397px;
    max-width: 100%;
    width: 397px;
}

/* About page */
.about-page .block {
    padding: 48px 0;
    overflow: hidden;
}

.about-page .page-hero-top {
    margin-bottom: 60px;
}

.about-stats .page-section-title {
    margin-bottom: 40px;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

.about-contact-inner {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.about-social-wrap {
    flex: 0 0 auto;
}

.about-contact-main {
    flex: 1 1 0;
    min-width: 0;
}

.about-contact-divider {
    flex: 0 0 2px;
    width: 2px;
    margin: 0 64px;
    background: #EAECFB;
    align-self: stretch;
    min-height: 298px;
}

.about-social {
    display: flex;
    flex-direction: column;
    gap: 49px;
    width: 331px;
    max-width: 100%;
}

.about-social-title {
    margin: 0;
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    color: #0A0B0F;
}

.about-social-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.about-social-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #F5F7FC;
    color: #0A0B0F;
    font-size: 22px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.about-social-icon.is-active,
.about-social-icon:hover {
    background: #2437AA;
    color: #fff;
}

.about-email {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.about-email-label {
    font-weight: 700;
    font-size: 20px;
    line-height: 35px;
    color: #0A0B0F;
}

.about-email-value {
    font-weight: 700;
    font-size: 18px;
    line-height: 28px;
    color: #0A0B0F;
}

.about-contact-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 52px;
    margin-bottom: 34px;
}

.about-info-card {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 48px 40px;
    border: 1px solid #E0E3EB;
    border-radius: 25px;
    background: #fff;
}

.about-info-card-icon {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #EAECFB;
    color: #2D45D2;
    font-size: 24px;
}

.about-info-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.about-info-card-title {
    margin: 0;
    font-weight: 700;
    font-size: 20px;
    line-height: 35px;
    color: #0A0B0F;
}

.about-info-card-text {
    margin: 0;
    font-weight: 400;
    line-height: 28px;
    color: #282E3E;
}

.about-support-links {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
}

.about-support-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    line-height: 35px;
    color: #0A0B0F;
}

.about-support-link img {
    width: 24px;
    height: 24px;
}

.about-map-section {
    padding-top: 24px;
}

.about-map {
    position: relative;
    border-radius: 21px;
    overflow: hidden;
    background: #F6F7FB;
}

.about-map-image {
    width: 100%;
    display: block;
    height: 521px;
    object-fit: cover;
}

.about-map-pin {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 41px;
    height: 52px;
    transform: translate(-50%, -85%);
}

.about-map-box {
    position: absolute;
    right: 48px;
    bottom: 48px;
    width: min(100% - 48px, 480px);
    padding: 40px 35px;
    background: #fff;
    border-radius: 21px;
    box-shadow: 0 12px 40px rgba(10, 11, 15, 0.08);
}

.about-map-box h3 {
    margin: 0 0 8px;
    font-weight: 700;
    font-size: 19px;
    line-height: 1.92;
    letter-spacing: -0.03em;
    color: #000;
}

.about-map-box p {
    margin: 0;
    font-weight: 500;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: -0.04em;
    color: #707783;
}

.about-team .page-section-head {
    margin-bottom: 39px;
}

.about-team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 66px 32px;
}

.about-team-card {
    
}

.about-team-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 25px;
    overflow: hidden;
    background: #F6F7FB;
    margin-bottom: 30px;
}

.about-team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-team-name {
    margin: 0;
    font-weight: 700;
    font-size: 20px;
    line-height: 35px;
    letter-spacing: -0.02em;
    color: #000;
    text-align: right;
    width: 100%;
}

.about-team-role {
    margin: 0;
    font-weight: 400;
    line-height: 28px;
    letter-spacing: -0.02em;
    color: #505B7C;
    text-align: right;
    width: 100%;
}

@media (max-width: 991.98px) {
    .page-hero-title {
        font-size: 32px;
        line-height: 44px;
    }

    .page-hero-image {
        height: 280px;
    }

    .about-stats-grid,
    .about-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-contact-cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-contact-inner {
        flex-direction: column;
    }

    .about-contact-divider {
    height: 1px;
    width: 100%;
    min-height: 0;
    margin: 40px 0;
    flex: 0 0 1px;
    }

    .about-social {
        width: 100%;
        margin-bottom: 32px;
    }

    .page-stat-card {
        min-height: 200px;
        padding: 32px 24px;
    }

    .terms-index-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .support-faq-layout {
        flex-direction: column;
    }

    .support-faq-side {
        flex: 0 0 auto;
        width: 100%;
        order: -1;
    }

    .support-contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .terms-content-head {
        flex-direction: column;
        align-items: stretch;
    }

    .terms-search-form {
        width: 100%;
        flex: 0 0 auto;
    }
}

@media (max-width: 575.98px) {
    .page-hero-gallery {
        display: flex;
        overflow: auto;
        margin: 0 calc(-1 * var(--container-pading));
        gap: 0;
    }
    .page-hero-image {
        height: 220px;
        margin-right:20px;
        margin-left: 0
    }

    .about-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 10px;
    }
    .about-stats-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 20px 10px
    }
    .about-map-box {
        position: static;
        width: 100%;
        padding: 20px;
        border-radius: 0;
    }

    .about-map-image {
        height: 280px;
    }

    .about-support-links {
        flex-direction: column;
        gap: 16px;
    }

    .page-hero-title--sm {
        font-size: 28px;
    }

    .page-stat-card,
    .page-contact-card {
        min-height: auto;
        padding: 28px 24px;
    }
    
    .terms-index {
        padding: 24px;
    }

    .terms-index-grid {
        grid-template-columns: 1fr;
    }

    .support-contact-grid {
        grid-template-columns: 1fr;
    }

    .page-section-head-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .support-accordion .accordion-btn {
        gap: 20px;
        padding: 20px 24px;
    }

    .support-accordion .accordion-body {
        padding: 0 24px 20px;
    }

    .support-accordion .accordion-item.active > .accordion-body {
        margin: 0 24px;
        padding: 16px 0 20px;
    }

    .support-contact-card {
        min-height: auto;
        padding: 28px 24px;
    }

    .others-map-box {
        position: static;
        max-width: 100%;
        margin-top: 16px;
    }
    .page-section-title {
        font-size: 24px;
    }
    .about-team-photo {
        margin-bottom: 15px;
    }
    .about-social-icons {
        gap: 7px;
    }
    .about-social-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    .about-info-card {
        flex-direction: row;
        min-height: 0;
    }
    .about-info-card-body {flex:1;order: -1;}
    .about-team-name {font-size : 18px}
}