/* Импорт современного шрифта */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@300;400;500;600;700&display=swap');

/* === СБРОС И ГЛОБАЛЬНЫЕ СТИЛИ === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro Display', 'Inter', sans-serif;
    background: linear-gradient(145deg, #0a1a12 0%, #1a2f20 100%);
    min-height: 100vh;
    padding: 30px 20px;
    position: relative;
    overflow-x: hidden;
}

/* === КОНТЕЙНЕР ДЛЯ НЕЙРОННОЙ СЕТИ === */
.neural-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1s ease;
}

.neural-container.visible {
    opacity: 1;
}

.neuron {
    position: absolute;
    width: 0;
    height: 0;
    background: rgba(120, 255, 150, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(60, 255, 100, 0.8);
    pointer-events: none;
    z-index: 0;
    transition: all 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.1);
    opacity: 0;
}

.neuron.visible {
    width: 6px;
    height: 6px;
    opacity: 0.8;
    animation: neuronPulse 3s infinite ease-in-out;
}

.neuron-large.visible {
    width: 12px;
    height: 12px;
    background: rgba(80, 220, 120, 0.9);
    box-shadow: 0 0 30px rgba(60, 255, 100, 0.9);
    animation: neuronPulseLarge 4s infinite ease-in-out;
}

.connection {
    position: absolute;
    height: 0;
    background: linear-gradient(90deg, rgba(60, 200, 100, 0.2), rgba(120, 255, 150, 0.6), rgba(60, 200, 100, 0.2));
    transform-origin: left center;
    pointer-events: none;
    z-index: 0;
    box-shadow: 0 0 10px rgba(60, 255, 100, 0.3);
    transition: height 0.3s ease, opacity 0.5s ease;
    opacity: 0;
}

.connection.visible {
    height: 2px;
    opacity: 0.6;
    animation: connectionGlow 3s infinite alternate;
}

.active-neuron {
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.9) !important;
    animation: neuronActive 0.3s infinite alternate !important;
}

.active-connection {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4)) !important;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.8) !important;
    height: 3px !important;
    opacity: 1 !important;
}

@keyframes neuronPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.5); opacity: 1; }
}

@keyframes neuronPulseLarge {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.6); opacity: 1; }
}

@keyframes neuronActive {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(2); opacity: 1; }
}

@keyframes connectionGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

/* === LIQUID GLASS ЭФФЕКТЫ === */
.liquid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.liquid-blob {
    position: absolute;
    background: rgba(60, 120, 80, 0.03);
    border-radius: 62% 38% 42% 58% / 37% 53% 47% 63%;
    filter: blur(60px);
    animation: liquidMove 25s infinite ease-in-out;
}

.liquid-blob:nth-child(1) {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
    background: rgba(40, 180, 80, 0.05);
    animation-duration: 30s;
}

.liquid-blob:nth-child(2) {
    width: 700px;
    height: 700px;
    bottom: -300px;
    left: -300px;
    background: rgba(20, 140, 60, 0.05);
    animation-duration: 35s;
    animation-direction: reverse;
}

@keyframes liquidMove {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(3%, 3%) rotate(120deg) scale(1.1); }
    66% { transform: translate(-3%, -3%) rotate(240deg) scale(0.9); }
}

/* === ОСНОВНОЙ КОНТЕЙНЕР === */
.container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* === СТИЛИ ДЛЯ LIQUID GLASS === */
.liquid-glass {
    background: rgba(20, 40, 28, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(80, 200, 120, 0.25);
    border-radius: 40px;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.4), inset 0 1px 2px rgba(120, 255, 150, 0.3);
}

/* === КНОПКИ В ВЕРХНИХ УГЛАХ === */
.corner-buttons {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 1000;
}

.corner-button {
    pointer-events: auto;
    background: rgba(30, 100, 50, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 140, 0.4);
    border-radius: 60px;
    padding: 12px 25px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.corner-button:hover {
    background: rgba(40, 120, 60, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(120, 255, 150, 0.6);
}

/* === КНОПКА ОБРАТНОЙ СВЯЗИ === */
.feedback-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: rgba(30, 100, 50, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 140, 0.4);
    border-radius: 60px;
    padding: 15px 30px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feedback-button:hover {
    background: rgba(40, 120, 60, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(120, 255, 150, 0.6);
}

/* === ХЕДЕР === */
.header {
    padding: 30px 40px;
    background: rgba(10, 30, 18, 0.5);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(80, 200, 120, 0.3);
    color: white;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 25px;
    text-align: center;
    margin-top: 70px;
}

.header h1 {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-shadow: 0 2px 15px rgba(60, 255, 100, 0.3);
}

.ios-badge {
    background: rgba(60, 200, 100, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    border: 1px solid rgba(80, 255, 120, 0.4);
    box-shadow: inset 0 1px 2px rgba(120, 255, 150, 0.3);
    color: #b0ffc0;
}

.header p {
    color: rgba(200, 255, 210, 0.9);
    font-size: 18px;
    font-weight: 400;
    text-shadow: 0 1px 10px rgba(0,0,0,0.2);
}

/* === ОСНОВНАЯ ФОРМА === */
.main-card {
    padding: 40px;
    background: rgba(20, 40, 28, 0.35);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 14px;
    color: rgba(180, 255, 190, 0.9);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

/* Стили для полей ввода */
.liquid-input {
    width: 100%;
    padding: 18px 22px;
    background: rgba(30, 60, 40, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(80, 200, 120, 0.3);
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s ease;
    color: white;
    font-weight: 500;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.liquid-input:hover {
    background: rgba(40, 80, 50, 0.4);
    border-color: rgba(100, 255, 140, 0.5);
}

.liquid-input:focus {
    outline: none;
    background: rgba(40, 80, 50, 0.5);
    border-color: rgba(120, 255, 150, 0.8);
    box-shadow: 0 0 0 4px rgba(60, 200, 100, 0.15), inset 0 2px 5px rgba(0,0,0,0.2);
}

.liquid-input::placeholder {
    color: rgba(180, 255, 190, 0.4);
    font-weight: 400;
}

/* Кнопка */
.ios-button {
    width: 100%;
    padding: 18px 30px;
    background: rgba(30, 100, 50, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 140, 0.4);
    border-radius: 40px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 25px -10px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(120, 255, 150, 0.4);
    text-transform: uppercase;
    margin-top: 15px;
}

.ios-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(120, 255, 150, 0.3), transparent);
    transition: left 0.5s ease;
}

.ios-button:hover {
    background: rgba(40, 120, 60, 0.7);
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.6), inset 0 1px 3px rgba(120, 255, 150, 0.5);
    border-color: rgba(120, 255, 150, 0.6);
}

.ios-button:hover::before {
    left: 100%;
}

.ios-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-cancel {
    background: rgba(100, 100, 100, 0.6) !important;
}

/* Блок результата */
.result-card {
    padding: 35px;
    background: rgba(20, 40, 28, 0.35);
    backdrop-filter: blur(20px) saturate(180%);
    animation: fadeInUp 0.6s ease;
}

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

.result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(80, 200, 120, 0.3);
}

.result-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 10px rgba(60, 255, 100, 0.3);
}

.result-icon {
    width: 50px;
    height: 50px;
    background: rgba(60, 200, 100, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 1px solid rgba(80, 255, 120, 0.4);
    color: #b0ffc0;
}

/* Информация о здании */
.building-info {
    background: rgba(60, 120, 80, 0.2);
    border-radius: 25px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(80, 255, 120, 0.2);
}

.building-name {
    font-size: 18px;
    font-weight: 600;
    color: #b0ffc0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.building-address {
    font-size: 15px;
    color: rgba(220, 255, 220, 0.9);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.building-purpose {
    font-size: 13px;
    color: rgba(180, 255, 190, 0.6);
    margin-top: 5px;
}

/* Информация об организации */
.org-info {
    margin-bottom: 25px;
}

.org-name {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(60, 255, 100, 0.3);
}

.rubrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.rubric-tag {
    background: rgba(80, 200, 120, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #d0ffd8;
    border: 1px solid rgba(80, 255, 120, 0.2);
}

.services-section {
    margin-top: 15px;
}

.services-title {
    font-size: 14px;
    font-weight: 600;
    color: #b0ffc0;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.services-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.service-tag {
    background: rgba(100, 255, 150, 0.1);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: #e0ffe8;
    border: 1px solid rgba(100, 255, 150, 0.2);
}

/* MCC результат */
.mcc-result {
    text-align: center;
    padding: 20px;
    background: rgba(60, 200, 100, 0.1);
    border-radius: 30px;
    border: 1px solid rgba(80, 255, 120, 0.2);
}

.mcc-code {
    font-size: 64px;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(60, 255, 100, 0.5);
    letter-spacing: 4px;
}

.mcc-name {
    font-size: 24px;
    font-weight: 600;
    color: #d0ffd8;
    margin-bottom: 10px;
}

.mcc-description {
    color: rgba(220, 255, 220, 0.8);
    margin-bottom: 15px;
    font-size: 14px;
}

.matches-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 15px 0;
}

.match-tag {
    background: rgba(60, 200, 100, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #d0ffd8;
    border: 1px solid rgba(80, 255, 120, 0.3);
}

.confidence-meter {
    margin-top: 15px;
}

.confidence-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 500;
    color: white;
    font-size: 14px;
}

.confidence-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #70ff90, #30c050);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 20px #40ff70;
}

/* Кнопка "Неверный МСС" */
.wrong-mcc-button {
    background: rgba(255, 100, 100, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 100, 100, 0.4);
    border-radius: 40px;
    padding: 10px 20px;
    color: #ffa0a0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.wrong-mcc-button:hover {
    background: rgba(255, 100, 100, 0.3);
    transform: translateY(-2px);
    border-color: rgba(255, 150, 150, 0.6);
    color: #ffc0c0;
}

/* Уведомление */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 100, 50, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 140, 0.4);
    border-radius: 50px;
    padding: 12px 25px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    z-index: 1001;
    animation: fadeInUp 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Сообщения об ошибках */
.error-message {
    background: rgba(255, 100, 100, 0.15);
    border-left: 4px solid #ff6b6b;
    padding: 20px;
    border-radius: 24px;
    color: white;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 100, 100, 0.3);
}

/* Лоадер */
.loader {
    text-align: center;
    padding: 40px;
}

.neural-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.neural-spinner-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #70ff90;
    border-right-color: #40c070;
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
    box-shadow: 0 0 20px rgba(80, 255, 120, 0.3);
}

.neural-spinner-circle:nth-child(2) {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-top-color: #c0ffd0;
    border-right-color: #60e080;
    animation-direction: reverse;
    animation-duration: 2s;
}

.neural-spinner-circle:nth-child(3) {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    border-top-color: #ffffff;
    border-right-color: #90ffb0;
    animation-duration: 1s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Модальное окно */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    background: rgba(20, 40, 28, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(80, 255, 120, 0.3);
    border-radius: 40px;
    padding: 35px;
    color: white;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(80, 255, 120, 0.3);
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 100, 100, 0.2);
    border: 1px solid rgba(255, 100, 100, 0.4);
    color: #ffa0a0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}

.modal-close:hover {
    background: rgba(255, 100, 100, 0.3);
    transform: scale(1.1);
}

/* Инструкция */
.instruction-content {
    color: rgba(220, 255, 220, 0.9);
    line-height: 1.6;
}

.instruction-section {
    margin-bottom: 25px;
}

.instruction-section h3 {
    color: #b0ffc0;
    margin-bottom: 10px;
}

.instruction-step {
    display: flex;
    gap: 15px;
    background: rgba(60, 120, 80, 0.3);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
}

.step-number {
    background: #b0ffc0;
    color: #0a1a12;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 600;
    color: #b0ffc0;
    display: block;
    margin-bottom: 5px;
}

.step-hint {
    color: rgba(180, 255, 190, 0.6);
    font-size: 13px;
    margin-top: 5px;
}

.example {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 10px;
}

.highlight {
    background: rgba(60, 200, 100, 0.3);
    padding: 3px 8px;
    border-radius: 10px;
}

/* Форма обратной связи */
.feedback-description {
    margin-bottom: 25px;
    text-align: center;
    color: rgba(200, 255, 210, 0.9);
}

.feedback-description small {
    color: rgba(180, 255, 190, 0.6);
}

.button-group {
    display: flex;
    gap: 15px;
}

.button-group .ios-button {
    flex: 2;
}

.feedback-status {
    margin-top: 20px;
    text-align: center;
    min-height: 30px;
}

.file-list {
    margin-top: 10px;
}

.file-item {
    background: rgba(60, 200, 100, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    margin: 5px 0;
    font-size: 13px;
    border: 1px solid rgba(80, 255, 120, 0.2);
    color: #d0ffd8;
}

.hint-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: rgba(60, 200, 100, 0.2);
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    margin-left: 8px;
    cursor: help;
    position: relative;
    border: 1px solid rgba(80, 255, 120, 0.4);
    color: #b0ffc0;
}

.hint-icon:hover::after {
    content: attr(data-hint);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 40, 28, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1001;
    margin-bottom: 8px;
    border: 1px solid rgba(80, 255, 120, 0.3);
}

/* Стили для загрузки файлов */
input[type="file"] {
    padding: 12px 20px;
    cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button {
    background: rgba(60, 200, 100, 0.3);
    border: 1px solid rgba(80, 255, 120, 0.4);
    border-radius: 30px;
    color: white;
    padding: 10px 20px;
    margin-right: 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background: rgba(60, 200, 100, 0.5);
}

/* Футер */
.footer {
    text-align: center;
    margin-top: 25px;
    color: rgba(180, 255, 190, 0.4);
    font-size: 13px;
    padding: 15px;
}

/* Адаптация для мобильных */
@media screen and (max-width: 768px) {
    body {
        padding: 15px;
    }

    .corner-button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .feedback-button {
        padding: 12px 20px;
        font-size: 14px;
        bottom: 20px;
        right: 20px;
    }

    .header {
        margin-top: 80px;
        padding: 20px;
    }

    .header h1 {
        font-size: 24px;
        flex-direction: column;
        gap: 8px;
    }

    .header p {
        font-size: 14px;
    }

    .main-card {
        padding: 25px;
    }

    .mcc-code {
        font-size: 48px;
    }
}

@media screen and (max-width: 480px) {
    .corner-buttons {
        top: 10px;
        left: 10px;
        right: 10px;
    }

    .corner-button {
        padding: 6px 12px;
        font-size: 12px;
    }

    .feedback-button {
        padding: 10px 15px;
        font-size: 12px;
        bottom: 15px;
        right: 15px;
        gap: 5px;
    }

    .header {
        margin-top: 70px;
        padding: 15px;
    }

    .header h1 {
        font-size: 20px;
    }

    .main-card {
        padding: 20px;
    }

    .result-card {
        padding: 20px;
    }

    .mcc-code {
        font-size: 42px;
    }

    .mcc-name {
        font-size: 16px;
    }

    .org-name {
        font-size: 18px;
    }

    .button-group {
        flex-direction: column;
    }

    .modal-content {
        padding: 20px;
    }
}
/* Кнопка "Неверный МСС" */
.wrong-mcc-button {
    background: rgba(255, 100, 100, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 100, 100, 0.4);
    border-radius: 40px;
    padding: 10px 20px;
    color: #ffa0a0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.wrong-mcc-button:hover {
    background: rgba(255, 100, 100, 0.3);
    transform: translateY(-2px);
    border-color: rgba(255, 150, 150, 0.6);
    color: #ffc0c0;
}

/* Уведомление */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 100, 50, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 140, 0.4);
    border-radius: 50px;
    padding: 12px 25px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    z-index: 1001;
    animation: fadeInUp 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}
/* Кнопка рекомендаций */
.recommendations-button {
    background: rgba(30, 100, 50, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 140, 0.5);
    border-radius: 40px;
    padding: 10px 20px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.recommendations-button:hover {
    background: rgba(40, 120, 60, 0.9);
    transform: translateY(-2px);
    border-color: rgba(120, 255, 150, 0.7);
    box-shadow: 0 5px 15px rgba(60, 200, 100, 0.3);
}