* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #04060d;
    color: #ffffff;
    font-family: 'Lato', sans-serif;
    overflow-x: hidden;
}

.container {
    width: 1280px;
    min-height: 720px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    position: relative;
    background-color: #04060d;
}

.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 0 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0;
    color: #ffffff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    transition: color 0.2s, opacity 0.2s, background 0.2s;
    position: relative;
    padding: 6px 0;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a.active {
    color: #06b6d4;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #06b6d4;
}

.btn-contact {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid #06b6d4;
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-contact:hover,
.page-contact .btn-contact {
    background: #06b6d4 !important;
}

.btn-contact::after,
.lang-switch a::after {
    display: none !important;
}

.lang-switch {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 16px;
    margin-left: 8px;
}

.lang-switch a {
    color: #475569;
    padding: 0;
    text-decoration: none;
}

.lang-switch a.current {
    color: #22d3ee;
    font-weight: 700;
}

.flag-link {
    display: inline-flex;
    width: 24px;
    height: 16px;
    opacity: 0.4;
}

.flag-link.current,
.flag-link:hover {
    opacity: 1;
}

.flag-icon {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}

.content-side {
    padding: 120px 40px 80px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.page-contact .content-side {
    padding-bottom: 60px;
}

.abstract-bg {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.08;
    background: #06b6d4;
    top: 50%;
    left: -10%;
    transform: translateY(-50%);
    z-index: 1;
}

.badge {
    color: #06b6d4;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.page-contact .badge {
    margin-bottom: 20px;
}

h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 72px;
    font-weight: 800;
    line-height: 0.95;
    margin-bottom: 32px;
    letter-spacing: 0;
}

.page-contact h1 {
    font-size: 64px;
    margin-bottom: 24px;
}

h1 span {
    display: block;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.page-contact h1 span {
    font-size: 20px;
    margin-top: 10px;
}

.description {
    font-size: 18px;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 36px;
    font-weight: 300;
}

.page-contact .description {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 28px;
}

.section-block {
    margin-bottom: 30px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #06b6d4;
    font-size: 14px;
}

.section-text {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 16px;
}

.section-topline {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    margin-bottom: 0;
}

.section-indented {
    padding-left: 24px;
    border-left: 1px dashed rgba(16, 185, 129, 0.3);
}

.section-indented-blue {
    border-left-color: rgba(59, 130, 246, 0.3);
    margin-bottom: 0;
}

.ff-title {
    color: #10b981;
}

.ep-title {
    color: #34d399;
    opacity: 0.9;
}

.fv-title {
    color: #3b82f6;
}

.es-title {
    color: #60a5fa;
    opacity: 0.9;
}

.proc-title {
    color: #22d3ee;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 10px 14px;
    color: #ffffff;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #06b6d4;
    background-color: rgba(6, 182, 212, 0.03);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.05);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid #22d3ee;
    color: #22d3ee;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.btn-submit:hover {
    background: #22d3ee;
    color: #04060d;
}

.success-alert,
.error-alert {
    padding: 14px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 20px;
    font-family: 'Lato', sans-serif;
}

.success-alert {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #34d399;
}

.error-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #fca5a5;
}

.direct-endpoints {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ep-box {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #64748b;
}

.ep-box span {
    color: #f8fafc;
    font-weight: 700;
}

.svg-side {
    height: 720px;
    width: 100%;
    position: relative;
    background-color: #060913;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.03);
}

.svg-side::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    right: 15%;
    top: 25%;
    z-index: 0;
}

.page-contact .svg-side::before {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
}

.canvas-svg {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.site-footer {
    position: fixed;
    left: 24px;
    bottom: 18px;
    z-index: 30;
    display: flex;
    gap: 14px;
    align-items: center;
}

.footer-link {
    border: 0;
    background: none;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #22d3ee;
}

.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.legal-modal.is-open {
    display: flex;
}

.legal-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 13, 0.78);
    backdrop-filter: blur(8px);
}

.legal-modal-panel {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: min(680px, 90vh);
    overflow: auto;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 8px;
    background: #060913;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    padding: 34px;
}

.legal-modal-panel h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    margin-bottom: 20px;
}

.legal-modal-panel p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 16px;
}

.legal-modal-panel a {
    color: #22d3ee;
}

.legal-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    color: #e2e8f0;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 14px;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}

.cookie-banner {
    position: fixed;
    right: 24px;
    bottom: 18px;
    z-index: 70;
    width: min(520px, calc(100vw - 48px));
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: space-between;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 8px;
    background: rgba(6, 9, 19, 0.96);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
    padding: 16px 18px;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.4;
}

.cookie-banner-text strong {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-accept {
    border: 1px solid #22d3ee;
    border-radius: 4px;
    background: #22d3ee;
    color: #04060d;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
}

@keyframes pulse-line {
    0% { opacity: 0.3; stroke-width: 1px; }
    50% { opacity: 0.7; stroke-width: 1.5px; }
    100% { opacity: 0.3; stroke-width: 1px; }
}

@keyframes dash-flow {
    to { stroke-dashoffset: -30; }
}

@keyframes subtle-float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

@keyframes pulse {
    0% { opacity: 0.3; stroke-width: 1px; }
    50% { opacity: 0.8; stroke-width: 2px; }
    100% { opacity: 0.3; stroke-width: 1px; }
}

@keyframes dash {
    to { stroke-dashoffset: -40; }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

@keyframes pulse-glow {
    0% { opacity: 0.1; }
    50% { opacity: 0.3; }
    100% { opacity: 0.1; }
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.2; }
    50% { transform: scale(1.05); opacity: 0.6; }
    100% { transform: scale(0.95); opacity: 0.2; }
}

@keyframes data-flow-vertical {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -40; }
}

@keyframes float-plat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

@keyframes envelope-travel {
    0% { transform: translateX(0); opacity: 0; }
    10% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateX(250px); opacity: 0; }
}

@keyframes success-glow {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

@keyframes line-flow {
    to { stroke-dashoffset: -40; }
}

@keyframes line-anim {
    from { stroke-dashoffset: 600; }
    to { stroke-dashoffset: 0; }
}

@keyframes dot-pulse {
    0%, 100% { r: 4; opacity: 0.6; }
    50% { r: 7; opacity: 1; }
}

.pulse-net {
    animation: pulse-line 3s infinite ease-in-out;
}

.flow-active {
    stroke-dasharray: 6, 4;
    animation: dash-flow 2s linear infinite;
}

.float-cluster {
    animation: subtle-float 6s infinite ease-in-out;
}

.float-legacy {
    animation: subtle-float 6s infinite ease-in-out;
    animation-delay: 2s;
}

.animated-grid-line {
    animation: pulse 4s infinite ease-in-out;
}

.data-stream {
    stroke-dasharray: 8, 4;
    animation: dash 2s linear infinite;
}

.fast-stream {
    stroke-dasharray: 6, 3;
    animation: dash 1.2s linear infinite;
}

.floating-node {
    animation: float 6s infinite ease-in-out;
}

.floating-node-delayed {
    animation: float 6s infinite ease-in-out;
    animation-delay: 3s;
}

.bg-glow {
    animation: pulse-glow 5s infinite ease-in-out;
}

.platform-ring {
    transform-origin: center;
    animation: pulse-ring 4s infinite ease-in-out;
}

.sync-line {
    stroke-dasharray: 6, 4;
    animation: data-flow-vertical 1.5s linear infinite;
}

.plat-node-1 {
    animation: float-plat 6s infinite ease-in-out;
}

.plat-node-2 {
    animation: float-plat 6s infinite ease-in-out;
    animation-delay: 3s;
}

.mail-icon {
    animation: envelope-travel 3s infinite ease-in-out;
}

.gw-pulse {
    animation: success-glow 3s infinite ease-in-out;
    transform-origin: center;
}

.flow-line {
    stroke-dasharray: 8, 12;
    animation: line-flow 2s linear infinite;
}

.main-axis {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: line-anim 3s forwards ease-in-out;
}

.tl-group {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.tl-group:hover {
    transform: translateX(8px);
}

.tl-group:hover .pulse-target {
    animation: dot-pulse 1.5s infinite ease-in-out;
    fill: #22d3ee;
}

.tl-group:hover .year-txt {
    fill: #ffffff;
    font-weight: 700;
}

.tl-group:hover .title-txt {
    fill: #22d3ee;
}

@media (max-width: 1280px) {
    .container {
        width: 100%;
    }
}

@media (max-width: 980px) {
    .container {
        grid-template-columns: 1fr;
    }

    .navbar {
        position: relative;
        height: auto;
        padding: 24px;
        align-items: flex-start;
        gap: 18px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 14px 20px;
        justify-content: flex-end;
    }

    .content-side {
        padding: 40px 24px 48px;
    }

    .svg-side {
        height: min(720px, 95vw);
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.03);
    }
}

@media (max-width: 640px) {
    .navbar {
        flex-direction: column;
    }

    .nav-links {
        justify-content: flex-start;
    }

    h1,
    .page-contact h1 {
        font-size: 48px;
    }

    .description,
    .page-contact .description {
        font-size: 16px;
    }

    .form-row,
    .direct-endpoints {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer,
    .cookie-banner {
        left: 16px;
        right: 16px;
        bottom: 12px;
    }

    .site-footer {
        bottom: 112px;
    }

    .cookie-banner {
        width: auto;
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: space-between;
    }

    .legal-modal-panel {
        padding: 28px 22px;
    }
}
