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

body {
    background: radial-gradient(circle at 20% 30%, #030810, #0a1f3a);
    font-family: 'Fira Code', 'JetBrains Mono', 'Cascadia Code', 'Courier New', monospace;
    color: #c0e0ff;
    line-height: 1.5;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
}

.light-text {
    opacity: 0;
    animation: fadeInChar 0.05s forwards;
}

p {
    margin: 20px 0 20px 0;
}

.color-red {
    color: red;
}

/* === CRT ЭФФЕКТЫ === */
.crt::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    z-index: 999;
    pointer-events: none;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.05;
    }
    100% {
        opacity: 0.2;
    }
}

.crt::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.15) 0px, rgba(0, 0, 0, 0.15) 2px, transparent 2px, transparent 6px);
    pointer-events: none;
    z-index: 998;
}

.glow-text {
    text-shadow: 0 0 5px #4cffb0, 0 0 2px #2effaa;
}

/* terminal-like scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0a121f;
    border-left: 1px solid #1e3a5f;
}

::-webkit-scrollbar-thumb {
    background: #2c5a8c;
}

::-webkit-scrollbar-thumb:hover {
    background: #3f87ce;
}

/* main container */
.terminal {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem 4rem;
    backdrop-filter: blur(2px);
    position: relative;
    z-index: 1;
}

/* ASCII / header line */
.ascii-header {
    font-size: 0.75rem;
    color: #37b3ec;
    white-space: pre;
    font-family: monospace;
    margin-bottom: 1.5rem;
    border-bottom: 1px dashed #2a628f;
    padding-bottom: 1rem;
    overflow-x: auto;
}

.ascii-header-info {
    color: #4fefb0;
    text-shadow: 0 0 3px #4fefb0;
}

/* prompt line with blinking cursor */
.prompt {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin: 1.2rem 0 1rem;
    color: #8bcbff;
}

.prompt-sign {
    color: #3eff9e;
    font-weight: bold;
    text-shadow: 0 0 3px #3eff9e;
}

.prompt-path {
    color: #9bd9ff;
}

.prompt-dash {
    color: #b0ffdd;
}

.welcome-block {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    border-left: 2px solid #2effaa;
    padding-left: 1rem;
}

.welcome-block h1 {
    color: #ccffdd;
    text-shadow: 0 0 2px #88ffaa;
    font-size: 160%;
}

.welcome-block-body {
    font-size: 1.15rem;
}

.welcome-block-we {
    color: #88ffcc;
}

.cursor-blink {
    background-color: #6bc5ff;
    width: 10px;
    height: 17px;
    display: inline-block;
    animation: blink 1s step-end infinite;
    box-shadow: 0 0 5px #6bc5ff;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* менюшки */
.menu-bar {
    background: #07121fcc;
    border: 1px solid #1e4d6f;
    padding: 0.6rem 1.2rem;
    margin: 1.5rem 0 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(4px);
    font-size: 0.9rem;
}

.menu-links {
    display: flex;
    gap: 1.8rem;
    flex-wrap: wrap;
}

.menu-links a {
    color: #b2e6ff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
    border-bottom: 1px dotted transparent;
}

.menu-links a:hover {
    color: #ffffff;
    border-bottom-color: #4cffb0;
    text-shadow: 0 0 4px #00ccaa;
}

.sys-status {
    font-size: 0.75rem;
    background: #0b1622;
    padding: 0.3rem 0.9rem;
    color: #66ffcc;
    font-family: monospace;
}

/* cards */
.grid-console {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.grid-console-stack {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Стили для дивизионов - объединены */
.division-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    position: relative;
}

/* Вертикальный заголовок дивизиона */
.division-vertical-title {
    flex-shrink: 0;
    width: 50px;
    position: relative;
    background: rgba(7, 18, 31, 0.8);
    border-left: 3px solid #2effaa;
    border-right: 1px solid #2c6688;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.division-vertical-title:hover {
    border-left-color: #66ffcc;
    background: rgba(15, 35, 55, 0.9);
    box-shadow: 0 0 15px rgba(46, 255, 170, 0.2);
}

.vertical-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    white-space: nowrap;
    font-family: 'Fira Code', monospace;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: #8affc0;
    text-shadow: 0 0 5px #2effaa;
    text-transform: uppercase;
    background: linear-gradient(135deg, #8affc0, #4effbc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Контейнер для карточек сотрудников */
.division-container .grid-console-team {
    flex: 1;
    margin: 0;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Стили для карточек сотрудников */
.grid-console-team .card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.grid-console-team .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(46, 255, 170, 0.1), transparent);
    transition: left 0.5s ease;
}

.grid-console-team .card:hover::before {
    left: 100%;
}

.grid-console-team .card i {
    font-size: 1.8rem;
    margin-right: 10px;
    color: #4effbc;
    text-shadow: 0 0 3px #4effbc;
}

.grid-console-team .card strong {
    color: #ccf5ff;
    font-size: 1.1rem;
}

.team-body {
    display: inline-block;
    margin: 0.8rem 0;
    border-left: 2px solid #2c6688;
    padding-left: 0.5rem;
    font-size: 1rem;
    color: #b2e0ff;
    height: 75px;
    overflow: auto;
}

/* Анимация появления карточек */
.grid-console-team .card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

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

/* Задержки для карточек */
.grid-console-team .card:nth-child(1) {
    animation-delay: 0.1s;
}

.grid-console-team .card:nth-child(2) {
    animation-delay: 0.2s;
}

.grid-console-team .card:nth-child(3) {
    animation-delay: 0.3s;
}

.grid-console-team .card:nth-child(4) {
    animation-delay: 0.4s;
}

.grid-console-team .card:nth-child(5) {
    animation-delay: 0.5s;
}

.grid-console-team .card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Стили для заголовков дивизионов */
.division-section {
    margin-bottom: 3rem;
}

.division-heading {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1.2rem;
    padding-left: 0.8rem;
    border-left: 4px solid #2effaa;
    color: #ccf5ff;
    font-family: 'Fira Code', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ccf5ff, #8affc0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.division-heading-icon {
    display: inline-block;
    width: 18px;
}

.division-heading-icon-flush {
    font-size: 0.9rem;
}

.division-heading-icon-hands {
    font-size: 1.0rem;
}

.division-heading-icon-star {
    font-size: 1.0rem;
}

.division-heading-about {
    font-size: 0.67rem;
    margin-left: 33px;
    animation: none;
    font-weight: normal;
}

/* Общий стиль для card (объединен с существующим) */
.card {
    background: #07121faa;
    border: 1px solid #2c6688;
    padding: 1.5rem;
    transition: 0.2s ease;
    backdrop-filter: blur(2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.card:hover {
    border-color: #5fddff;
    transform: translateY(-4px);
    background: #0b1829cc;
}

.card-title {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccf5ff;
    border-left: 4px solid #2effb0;
    padding-left: 0.8rem;
}

.card-title i {
    font-size: 1.5rem;
    color: #55ffcc;
}

.typewriter-text-body {
    height: 100px;
}

.cmd-demo {
    background: #030b12;
    padding: 0.8rem;
    font-family: monospace;
    font-size: 0.85rem;
    margin: 1rem 0;
    color: #acd5ff;
    border: 1px solid #1f5577;
}

.service-body {
    height: 100px;
    overflow: auto;
}

.skill-table {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

.skill-badge {
    background: #0a1a2a;
    padding: 0.3rem 0.9rem;
    font-size: 0.8rem;
    font-family: monospace;
    border: 1px solid #2e7ea0;
}

/* форма связи */
.contact-form {
    background: #05101e;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid #2f7c9e;
}

.contact-form-sendtitle {
    margin-bottom: 1rem;
}

.contact-form-feedback {
    margin-top: 1rem;
    font-family: monospace;
    color: #9effcf;
}

.contact-form-contacts {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.fa-icon-color-contacts {
    color: #6effc0;
}

.link-contacts {
    color: #bbffff;
}

.input-group {
    margin-bottom: 1.4rem;
}

.input-group label {
    display: block;
    font-family: monospace;
    margin-bottom: 0.3rem;
    color: #8bcbff;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: #071524;
    border: 1px solid #235b7a;
    padding: 0.8rem 1rem;
    color: #e0f2ff;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    transition: 0.2s;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #4effbc;
    box-shadow: 0 0 8px #4effbc66;
}

.btn-terminal {
    background: #0f2a3f;
    border: 1px solid #2b9bcc;
    padding: 0.8rem 2rem;
    font-family: monospace;
    font-weight: bold;
    font-size: 1rem;
    color: #d0f0ff;
    cursor: pointer;
    transition: 0.2s;
}

.btn-terminal:hover {
    background: #1a4768;
    border-color: #66ffcc;
    color: white;
    box-shadow: 0 0 8px #22ffaa;
}

.footer-console {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #2a6080;
    text-align: center;
    font-size: 0.8rem;
    color: #6b9fc0;
}

.footer-console-activity {
    font-size: 0.7rem;
}

.typed-output {
    background: #030b14;
    padding: 0.6rem 1rem;
    font-family: monospace;
    margin: 1rem 0;
}

/* для анимации печати */
.typewriter {
    opacity: 0;
}

.typewriter.revealed {
    opacity: 1;
}

.typewriter .char {
    display: inline-block;
    opacity: 0;
    animation: fadeInChar 0.05s forwards;
    white-space: pre-wrap;
}

@keyframes fadeInChar {
    from {
        opacity: 0;
        text-shadow: none;
    }
    to {
        opacity: 1;
        text-shadow: 0 0 3px currentColor;
    }
}

h2, h3 {
    font-weight: 500;
}

/* Стили для капчи */
.captcha-group {
    margin-top: 15px;
}

.captcha-input {
    max-width: 180px;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.captcha-question {
    background: rgba(0, 30, 50, 0.5);
    padding: 8px 15px;
    border: 1px solid #00bfe2;
    border-radius: 4px;
    font-family: "Courier New", monospace;
    font-size: 18px;
    color: #00ffdc;
    min-width: 120px;
    text-align: center;
}

.captcha-text {
    font-weight: bold;
    letter-spacing: 1px;
}

#captchaInput {
    flex: 1;
    min-width: 120px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00bfe2;
    color: #00ffdc;
    font-family: "Courier New", monospace;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

#captchaInput:focus {
    outline: none;
    border-color: #00ffdc;
    box-shadow: 0 0 5px rgba(0, 255, 220, 0.3);
}

.btn-captcha-refresh {
    background: rgba(0, 70, 200, 0.3);
    border: 1px solid #00bfe2;
    color: #00bfe2;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    border-radius: 4px;
}

.btn-captcha-refresh:hover {
    background: rgba(0, 70, 200, 0.6);
    border-color: #00ffdc;
    color: #00ffdc;
    transform: rotate(180deg);
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    body {
        font-family: monospace, 'Fira Code', 'JetBrains Mono', 'Cascadia Code', 'Courier New';
    }
    .ascii-header {
        font-size: 0.35rem;
    }
    .division-container {
        flex-direction: column;
        margin-bottom: 2rem;
    }

    .division-vertical-title {
        width: 100%;
        height: 40px;
        margin-bottom: 1rem;
        border-left: none;
        border-bottom: 2px solid #2effaa;
        border-right: none;
    }

    .vertical-text {
        position: static;
        transform: none;
        text-align: center;
        display: block;
        padding: 0.8rem;
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .division-container .grid-console-team {
        width: 100%;
    }

    .division-heading {
        font-size: 1.1rem;
        padding-left: 0.8rem;
    }
}

@media (max-width: 700px) {

    .terminal {
        padding: 1rem;
    }

    .menu-bar {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .card-title {
        font-size: 1.3rem;
    }
}