:root {
    --dropdown-accent: rgba(133,158,216,0.18);
    --dropdown-accent-strong: rgba(133,158,216,0.35);
    --dropdown-panel: rgba(30, 36, 52, 0.95);
    --dropdown-panel-top: rgba(11,12,16,0.6);
    --dropdown-text: #eaf0ff;
}

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Button styles */
.nav-button {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    min-height: 40px;
    min-width: 152px;
    font-family: Inter, Arial;
    font-size: 16px;
    font-weight: 600;
}

.nav-button-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #4d88ff, #2f67ff);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    min-width: 152px;
    box-shadow: 0 6px 18px rgba(47, 103, 255, 0.28);
    font-family: Inter, Arial;
    font-size: 16px;
    font-weight: 600;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--bluemainprimary-stroke);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Center content */
.web .conteiner {
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 1440px;
    max-width: 100%;
}

.web .hero,
.web .orbit-bg,
.web .div-2,
.web .grid-animation,
.web .results,
.web .contacts {
    margin-left: auto !important;
    margin-right: auto !important;
}

.web .orbit {
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.web .navigation {
    left: 50% !important;
    transform: translateX(-50%) !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 100px;
}

/* Submit dialog */
.submit-dialog {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.submit-dialog.open {
    display: flex;
}

.submit-dialog-ok {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.submit-dialog-ok.open {
    display: flex;
}

.submit-overlay,
.submit-overlay-ok {
    position: absolute;
    inset: 0;
    background: rgba(3, 6, 15, 0.35);
    backdrop-filter: blur(28px) brightness(0.45) saturate(120%);
    -webkit-backdrop-filter: blur(28px) brightness(0.45) saturate(120%);
    opacity: 0;
    transition: opacity 220ms ease;
}

.submit-dialog.open .submit-overlay {
    opacity: 1;
}

.submit-dialog-ok.open .submit-overlay-ok {
    opacity: 1;
}

.submit-dialog-panel {
    position: relative;
    width: 540px;
    max-width: calc(100% - 32px);
    background: rgba(18, 24, 42, 0.88);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 30px 80px rgba(3, 6, 15, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e6eef9;
    transform: translateY(-14px) scale(0.995);
    opacity: 0;
    transition: transform 260ms cubic-bezier(.2, .9, .3, 1), opacity 220ms ease;
}

.submit-dialog.open .submit-dialog-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
    overflow: visible;
}

.submit-dialog-ok-panel {
    position: relative;
    width: 480px;
    max-width: calc(100% - 32px);
    background: rgba(18, 24, 42, 0.88);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 30px 80px rgba(3, 6, 15, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e6eef9;
    transform: translateY(-14px) scale(0.995);
    opacity: 0;
    transition: transform 260ms cubic-bezier(.2, .9, .3, 1), opacity 220ms ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 156px;
}

.submit-dialog-ok.open .submit-dialog-ok-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.submit-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.submit-header h2 {
    margin: 0;
    font-family: 'Manrope', Helvetica;
    font-size: 22px;
    font-weight: 500;
    color: #f6fbff;
}

.submit-close {
    background: transparent;
    border: none;
    color: rgba(207, 230, 255, 0.7);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
}

.submit-close:hover {
    background: rgba(255, 255, 255, 0.02);
}

.submit-form .row {
    margin-bottom: 20px;
}

.submit-form label {
    display: block;
    margin-bottom: 10px;
    font-family: 'Inter', Helvetica;
    font-size: 14px;
    font-weight: 600;
    color: rgba(230, 238, 249, 0.75);
}

.submit-form input[type="text"],
.submit-form input[type="email"] {
    width: 100%;
    padding: 14px 18px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    color: #f1f7ff;
    font-family: 'Inter', Helvetica;
    font-size: 14px;
    font-weight: 400;
    outline: none;
    box-sizing: border-box;
}

.submit-form input::placeholder {
    color: rgba(241, 247, 255, 0.45);
}

.submit-form .two {
    display: flex;
    gap: 16px;
}

.submit-form .two .col {
    flex: 1;
}

.submit-form .consent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 4px;
}

.submit-form .checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', Helvetica;
    font-size: 14px;
    font-weight: 400;
    color: rgba(230, 238, 249, 0.85);
    margin-bottom: 0;
}

.submit-form .checkbox input {
    width: 18px;
    height: 18px;
    transform: none;
    flex-shrink: 0;
}

.btn-submit {
    background: linear-gradient(180deg, #4d88ff, #2f67ff);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 14px;
    cursor: pointer;
    min-width: 120px;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    font-family: 'Inter', Helvetica;
    font-size: 16px;
    font-weight: 600;
}

.btn-submit.loading {
    pointer-events: none;
    opacity: 0.75;
}

.btn-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: white;
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

.btn-submit.loading .btn-spinner {
    display: inline-block;
    margin-left: 8px;
}

.submit-error {
    font-size: 13px;
    color: #ff7777;
    text-align: center;
    margin-top: 6px;
}

.submit-form hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 24px 0 20px;
}

.section-note h3 {
    margin: 4px 0 20px;
    font-family: 'Manrope', Helvetica;
    font-size: 18px;
    font-weight: 500;
    color: #e6eef9;
}

.submit-ok-title {
    margin-top: 8px;
    color: white;
}

.submit-ok-message {
    margin-top: 8px;
    color: #D5DFFF;
}

.submit-ok-actions {
    margin-top: 24px;
}

/* Custom select/dropdown */
.custom-select-wrapper {
    position: relative;
    display: block;
    width: 100%;
    font-family: inherit;
}

.custom-select-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--dropdown-text);
    cursor: pointer;
    box-shadow: none;
    font-family: 'Inter', Helvetica;
    font-size: 14px;
    font-weight: 400;
    box-sizing: border-box;
}

.custom-select-button:focus {
    outline: 2px solid rgba(133, 158, 216, 0.22);
    outline-offset: 2px;
}

.custom-select-button .caret {
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(241, 247, 255, 0.7);
    border-bottom: 2px solid rgba(241, 247, 255, 0.7);
    transform: rotate(45deg);
    margin-left: 8px;
    opacity: 0.9;
}

.custom-options {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: radial-gradient(
        50% 50% at 74% 50%,
        rgba(28, 41, 59, 0.3) 0%,
        rgba(53, 70, 96, 0.1) 100%
    );
    backdrop-filter: blur(20px) brightness(100%) saturate(120%);
    -webkit-backdrop-filter: blur(20px) brightness(100%) saturate(120%);
    border-radius: 16px;
    padding: 8px 6px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 4px 24px rgba(0, 0, 0, 0.3);
    border: none;
    max-height: 300px;
    overflow: auto;
    z-index: 2500;
    display: none;
}

.custom-options.open {
    display: block;
}

.custom-options.open-up {
    top: auto;
    bottom: calc(100% + 10px);
}

.custom-options .panel-top {
    height: 42px;
    margin: -8px -6px 8px -6px;
    background: linear-gradient(180deg, var(--dropdown-panel-top), transparent);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.custom-options .option {
    padding: 16px 18px;
    border-radius: 10px;
    color: rgba(230, 238, 255, 0.9);
    cursor: pointer;
    margin: 2px 4px;
    line-height: 1.4;
    font-family: 'Inter', Helvetica;
    font-size: 15px;
    font-weight: 400;
    transition: background 0.15s ease;
}

.custom-options .option:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.custom-options .option.selected {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.custom-options::-webkit-scrollbar {
    width: 10px;
}

.custom-options::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 10px;
}

select.custom-dropdown {
    position: absolute !important;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Button groups */
.hero .hero-content .buttons,
.contacts .information .buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    min-width: 152px;
}

/* KPI card hover effect */
.kpi-card {
    transition: transform 0.4s cubic-bezier(.2, .8, .2, 1), box-shadow 0.4s cubic-bezier(.2, .8, .2, 1), filter 0.4s ease;
    cursor: pointer;
    transform-style: preserve-3d;
}

.kpi-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 30px 70px rgba(42, 80, 234, 0.45), 0 0 40px rgba(125, 205, 255, 0.35);
    filter: brightness(1.15) saturate(1.15);
}

.kpi-card > div {
    transition: box-shadow 0.4s ease;
}

.kpi-card:hover > div {
    box-shadow: inset 0 0 0 rgba(0, 0, 0, 0), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 480px) {
    .submit-dialog-panel {
        width: 92%;
        padding: 18px 16px;
        border-radius: 16px;
    }

    .submit-form .two {
        flex-direction: column;
    }

    .custom-options {
        max-height: 220px;
    }
}
