*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Segoe UI", sans-serif;
    color: #fff;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, .5), transparent 50%),
        radial-gradient(circle at bottom right, rgba(168, 85, 247, .45), transparent 50%),
        linear-gradient(135deg, #1e293b, #334155 50%, #4338ca);
    background-attachment: fixed;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 35px;
    transition: .4s ease;
}

.header.scrolled {
    padding: 15px 35px;
    background: rgba(15, 23, 42, .65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .3px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
    transition: .3s ease;
}

.logo i {
    color: #fbbf24;
    font-size: 25px;
    transition: .3s ease;
}

.logo:hover {
    color: #fff;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .13);
    border-color: rgba(251, 191, 36, .4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25), 0 0 20px rgba(251, 191, 36, .15);
}

.logo:hover i {
    transform: scale(1.1) rotate(-5deg);
    color: #f59e0b;
}

.services-section {
    padding: 150px 0 60px;
}

.payment-section {
    padding: 60px 0 120px;
}

.section-title {
    margin-bottom: 40px;
}

.section-title span {
    display: inline-block;
    margin-bottom: 5px;
    color: #fbbf24;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.section-title h2 {
    margin-top: 8px;
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
}

.service-card,
.payment-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 40px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
    transition: .5s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, .08),
        transparent 35%
    );
    opacity: 0;
    transition: opacity .4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover,
.payment-card:hover {
    transform: translateY(-8px);
    border-color: rgba(251, 191, 36, .35);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, .3),
        0 0 40px rgba(251, 191, 36, .08);
}

.service-icon,
.payment-icon,
.legal-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 10px 30px rgba(251, 191, 36, .2);
}

.service-icon,
.payment-icon {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    font-size: 28px;
    transition: .4s ease;
}

.service-card:hover .service-icon {
    transform: translateY(-4px) rotate(-3deg);
    box-shadow: 0 15px 35px rgba(251, 191, 36, .35);
}

.payment-card:hover .payment-icon {
    transform: translateY(-4px) rotate(3deg);
    box-shadow: 0 15px 35px rgba(251, 191, 36, .35);
}

.service-content,
.payment-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.service-content h3,
.payment-content h3 {
    margin-bottom: 20px;
    color: #fff;
    font-size: 28px;
    line-height: 1.2;
}

.service-content p,
.payment-content > p {
    max-width: 850px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, .75);
    font-size: 17px;
    line-height: 1.7;
}

.service-final-text,
.payment-thanks {
    color: rgba(255, 255, 255, .9) !important;
    font-weight: 600;
}

.payment-thanks {
    margin-top: 25px;
    margin-bottom: 0 !important;
}

.payment-details {
    margin-top: 30px;
    padding: 25px;
    background: rgba(0, 0, 0, .16);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
}

.payment-details h4 {
    margin-bottom: 20px;
    color: #fbbf24;
    font-size: 18px;
}

.requisites {
    display: flex;
    flex-direction: column;
}

.requisite-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.requisite-row:first-child {
    padding-top: 0;
}

.requisite-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.requisite-row span {
    color: rgba(255, 255, 255, .55);
    font-size: 15px;
}

.requisite-row strong {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: right;
}

.iban {
    color: #fbbf24 !important;
    letter-spacing: .5px;
}

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity .8s ease, transform .8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.legal-link-wrapper {
    display: flex;
    justify-content: center;
    padding: 25px 20px 50px;
}

.legal-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 210px;
    padding: 11px 20px;
    color: rgba(255, 255, 255, .78);
    font: 500 14px inherit;
    letter-spacing: .2px;
    cursor: pointer;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(251, 191, 36, .55);
    border-radius: 10px;
    outline: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, .12);
    transition: .3s ease;
}

.legal-link i {
    color: #fbbf24;
    font-size: 16px;
    transition: .3s ease;
}

.legal-link::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 18px;
    right: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, .8), transparent);
    opacity: .6;
}

.legal-link:hover {
    color: #fff;
    background: rgba(251, 191, 36, .09);
    border-color: rgba(251, 191, 36, .9);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .22), 0 0 22px rgba(251, 191, 36, .08);
    transform: translateY(-2px);
}

.legal-link:hover i {
    transform: scale(1.12);
}

.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
}

.legal-modal.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.legal-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, .84);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.legal-modal-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 850px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    background: linear-gradient(145deg, rgba(30, 41, 59, .98), rgba(15, 23, 42, .98));
    border: 1px solid rgba(251, 191, 36, .18);
    border-radius: 24px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, .55), 0 0 50px rgba(251, 191, 36, .04);
    transform: translateY(30px) scale(.96);
    transition: transform .35s ease;
}

.legal-modal.active .legal-modal-content {
    transform: translateY(0) scale(1);
}

.legal-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: rgba(255, 255, 255, .65);
    font-size: 15px;
    cursor: pointer;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    transition: .3s ease;
}

.legal-modal-close:hover {
    color: #fbbf24;
    background: rgba(251, 191, 36, .12);
    border-color: rgba(251, 191, 36, .4);
    transform: rotate(90deg);
}

.legal-modal-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-right: 50px;
    margin-bottom: 32px;
}

.legal-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 24px;
}

.legal-modal-header span {
    display: block;
    margin-bottom: 4px;
    color: #fbbf24;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.legal-modal-header h2 {
    margin: 0;
    color: #fff;
    font-size: 30px;
    line-height: 1.2;
}

.legal-modal-body {
    color: rgba(255, 255, 255, .75);
    font-size: 16px;
    line-height: 1.7;
}

.legal-modal-body p {
    margin-bottom: 14px;
}

.legal-modal-body h3 {
    margin: 30px 0 12px;
    color: #fff;
    font-size: 19px;
    line-height: 1.3;
}

.legal-modal-body h3:first-child {
    margin-top: 0;
}

.legal-modal-body a {
    color: #fbbf24;
    text-decoration: none;
    transition: color .3s ease;
}

.legal-modal-body a:hover {
    color: #f59e0b;
    text-decoration: underline;
}

.legal-bank-details {
    margin-top: 15px;
    padding: 20px;
    background: rgba(0, 0, 0, .18);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 16px;
}

.legal-bank-details p {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 13px 0;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.legal-bank-details p:first-child {
    padding-top: 0;
}

.legal-bank-details p:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.legal-bank-details span {
    color: rgba(255, 255, 255, .5);
    font-size: 14px;
}

.legal-bank-details strong {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: right;
}

.legal-modal-content::-webkit-scrollbar {
    width: 7px;
}

.legal-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, .03);
    border-radius: 10px;
}

.legal-modal-content::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, .35);
    border-radius: 10px;
}

.legal-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(251, 191, 36, .6);
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

    .header.scrolled {
        padding: 12px 20px;
    }

    .logo {
        gap: 9px;
        padding: 10px 14px;
        font-size: 16px;
    }

    .logo i {
        font-size: 21px;
    }

    .services-section {
        padding: 120px 0 70px;
    }

    .payment-section {
        padding: 70px 0 90px;
    }

    .section-title {
        margin-bottom: 30px;
    }

    .section-title h2 {
        font-size: 34px;
    }

    .service-card,
    .payment-card {
        gap: 20px;
        padding: 30px;
    }

    .service-content h3,
    .payment-content h3 {
        font-size: 24px;
    }

    .service-content p,
    .payment-content > p {
        font-size: 16px;
    }

    .requisite-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .requisite-row strong {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .container {
        width: 92%;
    }

    .header {
        padding: 12px 15px;
    }

    .header.scrolled {
        padding: 10px 15px;
    }

    .logo {
        width: 100%;
        justify-content: center;
        font-size: 15px;
    }

    .services-section {
        padding: 110px 0 60px;
    }

    .payment-section {
        padding: 60px 0 70px;
    }

    .section-title h2 {
        font-size: 30px;
    }

    .section-title span {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .service-card,
    .payment-card {
        flex-direction: column;
        padding: 25px;
        border-radius: 20px;
    }

    .service-icon,
    .payment-icon {
        width: 58px;
        height: 58px;
        border-radius: 16px;
        font-size: 24px;
    }

    .service-content h3,
    .payment-content h3 {
        margin-bottom: 15px;
        font-size: 22px;
    }

    .service-content p,
    .payment-content > p {
        font-size: 15px;
        line-height: 1.6;
    }

    .payment-details {
        padding: 20px;
    }

    .requisite-row strong {
        font-size: 14px;
        word-break: break-word;
    }

    .iban {
        letter-spacing: 0;
        word-break: break-all;
    }

    .legal-link-wrapper {
        padding: 15px 15px 35px;
    }

    .legal-link {
        min-width: 200px;
        padding: 10px 17px;
        font-size: 13px;
    }

    .legal-modal {
        padding: 15px;
    }

    .legal-modal-content {
        max-height: 90vh;
        padding: 25px 20px;
        border-radius: 20px;
    }

    .legal-modal-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
    }

    .legal-modal-header {
        gap: 12px;
        margin-bottom: 25px;
        padding-right: 40px;
    }

    .legal-modal-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 20px;
    }

    .legal-modal-header span {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .legal-modal-header h2 {
        font-size: 23px;
    }

    .legal-modal-body {
        font-size: 15px;
        line-height: 1.6;
    }

    .legal-modal-body h3 {
        margin-top: 25px;
        font-size: 17px;
    }

    .legal-bank-details {
        padding: 15px;
    }

    .legal-bank-details p {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .legal-bank-details span {
        font-size: 13px;
    }

    .legal-bank-details strong {
        font-size: 14px;
        text-align: left;
        word-break: break-word;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}