/* ============================================================
   Технологичная зона нетворкинга — Brand Styles
   Единая стилистика с сайтом «Бизнес у моря»
   ============================================================ */

@font-face {
    font-family: 'PrimoryeFont';
    src: url('https://proto-bizumorya.intera.team/fonts/PrimoryeFont.otf') format('opentype');
    font-weight: 400 900;
    font-display: swap;
}

@font-face {
    font-family: 'NyghtSerif';
    src: url('https://proto-bizumorya.intera.team/fonts/NyghtSerif-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'NyghtSerif';
    src: url('https://proto-bizumorya.intera.team/fonts/NyghtSerif-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'RobotoPrimorye';
    src: url('https://proto-bizumorya.intera.team/fonts/Roboto Primorye Text Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'RobotoPrimorye';
    src: url('https://proto-bizumorya.intera.team/fonts/Roboto Primorye Heading Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}

:root {
    --brand-bg: #014A77;
    --brand-bg-deep: #013A62;
    --brand-bg-dark: #06142F;
    --brand-bg-soft: #1a5a8a;
    --brand-primary: #2E6FB7;
    --brand-accent: #5AC4EC;
    --brand-soft: #EAF6FF;
    --brand-orange: #FF6B35;
    --brand-red: #D91F1F;
    --brand-success: #20C997;
    --brand-white: #FFFFFF;
    --brand-grey: #EAEBEC;
    --brand-grey-2: #F5F6F7;
    --brand-ink: #07324d;
    --brand-muted: rgba(1, 74, 119, 0.62);
    --brand-glass: rgba(1, 74, 119, 0.50);
    --brand-glass-strong: rgba(2, 18, 46, 0.74);
    --brand-glass-border: rgba(90, 196, 236, 0.35);
    --font-display: 'PrimoryeFont', 'NyghtSerif', Georgia, serif;
    --font-body: 'RobotoPrimorye', 'Roboto', 'Segoe UI', sans-serif;
    --radius-card: 16px;
    --radius-card-lg: 24px;
    --radius-pill: 999px;
    --shadow-soft: 0 18px 54px rgba(1, 74, 119, 0.16);
    --shadow-glow: 0 0 38px rgba(90, 196, 236, 0.25);
    --texture-dark: url('https://proto-bizumorya.intera.team/images/texture.png');
    --texture-light: url('https://proto-bizumorya.intera.team/images/textures/blue_texture_veryLarge.svg');
    --hero-image: url('https://proto-bizumorya.intera.team/images/widelong.png');
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--brand-ink);
    background: var(--brand-grey-2);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display-title {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

h4, h5, h6, .navbar-brand, .form-label, .btn {
    font-family: var(--font-body);
}

a {
    color: var(--brand-primary);
}

a:hover {
    color: var(--brand-bg);
}

.text-muted {
    color: rgba(1, 74, 119, 0.58) !important;
}

.bg-light {
    background-color: var(--brand-grey-2) !important;
    background-image: linear-gradient(rgba(245, 246, 247, 0.86), rgba(245, 246, 247, 0.86)), var(--texture-light);
}

/* ---- Header / Footer ---- */
.brand-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background-color: var(--brand-bg);
    background-image: linear-gradient(rgba(1, 74, 119, 0.94), rgba(1, 74, 119, 0.94)), var(--texture-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 30px rgba(1, 30, 56, 0.18);
}

.brand-header .navbar {
    min-height: 72px;
}

.brand-header .navbar-brand {
    color: var(--brand-white) !important;
    font-family: var(--font-display);
    font-size: 1.28rem;
    line-height: 1;
    letter-spacing: -0.01em;
}

.brand-header .brand-subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(234, 246, 255, 0.72);
    margin-top: 3px;
}

.brand-header .nav-link {
    color: rgba(255, 255, 255, 0.74) !important;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.brand-header .nav-link:hover,
.brand-header .nav-link:focus {
    color: var(--brand-white) !important;
}

.brand-footer {
    background-color: var(--brand-bg);
    background-image: linear-gradient(rgba(1, 74, 119, 0.92), rgba(1, 74, 119, 0.92)), var(--texture-dark);
    color: rgba(255, 255, 255, 0.72);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-footer .footer-title {
    font-family: var(--font-display);
    color: var(--brand-white);
    font-size: 1.65rem;
    line-height: 1;
}

.brand-footer .footer-label {
    color: var(--brand-accent);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* ---- Buttons / Bootstrap overrides ---- */
.btn {
    border-radius: 12px;
    font-weight: 500;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn-success {
    background: var(--brand-orange) !important;
    border-color: var(--brand-orange) !important;
    color: var(--brand-white) !important;
    box-shadow: 0 8px 26px rgba(255, 107, 53, 0.28);
}

.btn-primary:hover,
.btn-success:hover {
    background: var(--brand-bg) !important;
    border-color: var(--brand-orange) !important;
    box-shadow: 0 10px 34px rgba(255, 107, 53, 0.36);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-light {
    color: var(--brand-bg) !important;
    border-color: rgba(1, 74, 119, 0.28) !important;
    background: rgba(255, 255, 255, 0.36) !important;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-light:hover {
    color: var(--brand-white) !important;
    background: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}

.btn-light {
    color: var(--brand-bg) !important;
    border-color: rgba(255, 255, 255, 0.86) !important;
}

.btn-brand-glass {
    color: var(--brand-white) !important;
    background: rgba(5, 15, 40, 0.42) !important;
    border: 1px solid rgba(255, 255, 255, 0.34) !important;
    backdrop-filter: blur(18px);
}

.badge.bg-primary,
.badge.bg-info {
    background: rgba(46, 111, 183, 0.14) !important;
    color: var(--brand-primary) !important;
    border: 1px solid rgba(46, 111, 183, 0.18);
}

.badge.bg-success {
    background: rgba(32, 201, 151, 0.16) !important;
    color: #087f63 !important;
    border: 1px solid rgba(32, 201, 151, 0.28);
}

/* ---- Forms ---- */
.form-shell {
    max-width: 760px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(1, 74, 119, 0.10);
    border-radius: var(--radius-card-lg);
    padding: clamp(24px, 4vw, 42px);
    box-shadow: var(--shadow-soft);
}

.form-label {
    color: rgba(1, 74, 119, 0.64);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-control,
.form-select {
    border: 1.5px solid rgba(1, 74, 119, 0.18);
    border-radius: 12px;
    color: var(--brand-ink);
    min-height: 46px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.22rem rgba(90, 196, 236, 0.18);
}

.alert {
    border-radius: var(--radius-card);
    border-width: 1px;
}

.alert-info {
    color: var(--brand-bg);
    background: rgba(90, 196, 236, 0.14);
    border-color: rgba(90, 196, 236, 0.30);
}

.alert-success {
    color: #087f63;
    background: rgba(32, 201, 151, 0.13);
    border-color: rgba(32, 201, 151, 0.28);
}

/* ---- Landing Page ---- */
.hero-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--brand-white);
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: clamp(80px, 10vw, 130px) 0;
    background-color: var(--brand-bg);
    background-image: linear-gradient(rgba(1, 74, 119, 0.70), rgba(1, 58, 98, 0.82)), var(--hero-image);
    background-position: center, top center;
    background-size: auto, 100% auto;
    background-repeat: no-repeat, no-repeat;
}

.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.hero-section::before {
    inset: 0;
    background: radial-gradient(circle at 80% 30%, rgba(90, 196, 236, 0.32), transparent 34%), radial-gradient(circle at 10% 70%, rgba(255, 107, 53, 0.18), transparent 28%);
}

.hero-section::after {
    width: 420px;
    height: 420px;
    right: 8%;
    top: 18%;
    border-radius: 50%;
    border: 1px solid rgba(90, 196, 236, 0.28);
    box-shadow: inset 0 0 70px rgba(90, 196, 236, 0.10), 0 0 72px rgba(90, 196, 236, 0.18);
}

.hero-section h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6.4rem);
    font-weight: 900;
    line-height: 0.92;
    text-shadow: 0 3px 40px rgba(0, 0, 0, 0.24);
}

.hero-section .lead {
    color: rgba(234, 246, 255, 0.90);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.section-eyebrow {
    color: var(--brand-accent);
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.feature-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(90, 196, 236, 0.14);
    color: var(--brand-primary);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 12px 34px rgba(46, 111, 183, 0.12);
}

.brand-section-dark {
    color: var(--brand-white);
    background-color: var(--brand-bg);
    background-image: linear-gradient(160deg, rgba(1, 74, 119, 0.95), rgba(46, 111, 183, 0.90)), var(--texture-dark);
    position: relative;
    overflow: hidden;
}

.brand-section-light {
    background-color: var(--brand-grey-2);
    background-image: linear-gradient(rgba(245, 246, 247, 0.82), rgba(245, 246, 247, 0.82)), var(--texture-light);
}

/* ---- Card Preview ---- */
.card-preview {
    border: 1px solid rgba(1, 74, 119, 0.12);
    border-left: 3px solid var(--brand-accent);
    border-radius: var(--radius-card);
    padding: 22px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 32px rgba(1, 74, 119, 0.08);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card-preview:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
    border-left-color: var(--brand-orange);
}

.card-preview.contacted {
    border-color: rgba(32, 201, 151, 0.34);
    border-left-color: var(--brand-success);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(234, 255, 248, 0.94));
}

.card-preview .status-badge {
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
}

/* ---- Big Screen ---- */
.bigscreen-container,
body.bigscreen-page {
    background: var(--brand-bg-dark);
    color: var(--brand-white);
    min-height: 100vh;
    overflow-x: hidden;
}

.bigscreen-header {
    background-color: var(--brand-bg);
    background-image: linear-gradient(rgba(1, 74, 119, 0.88), rgba(1, 58, 98, 0.92)), var(--texture-dark);
    border-bottom: 1px solid rgba(90, 196, 236, 0.24);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 42px rgba(0, 0, 0, 0.22);
}

.bigscreen-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 900;
    margin: 0;
    line-height: 0.95;
}

.stats-bar {
    display: flex;
    gap: 14px;
    font-size: 1rem;
}

.stats-bar span {
    background: rgba(5, 15, 40, 0.42);
    border: 1px solid rgba(90, 196, 236, 0.30);
    color: var(--brand-soft);
    padding: 9px 16px;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(18px);
}

.card-stream {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    padding: 30px;
    background: radial-gradient(circle at 84% 10%, rgba(90, 196, 236, 0.18), transparent 30%), linear-gradient(rgba(6, 20, 47, 0.66), rgba(6, 20, 47, 0.88)), var(--hero-image) center / cover fixed no-repeat;
    min-height: calc(100vh - 86px);
}

.bigscreen-card {
    background: rgba(2, 18, 46, 0.80);
    border: 1px solid rgba(90, 196, 236, 0.24);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px);
}

.bigscreen-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--brand-accent), transparent);
}

.bigscreen-card.new-card {
    animation: fadeInUp 0.6s ease-out;
    border-color: var(--brand-orange);
    box-shadow: 0 0 34px rgba(255, 107, 53, 0.28);
}

.bigscreen-card.contacted {
    border-color: rgba(32, 201, 151, 0.45);
    background: linear-gradient(135deg, rgba(2, 18, 46, 0.86), rgba(2, 80, 78, 0.72));
}

.bigscreen-card .contact-badge,
.bigscreen-card.contacted::after {
    display: inline-block;
    background: rgba(32, 201, 151, 0.16);
    color: #7ff5d3;
    border: 1px solid rgba(32, 201, 151, 0.34);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.bigscreen-card .company-name {
    font-family: var(--font-display);
    color: var(--brand-white);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.02;
    margin-bottom: 12px;
}

.bigscreen-card .category-badge {
    display: inline-block;
    background: rgba(90, 196, 236, 0.14);
    border: 1px solid rgba(90, 196, 236, 0.28);
    color: var(--brand-accent);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    margin-bottom: 12px;
}

.bigscreen-card .offer-text {
    color: rgba(234, 246, 255, 0.78);
    font-size: 1rem;
    line-height: 1.55;
}

.bigscreen-card .card-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(90, 196, 236, 0.16);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(234, 246, 255, 0.50);
    background: transparent;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.connection-status {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
}

.connection-status.connected {
    background: rgba(32, 201, 151, 0.82);
    color: white;
}

.connection-status.disconnected {
    background: rgba(217, 31, 31, 0.86);
    color: white;
}

/* ---- Terminal ---- */
.terminal-page {
    background: linear-gradient(rgba(245, 246, 247, 0.88), rgba(245, 246, 247, 0.92)), var(--texture-light);
}

.terminal-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 56px) 24px;
}

.search-box {
    background: linear-gradient(135deg, rgba(1, 74, 119, 0.92), rgba(46, 111, 183, 0.84)), var(--texture-dark);
    border: 1px solid rgba(90, 196, 236, 0.30);
    border-radius: var(--radius-card-lg);
    padding: clamp(24px, 4vw, 38px);
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
}

.search-box .form-control,
.search-box .form-select {
    min-height: 58px;
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.96);
    font-size: 1.05rem;
}

.search-results,
#resultsList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

#emptyState {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.72);
    border: 1px dashed rgba(1, 74, 119, 0.18);
    border-radius: var(--radius-card-lg);
}

/* ---- Admin Panel ---- */
.admin-sidebar {
    background-color: var(--brand-bg);
    background-image: linear-gradient(rgba(1, 74, 119, 0.94), rgba(1, 58, 98, 0.96)), var(--texture-dark);
    min-height: 100vh;
    padding-top: 20px;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.72);
    padding: 10px 20px;
    border-radius: 10px;
    margin: 2px 10px;
    font-weight: 500;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: white;
    background: rgba(90, 196, 236, 0.14);
}

.card {
    border-color: rgba(1, 74, 119, 0.10);
    border-radius: var(--radius-card);
    box-shadow: 0 10px 32px rgba(1, 74, 119, 0.07);
}

.card.bg-primary,
.card.bg-info,
.card.bg-success,
.card.bg-warning {
    border: none;
    background-image: linear-gradient(135deg, rgba(1, 74, 119, 0.92), rgba(46, 111, 183, 0.86)) !important;
    color: var(--brand-white) !important;
}

/* ---- Mobile Card Page ---- */
.mobile-card-page {
    background: linear-gradient(rgba(245, 246, 247, 0.84), rgba(245, 246, 247, 0.92)), var(--texture-light);
    min-height: 100vh;
    padding: 20px;
}

.mobile-card {
    max-width: 480px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 18px 54px rgba(1, 74, 119, 0.16);
    overflow: hidden;
    border: 1px solid rgba(1, 74, 119, 0.08);
}

.mobile-card .company-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 20px;
    border: 3px solid rgba(255, 255, 255, 0.34);
    background: white;
}

.card-header-section {
    background: linear-gradient(rgba(1, 74, 119, 0.82), rgba(1, 58, 98, 0.92)), var(--hero-image) center / cover no-repeat;
    color: white;
    padding: 34px 22px;
    text-align: center;
}

.card-header-section h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
    margin-top: 14px;
}

.card-header-section .category-badge {
    display: inline-block;
    background: rgba(90, 196, 236, 0.16);
    border: 1px solid rgba(90, 196, 236, 0.34);
    color: var(--brand-soft);
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.84rem;
}

.card-body-section {
    padding: 24px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid rgba(1, 74, 119, 0.09);
}

.info-row:last-child {
    border-bottom: none;
}

.info-icon {
    font-size: 1.2rem;
    margin-right: 12px;
    min-width: 24px;
    text-align: center;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.72rem;
    color: rgba(1, 74, 119, 0.48);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.info-value {
    font-size: 1rem;
    color: var(--brand-ink);
}

.info-value a,
.mobile-card a:not(.btn) {
    color: var(--brand-primary) !important;
    text-decoration: none !important;
}

.qr-section {
    text-align: center;
    padding: 22px;
    background: var(--brand-grey-2);
    border-top: 1px solid rgba(1, 74, 119, 0.08);
}

.qr-section img,
.qr-code-container img {
    max-width: 200px;
    height: auto;
    border-radius: 14px;
}

.action-buttons {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-banner {
    text-align: center;
    padding: 12px;
    font-weight: 600;
}

.status-banner.contacted {
    background: rgba(32, 201, 151, 0.14);
    color: #087f63;
}

.status-banner.published {
    background: rgba(90, 196, 236, 0.16);
    color: var(--brand-bg);
}

.success-card {
    max-width: 640px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.94);
    border-radius: var(--radius-card-lg);
    padding: clamp(28px, 5vw, 48px);
    box-shadow: var(--shadow-soft);
}

/* ---- Utility ---- */
.status-pending { color: #d99a00; }
.status-published { color: var(--brand-primary); }
.status-contacted { color: #087f63; }
.status-rejected { color: var(--brand-red); }

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 72px 0;
        background-position: center, top center;
        background-size: auto, auto 100%;
    }

    .hero-section .d-flex,
    .success-card .d-flex {
        flex-direction: column;
    }

    .bigscreen-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        padding: 18px 20px;
    }

    .stats-bar {
        flex-wrap: wrap;
    }

    .card-stream {
        grid-template-columns: 1fr;
        padding: 18px;
    }
}
