/* Monexy — визуальная копия */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; outline: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #515251;
    background: #fff;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Header */
.header {
    position: relative;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    z-index: 100;
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.logo-link { display: block; }
.logo-img { max-width: 130px; height: auto; }
.header__nav { flex: 1; }
.nav__list { list-style: none; padding: 0; margin: 0; }
.header__right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.header__right .header-link {
    color: #000;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
.header__right .header-link:hover { opacity: 0.8; }
.header__right .btn--outline {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
}
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: opacity 0.2s;
}
.btn--outline {
    border: 2px solid #51555c;
    color: #51555c;
    background: transparent;
}
.btn--primary {
    background: #e85d04;
    color: #fff;
    border: none;
}
.btn--primary:hover { opacity: 0.85; }
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.burger-line {
    width: 24px;
    height: 2px;
    background: #333;
}

/* Grid */
.grid { display: grid; gap: 24px; }
.grid--hero {
    grid-template-columns: 1fr 2fr;
    align-items: center;
    padding: 48px 0 96px;
    gap: 48px;
}
.grid--reverse .hero__content { order: 1; }
.grid--reverse .hero__image-wrap { order: 0; }
.grid--steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}
.grid--stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    text-align: center;
}

/* Hero / Card section */
.card-section { background: #fff; }
.hero__image-wrap { text-align: center; }
.hero__image { margin: 0 auto; }
.hero__content { padding: 0; }
.hero__title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
}
.hero__subtitle {
    color: #6b7280;
    margin-bottom: 32px;
    font-size: 1.125rem;
}
.hero__content .btn { font-size: 1.125rem; padding: 16px 48px; }

/* Section */
.section { padding: 96px 0; }
.section--gray { background: #f3f4f6; }
.section__title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 64px;
    color: #000;
}

/* Step cards */
.step-card {
    text-align: center;
    padding: 24px 16px;
}
.step-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    display: block;
}
.step-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #000;
}
.step-card__text { color: #6b7280; }
.step-card__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-top: 16px;
}
.step-card__link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #115a69;
    background: rgba(17, 90, 105, 0.08);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.step-card__link:hover {
    background: rgba(17, 90, 105, 0.15);
    color: #0e4a57;
}

/* Stats */
.stat-item__number {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}
.stat-item__label { color: #6b7280; }

/* FAQ */
.faq { padding: 64px 0 96px; }
.faq__box {
    max-width: 36rem;
    margin: 0 auto;
}
.accordion-item {
    border-bottom: 1px solid #e5e7eb;
}
.accordion-item__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}
.accordion-arrow {
    flex-shrink: 0;
    margin-left: 12px;
    transition: transform 0.2s;
}
.accordion-item.open .accordion-arrow { transform: rotate(180deg); }
.accordion-item__text {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.2s ease;
    color: #6b7280;
    padding: 0;
    line-height: 1.6;
}
.accordion-item.open .accordion-item__text {
    max-height: 300px;
    opacity: 1;
    padding: 0 0 16px;
}

/* Footer */
.footer {
    padding: 48px 0 24px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
}
.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 16px;
}
.footer__col a { color: inherit; }
.footer__text { margin-top: 8px; font-size: .875rem; }
.footer__text a:hover { text-decoration: underline; }
.footer__logo { margin-bottom: 12px; }
.footer__contacts { text-align: right; }
.footer__link { display: block; font-weight: 600; margin-bottom: 8px; font-size: .9375rem; }
.footer__link--email { color: #e85d04; }
.footer__copy {
    margin-top: 12px;
    font-size: .8125rem;
    color: #6b7280;
    font-weight: 400;
}

.footer--payment {
    padding: 32px 0 20px;
}
.footer--payment .footer__inner {
    gap: 16px;
}
.footer--payment .footer__link {
    font-size: .8125rem;
    font-weight: 600;
}
.footer--payment .footer__text {
    font-size: .8125rem;
}
.footer--payment .footer__copy {
    font-size: .75rem;
}

@media (max-width: 1024px) {
    .grid--hero {
        grid-template-columns: 1fr;
        padding: 32px 0 64px;
    }
    .grid--reverse .hero__content,
    .grid--reverse .hero__image-wrap { order: unset; }
    .hero__content { text-align: center; }
    .hero__title { font-size: 2rem; }
    .grid--steps { grid-template-columns: 1fr; }
    .grid--stats { grid-template-columns: 1fr; }
}

/* API page */
.api-page { padding: 48px 0 96px; }
.api-hero {
    margin-bottom: 48px;
    max-width: 42rem;
}
.api-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #000;
    margin-bottom: 16px;
}
.api-hero__text {
    color: #6b7280;
    font-size: 1.125rem;
    line-height: 1.6;
}
.api-section {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e5e7eb;
}
.api-section:last-of-type { border-bottom: none; }
.api-section__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 12px;
}
.api-section__text {
    color: #515251;
    margin-bottom: 12px;
    line-height: 1.6;
}
.api-code {
    background: #f3f4f6;
    border-radius: 8px;
    padding: 16px 20px;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #1f2937;
    margin: 0;
}
.api-code code { font-family: ui-monospace, monospace; white-space: pre; }
.api-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.api-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #515251;
}
.api-list li:last-child { border-bottom: none; }
.api-link { color: #e85d04; font-weight: 500; }
.api-link:hover { text-decoration: underline; }

/* Modal — Поиск транзакций */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}
.modal--open {
    opacity: 1;
    visibility: visible;
}
.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}
.modal__box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    max-width: 28rem;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    padding: 24px;
}
.modal__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.modal__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000;
    margin: 0;
}
.modal__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #000;
    line-height: 1;
}
.modal__lead {
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}
.modal__hint {
    color: #6b7280;
    font-size: 0.9375rem;
    margin-bottom: 20px;
}
.modal__success .modal__hint { margin-bottom: 16px; }
.search-form__row { margin-bottom: 16px; }
.search-form__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}
.search-form__input {
    width: 100%;
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    box-sizing: border-box;
}
.search-form__textarea { resize: vertical; min-height: 80px; }
.search-form__file {
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    background: #f9fafb;
}
.search-form__file-input { position: absolute; width: 0; height: 0; opacity: 0; }
.search-form__file-label {
    cursor: pointer;
    font-size: 0.875rem;
    color: #6b7280;
}
.search-form__file-label span { color: #e85d04; font-weight: 500; }
.search-form__submit {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: #e85d04;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.search-form__submit:hover { opacity: 0.9; }

.login-modal__reg {
    margin-top: 16px;
    text-align: center;
    font-size: 0.875rem;
}
.login-modal__reg a {
    color: #6b7280;
    text-decoration: none;
}
.login-modal__reg a:hover { text-decoration: underline; }

/* Payment page */
.payment-page { padding-bottom: 48px; min-height: calc(100vh - 200px); }
.payment-top {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
}
.payment-top__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.payment-back {
    color: #e85d04;
    font-weight: 500;
    text-decoration: none;
}
.payment-back:hover { text-decoration: underline; }
.payment-amount { font-weight: 700; color: #000; }
.payment-amount__label { margin-right: 8px; color: #6b7280; font-weight: 500; }
.payment-main { padding-top: 32px; max-width: 28rem; margin-left: auto; margin-right: auto; }
.payment-methods__title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}
.payment-methods__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 24px;
    cursor: default;
}
.payment-methods__item--active { border-color: #e85d04; background: #fff8f5; }
.payment-methods__icon {
    width: 40px;
    height: 28px;
    border-radius: 6px;
    background: #e5e7eb;
}
.payment-methods__icon--card {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
}
.payment-methods__text { font-weight: 500; color: #111; }
.payment-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}
.payment-form__top { margin-bottom: 20px; }
.payment-form__benefit-label {
    font-size: 0.9375rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 4px;
}
.payment-form__benefit-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #000;
    text-decoration: none;
}
.payment-form__benefit-name:hover { text-decoration: underline; }
.payment-form__body { margin-bottom: 20px; }
.payment-form__hint {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.5;
}
.payment-form__submit { width: 100%; padding: 14px 24px; font-size: 1rem; }
.payment-form__terms {
    font-size: 0.8125rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.5;
}
.payment-form__terms a { color: #e85d04; text-decoration: none; }
.payment-form__terms a:hover { text-decoration: underline; }
.payment-form__logo { text-align: center; }
.payment-form__logo .logo-img { margin: 0 auto; }

@media (max-width: 768px) {
    .header .container { position: relative; }
    .header__right {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 16px;
        flex-direction: column;
        border-bottom: 1px solid #eee;
        box-shadow: 0 8px 16px rgba(0,0,0,0.08);
        z-index: 101;
    }
    .header__right.open { display: flex; }
    .burger {
        display: flex;
        position: relative;
        z-index: 102;
    }
    .section { padding: 48px 0; }
    .section__title { margin-bottom: 32px; font-size: 1.75rem; }
    .footer__inner { flex-direction: column; }
    .footer__contacts { text-align: left; }
}
