/* CPDA — public page layout */

.topbar {
    color: #d3e4eb;
    background: #071b2d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.topbar .lang,
.topbar .contact-link {
    color: #b7d1dc;
    text-decoration: none;
    transition: color 180ms ease;
}

.topbar .lang {
    font-weight: 750;
    letter-spacing: 0.08em;
}

.topbar .lang.active,
.topbar .lang:hover,
.topbar .contact-link:hover {
    color: var(--accent-cyan);
}

.topbar .sep {
    color: rgba(255, 255, 255, 0.22);
}

.navbar {
    position: sticky;
    z-index: 110;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(219, 231, 238, 0.9);
    box-shadow: 0 8px 28px rgba(16, 42, 67, 0.06);
    backdrop-filter: blur(18px);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
}

.logo {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    color: var(--text-dark);
    font-size: 1.16rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.logo small {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.02em;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    width: 40px;
    height: 40px;
    padding: 0.2rem;
    object-fit: contain;
    background: #f2f8fb;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.55rem 0.75rem;
    color: #486276;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 650;
    transition: background 180ms ease, color 180ms ease;
}

.nav-links a:not(.btn-login):hover {
    color: var(--accent-blue);
    background: #edf5fa;
}

.nav-links .btn-login {
    margin-left: 0.45rem;
}

/* Main homepage hero */
.hero-slider {
    position: relative;
    height: min(560px, 66vh);
    min-height: 430px;
    overflow: hidden;
    background: var(--primary-dark);
}

.hero-slider::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 24, 41, 0.88) 0%, rgba(5, 24, 41, 0.55) 45%, rgba(5, 24, 41, 0.16) 100%),
        linear-gradient(0deg, rgba(5, 24, 41, 0.35), transparent 40%);
    content: "";
    pointer-events: none;
}

.slide {
    position: relative;
    display: none;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}

.slide.active {
    display: flex;
    animation: slideReveal 600ms ease-out;
}

@keyframes slideReveal {
    from { opacity: 0; transform: scale(1.015); }
    to { opacity: 1; transform: scale(1); }
}

.slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.slide-content {
    position: relative;
    z-index: 2;
    width: min(620px, calc(100% - 48px));
    margin-left: max(24px, calc((100% - 1160px) / 2));
    padding: 2.4rem 0;
    color: #fff;
    animation: contentReveal 700ms ease-out both;
}

@keyframes contentReveal {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-content::before {
    display: block;
    width: 56px;
    height: 4px;
    margin-bottom: 1.5rem;
    border-radius: 999px;
    background: var(--accent-cyan);
    content: "";
}

.slide-content h1 {
    max-width: 620px;
    margin-bottom: 1rem;
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.06em;
}

.slide-content p {
    max-width: 520px;
    margin-bottom: 1.8rem;
    color: #d9eef1;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.slider-btn {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 180ms ease, transform 180ms ease;
}

.slider-btn:hover {
    background: var(--accent-blue);
    transform: translateY(-50%) scale(1.08);
}

.slider-btn.prev { left: 1.5rem; }
.slider-btn.next { right: 1.5rem; }

.slider-dots {
    position: absolute;
    z-index: 3;
    bottom: 1.6rem;
    left: 50%;
    display: flex;
    gap: 0.5rem;
    transform: translateX(-50%);
}

.dot {
    width: 28px;
    height: 4px;
    background: rgba(255, 255, 255, 0.38);
    border-radius: 99px;
    cursor: pointer;
    transition: width 180ms ease, background 180ms ease;
}

.dot.active,
.dot:hover {
    width: 44px;
    background: var(--accent-cyan);
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4rem;
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
}

.page-hero::after {
    position: absolute;
    right: -5rem;
    bottom: -8rem;
    width: 22rem;
    height: 22rem;
    border: 1px solid rgba(33, 199, 183, 0.25);
    border-radius: 50%;
    content: "";
}

.page-hero h1 {
    position: relative;
    z-index: 1;
    margin-bottom: 0.8rem;
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.page-hero p {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    color: #c7dce3;
    font-size: 1.15rem;
}

.home-services,
.home-advantages,
.home-cards,
.home-testimonials,
.home-partners,
.home-team,
.home-credit-conditions {
    padding: 5.5rem 0;
}

.home-advantages,
.home-testimonials,
.home-team {
    background: #fff;
}

.home-why {
    padding: 4.5rem 0;
    color: #fff;
    background: var(--primary-light);
}

.home-why h2 {
    color: #fff;
}

.section-intro {
    max-width: 620px;
    margin: 0 auto 2.4rem;
    color: var(--text-muted);
    text-align: center;
    font-size: 1.05rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 750;
    transition: gap 180ms ease;
}

.service-link:hover {
    gap: 0.7rem;
}

.service-link::after {
    content: "→";
}

.cta-center {
    margin-top: 2.2rem;
    text-align: center;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.2rem;
}

.why-item {
    padding: 1.6rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    transition: transform 180ms ease, background 180ms ease;
}

.why-item:hover {
    background: rgba(255, 255, 255, 0.13);
    transform: translateY(-4px);
}

.why-icon {
    margin-bottom: 0.8rem;
    font-size: 2.35rem;
}

.why-item h3 {
    margin-bottom: 0.5rem;
    color: #fff;
    font-size: 1.1rem;
}

.why-item p {
    margin-bottom: 0;
    color: #bed2dc;
    font-size: 0.94rem;
}

.home-cta {
    margin: 2rem max(16px, calc((100% - 1160px) / 2)) 4rem;
    padding: 3.5rem 1.5rem;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.home-cta h2 {
    margin-bottom: 0.6rem;
    color: #fff;
}

.home-cta p {
    margin-bottom: 1.5rem;
    color: #c7dce3;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.home-cta .btn-secondary {
    color: #fff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
}

.home-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.footer {
    padding: 3.5rem 0 1.5rem;
    color: #b7d1dc;
    background: #071b2d;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(250px, 1.7fr) repeat(3, 1fr);
    gap: 2.5rem;
    padding-bottom: 2.4rem;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: #fff;
    text-decoration: none;
}

.footer-brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #062b3b;
    background: var(--accent-cyan);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: -0.08em;
}

.footer-brand-link strong,
.footer-brand-link small {
    display: block;
}

.footer-brand-link strong {
    font-size: 0.98rem;
    letter-spacing: -0.03em;
}

.footer-brand-link small {
    margin-top: 0.18rem;
    color: #8fb1bd;
    font-size: 0.7rem;
    font-weight: 600;
}

.footer-brand > p {
    max-width: 300px;
    margin: 1rem 0;
    color: #9dbac5;
    font-size: 0.82rem;
    line-height: 1.6;
}

.footer-trust {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #c9e5e7;
    font-size: 0.75rem;
    font-weight: 650;
}

.footer-trust-dot {
    width: 7px;
    height: 7px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(33, 199, 183, 0.12);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 0.85rem;
    color: #fff;
    font-size: 0.92rem;
}

.footer-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.45rem;
}

.footer-section a {
    color: #b7d1dc;
    text-decoration: none;
    transition: color 180ms ease;
}

.footer-section a:hover {
    color: var(--accent-cyan);
}

.footer-contact > a {
    display: block;
    margin-bottom: 0.55rem;
}

.footer-contact > a:not(.footer-login-link) {
    color: #d1e4e9;
    font-size: 0.84rem;
    font-weight: 650;
}

.footer-login-link {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    color: var(--accent-cyan) !important;
    font-size: 0.78rem;
    font-weight: 750;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.25rem;
    color: #7f9cac;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.78rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1rem;
}

.footer-legal a {
    color: #7f9cac;
    text-decoration: none;
}

.footer-legal a:hover {
    color: #c9e5e7;
}

.services {
    padding: 4rem 0;
    background: var(--surface);
}

.services-detail {
    padding: 4rem 0;
}

.service-detail-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 2.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.service-detail-item.reverse {
    direction: rtl;
}

.service-detail-item.reverse > * {
    direction: ltr;
}

.service-badge {
    display: inline-block;
    margin-bottom: 0.8rem;
    padding: 0.35rem 0.85rem;
    color: #fff;
    background: #e8faf4;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 750;
}

.service-detail-content h2 {
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    text-align: left;
    font-size: 2rem;
}

.service-detail-content p {
    color: var(--text-muted);
}

.feature-list {
    margin: 1.5rem 0;
}

.feature-item {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--line);
}

.feature-icon {
    margin-right: 0.5rem;
    color: #0ca678;
    font-weight: 800;
}

.service-detail-image img {
    display: block;
    width: min(100%, 420px);
    margin: 0 auto;
    border-radius: var(--radius-md);
}

.cta-section {
    padding: 4rem 0;
    color: #fff;
    text-align: center;
    background: var(--primary-dark);
}

.cta-section h2 {
    color: #fff;
}

@media (max-width: 850px) {
    .nav-links {
        gap: 0;
    }

    .nav-links a {
        padding-inline: 0.45rem;
        font-size: 0.8rem;
    }

    .footer-grid,
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-detail-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 650px) {
    .topbar-right {
        display: none;
    }

    .topbar-inner {
        justify-content: center;
    }

    .navbar .container {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.65rem;
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
        overflow-x: auto;
        padding-bottom: 0.1rem;
    }

    .nav-links a {
        white-space: nowrap;
    }

    .nav-links .btn-login {
        margin-left: 0.2rem;
    }

    .hero-slider {
        height: 510px;
        min-height: 0;
    }

    .slide-content {
        width: calc(100% - 48px);
        margin-left: 24px;
    }

    .slide-content h1 {
        font-size: clamp(2.25rem, 12vw, 3.3rem);
    }

    .slider-btn {
        top: auto;
        bottom: 1rem;
        width: 38px;
        height: 38px;
        transform: none;
    }

    .slider-btn:hover {
        transform: scale(1.06);
    }

    .slider-btn.prev { left: 1rem; }
    .slider-btn.next { right: 1rem; }
    .slider-dots { bottom: 1.7rem; }

    .home-services,
    .home-advantages,
    .home-cards,
    .home-testimonials,
    .home-partners,
    .home-team,
    .home-credit-conditions {
        padding: 3.6rem 0;
    }

    .footer-grid,
    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-legal {
        flex-wrap: wrap;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 280px;
        margin: 0 auto;
    }
}
