/* Montserrat — основной шрифт сайта. Файлы лежат в public/fonts/ */
@font-face {
    font-family: 'Montserrat';
    src: url('/public/fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('/public/fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('/public/fonts/Montserrat-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('/public/fonts/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --header-height: 72px;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f7;
    color: #111827;
    line-height: 1.5;
    padding-top: var(--header-height);
}
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1024;
    background: rgba(255, 255, 255, 0.73);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(209, 213, 219, 0.7);
}
.nav-inner {
    width: 100%;
    max-width: 1300px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}
.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 18px;
}
.nav-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-left:hover ~ .nav-logo-img
{
    transform: rotate(180deg);
}
.nav-logo-img {
    transition: transform 0.5s ease;
    height: 36px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
}
.nav-logo-text {
    color: #4A4A4A;
    font-weight: 500;
    font-size: 18px;
    margin-left: 6px;
}
.nav-center {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 14px;
}
.nav-center a {
    color: #4A4A4A;
    text-decoration: none;
    white-space: nowrap;
}
.nav-center a:hover {
    color: #111827;
}
.nav-support-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nav-support-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}
.nav-quote {
    position: relative;
    min-width: 108px;
    height: 20px;
    flex-shrink: 0;
}
.nav-quote-item {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 280ms ease;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
}
.nav-quote-item.is-active {
    opacity: 1;
}
.nav-quote-item.is-up {
    color: #22c55e;
}
.nav-quote-item.is-down {
    color: #ef4444;
}
.nav-quote-arrow {
    font-size: 9px;
    line-height: 1;
}
.nav-premium-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(167, 139, 250, 0.9);
    color: #7c3aed;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    background: transparent;
    transition: background 160ms ease, border-color 160ms ease;
}
.nav-premium-btn:hover {
    background: rgba(124, 58, 237, 0.06);
    border-color: rgba(124, 58, 237, 0.55);
}
.nav-premium-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
}
.nav-account-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4A4A4A;
    text-decoration: none;
    white-space: nowrap;
}
.nav-account-link:hover {
    color: #111827;
}
.nav-account-icon {
    width: 22px;
    height: 22px;
    display: block;
}
.nav-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}
.nav-burger:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.nav-burger-line {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #4A4A4A;
    transition: transform 180ms ease, opacity 180ms ease;
}
.site-header.is-menu-open .nav-burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.site-header.is-menu-open .nav-burger-line:nth-child(2) {
    opacity: 0;
}
.site-header.is-menu-open .nav-burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
.nav-mobile-menu {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 24px 18px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(209, 213, 219, 0.7);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}
.nav-mobile-menu[hidden] {
    display: none;
}
.nav-mobile-menu a {
    display: block;
    padding: 12px 8px;
    color: #4A4A4A;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
}
.nav-mobile-menu a:hover {
    background: rgba(243, 244, 246, 0.85);
    color: #111827;
}
.lang-switcher {
    position: relative;
}
.lang-switcher-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 5px;
    border-radius: 999px;
    border: 1px solid rgba(209, 213, 219, 0.95);
    background: rgba(255, 255, 255, 0.92);
    color: #4A4A4A;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
    cursor: pointer;
    user-select: none;
}
.lang-switcher-pill:hover {
    background: rgba(255, 255, 255, 0.98);
}
.lang-switcher.is-open .lang-switcher-pill {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(209, 213, 219, 1);
}
.lang-switcher-toggle {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.lang-switcher-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.lang-switcher-anchor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    color: #3f3f46;
    transform: rotate(0deg);
    transition: transform 220ms ease;
    font-size: 24px;
    line-height: 1;
}
.lang-switcher.is-open .lang-switcher-anchor {
    transform: rotate(180deg);
}
.lang-switcher-code {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: lowercase;
    color: #4A4A4A;
}
.lang-switcher-flag {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 22px;
    border: 1px solid rgba(209, 213, 219, 0.8);
    background: #ffffff;
}

.lang-switcher-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 14px);
    /* width: 320px; */
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(209, 213, 219, 0.85);
    border-radius: 22px;
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.14),
        0 2px 10px rgba(15, 23, 42, 0.06);
    padding: 18px 10px;
    transform-origin: top right;
    opacity: 0;
    transform: translateY(-6px) translateX(20%) scale(0.98);
    pointer-events: none;
    transition: opacity 160ms ease, transform 220ms cubic-bezier(0.2, 0.9, 0.2, 1);
}
.lang-switcher-menu::before {
    content: "";
    position: absolute;
    top: -11px;
    right: 92px;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.92);
    border-left: 1px solid rgba(209, 213, 219, 0.6);
    border-top: 1px solid rgba(209, 213, 219, 0.6);
    transform: rotate(45deg);
    border-top-left-radius: 6px;
}
.lang-switcher.is-open .lang-switcher-menu {
    opacity: 1;
    transform: translateY(0) translateX(20%) scale(1);
    pointer-events: auto;
}

.lang-switcher-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 16px;
    border-radius: 16px;
    text-decoration: none;
    color: #4A4A4A;
}
.lang-switcher-item:hover {
    background: rgba(243, 244, 246, 0.85);
}
.lang-switcher-item-label {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: 0.2px;
}
.lang-switcher-item-flag {
    width: 26px;
height: 26px;
margin-left: 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 34px;
    border: 1px solid rgba(209, 213, 219, 0.75);
    background: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
    .lang-switcher-anchor,
    .lang-switcher-menu,
    .nav-quote-item,
    .nav-burger-line {
        transition: none !important;
    }
}
.nav-link {
    color: #4b5563;
    text-decoration: none;
}
.nav-link:hover {
    color: #111827;
}
.nav-user {
    font-size: 13px;
    color: #6b7280;
}
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.btn-primary {
    background: #2563eb;
    color: #ffffff;
}
.btn-primary:hover {
    background: #1d4ed8;
}
.btn-outline {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
}
.btn-outline:hover {
    background: #f3f4f6;
}
.container {
    max-width: 1300px;
    margin: 24px auto 48px;
    padding: 0 24px;
}
.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    padding: 24px 28px;
}
/* Жирный текст: Montserrat SemiBold, #4A4A4A */
strong,
b,
.card h1,
.card h2,
.testimonial-author strong,
.hero-card-title strong,
.testimonials-title {
    font-weight: 600;
    color: #4A4A4A;
}
.card h1,
.card h2 {
    margin-bottom: 12px;
}
.card p {
    margin-bottom: 8px;
    color: #4b5563;
}

/* Auth forms: narrow, centered */
.auth-form-wrap {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 16px;
}
.auth-card {
    padding: 28px 26px;
}
.auth-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}
.auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    text-decoration: none;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.auth-tab:hover {
    color: #374151;
}
.auth-tab.is-active {
    color: #111827;
    border-bottom-color: #2563eb;
}
@media (max-width: 480px) {
    .auth-form-wrap {
        padding: 0 12px;
    }
    .auth-card {
        padding: 22px 20px;
    }
}
/* Hero section */
.hero {
    margin-top: 12px;
}
.hero-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.36);
}
.hero-image {
    min-height: clamp(450px, 55vh, 450px);
    background: radial-gradient(circle at 20% 0%, #6b7280 0, #111827 45%, #020617 100%);
    background-position: center;
    background-size: cover;
    background-image: url('/public/images/background-london-1.jpg');
}
.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 40px 56px;
    pointer-events: none;
}
.hero-floating-image {
    position: absolute;
    right: 56px;
    top: 50%;
    transform: translateY(-50%);
    max-height: 55%;
    max-width: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
    z-index: 2;
}
.hero-text {
    max-width: 420px;
height: 100%;
/* align-items: end; */
align-content: space-evenly;
flex-direction: column;
/* flex: auto; */
display: grid;
color: #f9fafb;
gap: 7%;
}
/* Hero card (right side) */
.hero-card {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 42%;
    min-width: 320px;
    max-width: 520px;
    height: 82%;
    min-height: 320px;
    max-height: 90vh;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.22);
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
}
.hero-card-title {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 12px;
}
.hero-card-title strong {
    color: #111827;
}
.hero-card-stats {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.hero-card-percent-wrap {
    flex-shrink: 0;
    max-width: 55%;
}
.hero-card-percent {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}
.hero-card-percent-caption {
    font-size: 12px;
    color: #6b7280;
    font-weight: 400;
}
.hero-card-chart {
    position: absolute;
    margin-top: 64px;
    height: 465px;
    z-index: 500;
    right: 30%;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.hero-card-chart.is-hovered {
    transform: translateY(-8px);
}
.hero-card-chart svg {
    width: 100%;
    height: 100%;
    display: block;
}
.hero-card-chart-img {

    height: 100%;
    object-fit: contain;
    display: block;
}
.hero-card-desc {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.45;
    margin-bottom: 14px;
}
.hero-card-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}
.hero-card-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 32px;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    background: #f3f4f6;
    border-radius: 8px;
}
.hero-card-footer {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.4;
}
.hero-card-cta {
    display: inline-block;
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fb923c 100%);
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(234, 88, 12, 0.4);
    transition: opacity 0.2s, transform 0.15s;
    margin-top: auto;
}
.hero-card-cta:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}
.hero-kicker {
    font-size: 14px;
    letter-spacing: 0.16em;
    
    color: #d4d8e0;
    margin-bottom: 8px;
}
.hero-heading-main {
    font-size: clamp(28px, 3.2vw, 38px);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 4px;
}
.hero-heading-accent {
    font-weight: 600;
    color: #ffffff;
}
.hero-body {
    margin-top: 10px;
    font-size: 15px;
    color: #e5e7eb;
}
.hero-subline {
    margin-top: 18px;
    font-size: 14px;
    color: #d1d5db;
}
.flash {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
}
.flash-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.flash-success {
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}
label {
    font-size: 13px;
    color: #4b5563;
}
input[type="email"],
input[type="password"],
input[type="text"] {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    width: 100%;
}
input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}
.form-actions {
    margin-top: 6px;
}
footer {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 16px;
}

/* Testimonials */
.testimonials {
    padding: 128px 0 64px;
}
.testimonials-title {
    font-size: clamp(22px, 2.5vw, 28px);
    font-weight: 600;
    color: #4A4A4A;
    text-align: center;
    margin-bottom: 36px;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(209, 213, 219, 0.6);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(56, 189, 248, 0.35), 0 16px 56px rgba(56, 189, 248, 0.18);
}
.testimonial-stars {
    font-size: 18px;
    letter-spacing: 2px;
    color: #e8a178;
    margin-bottom: 12px;
    line-height: 1;
}
.testimonial-quote {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.55;
    margin: 0 0 16px 0;
    flex-grow: 1;
}
.testimonial-author {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #e5e7eb;
}
.testimonial-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.testimonial-author strong {
    color: #111827;
}
@media (max-width: 900px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 1100px) {
    .nav-center {
        display: none;
    }
    .nav-quote {
        display: none;
    }
    .nav-premium-btn span {
        display: none;
    }
    .nav-premium-btn {
        width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
    }
}
@media (max-width: 768px) {
    .nav-inner {
        padding: 0 16px;
    }
    .nav-right {
        gap: 10px;
    }
    .nav-account-link span {
        display: none;
    }
    .nav-premium-btn {
        display: none;
    }
    .hero-overlay {
        flex-direction: column;
        padding: 24px 22px;
        align-items: stretch;
    }
    .hero-text {
        max-width: 100%;
    }
    .hero-card {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: none;
        min-width: 0;
        height: auto;
        min-height: 320px;
        max-height: none;
    }
    .testimonials {
        padding: 40px 0 48px;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .testimonial-card {
        padding: 20px 18px;
    }
}

