/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a1628;
    --bg-darker: #050d18;
    --bg-card: #112240;
    --text-primary: #ffffff;
    --text-secondary: #8892b0;
    --accent-blue: #00bfff;
    --accent-cyan: #00d9ff;
    --accent-green: #22c55e;
    --accent-yellow: #f59e0b;
    --btn-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

section {
    scroll-margin-top: 90px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    background-color: var(--bg-darker);
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-image {
    height: 50px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    color: var(--text-primary);
    font-size: 20px;
    margin: 0;
    font-weight: 500;
}

.tagline {
    color: var(--text-secondary);
    font-size: 14px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--accent-cyan);
}

.btn-primary {
    background: var(--btn-gradient);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Главная секция */
.hero {
    padding: 80px 0 60px;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    line-height: 1.3;
    margin-bottom: 20px;
}

.highlight {
    color: var(--accent-cyan);
    display: block;
}

.hero-description {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Секция роботов */
.robots-section {
    padding: 60px 0;
}

.robots-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.filter-chip {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    color: var(--text-primary);
    border-color: rgba(0, 191, 255, 0.6);
    background: rgba(0, 191, 255, 0.08);
}

.filter-chip.active {
    color: #0b1324;
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 8px 20px rgba(0, 217, 255, 0.25);
}

.robots-scroll-wrap {
    position: relative;
}

.robots-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 24px 90px 20px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 191, 255, 0.35) rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.robots-scroll-wrap::before,
.robots-scroll-wrap::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 2;
}

.robots-scroll-wrap::before {
    top: 0;
    bottom: 0;
    height: auto;
    width: 80px;
    right: auto;
    background: linear-gradient(90deg, rgba(10, 22, 40, 0.9), rgba(10, 22, 40, 0));
}

.robots-scroll-wrap::after {
    top: 0;
    bottom: 0;
    height: auto;
    width: 80px;
    left: auto;
    background: linear-gradient(270deg, rgba(10, 22, 40, 0.9), rgba(10, 22, 40, 0));
}

.robots-scroll::-webkit-scrollbar {
    height: 8px;
}

.robots-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.robots-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 191, 255, 0.35);
    border-radius: 6px;
}

.robots-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 191, 255, 0.6);
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: var(--accent-cyan);
}

.section-title-white {
    color: #ffffff;
}

.robots-grid {
    display: flex;
    gap: 26px;
    margin-bottom: 40px;
    align-items: stretch;
    padding: 0 10px;
}

.robot-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    scroll-snap-align: center;
    min-width: 340px;
    max-width: 360px;
    flex: 0 0 340px;
    display: flex;
    flex-direction: column;
    transform: scale(0.92);
    min-height: 380px;
}

.robot-card:hover {
    transform: scale(0.98);
    box-shadow: var(--shadow-lg);
}

.robot-card.is-center {
    transform: scale(1.06);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    border-color: rgba(0, 191, 255, 0.35);
    min-height: 400px;
}

.robot-icon {
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.robot-title {
    font-size: 17px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.35;
    margin-bottom: 15px;
}

.robot-description {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.6;
    flex-grow: 1;
}

.btn-robot {
    background: var(--btn-gradient);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 191, 255, 0.18);
    color: var(--accent-cyan);
    font-size: 28px;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background: rgba(0, 191, 255, 0.32);
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn-prev {
    left: 10px;
}

.carousel-btn-next {
    right: 10px;
}

.btn-robot:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.5);
}

.btn-robot.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.btn-robot.active .btn-icon::before {
    content: '⏸';
}

.robot-status {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
}

.robot-card.talking .status-indicator {
    background: #f59e0b;
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* Секция голосов */
.voices-section {
    padding: 60px 0;
    background: var(--bg-darker);
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 18px;
}

/* Таблица голосов */
.voices-table-wrapper {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 50px;
}

.voices-table {
    width: 100%;
    border-collapse: collapse;
}

.voices-table thead {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(111, 66, 193, 0.1));
}

.voices-table th {
    padding: 10px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--accent-cyan);
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.voices-table th:first-child {
    width: 80px;
    text-align: center;
}

.voices-table th:last-child {
    width: 150px;
    text-align: center;
}

.voices-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.voices-table tbody tr:hover {
    background: rgba(13, 110, 253, 0.05);
}

.voices-table tbody tr:last-child {
    border-bottom: none;
}

.voices-table td {
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

.voices-table td:first-child {
    text-align: center;
    font-weight: 600;
    color: var(--accent-cyan);
}

.voices-table td:last-child {
    text-align: center;
}

.admin-voices-section {
    padding-top: 40px;
}

.admin-add-panel {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
}

.admin-add-fields {
    display: grid;
    grid-template-columns: 200px 90px minmax(0, 1fr) 200px;
    gap: 16px;
    flex: 1;
}

.admin-table-wrapper {
    margin-bottom: 0;
}

.admin-voices-table th,
.admin-voices-table td {
    vertical-align: middle;
}

.admin-voices-table th:nth-child(1),
.admin-voices-table td:nth-child(1) {
    width: 60px;
    text-align: center;
}

.admin-voices-table th:nth-child(2),
.admin-voices-table td:nth-child(2),
.admin-voices-table th:nth-child(5),
.admin-voices-table td:nth-child(5) {
    width: 150px;
}

.admin-voices-table th:nth-child(3),
.admin-voices-table td:nth-child(3) {
    width: 80px;
    text-align: center;
}

.admin-voices-table th:nth-child(4),
.admin-voices-table td:nth-child(4) {
    width: auto;
}

.admin-voices-table th:nth-child(6),
.admin-voices-table td:nth-child(6),
.admin-voices-table th:nth-child(7),
.admin-voices-table td:nth-child(7),
.admin-voices-table th:nth-child(8),
.admin-voices-table td:nth-child(8) {
    width: 64px;
    text-align: center;
}

.admin-cell-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
}

.admin-gender-group .form-input,
.admin-gender-input {
    text-align: center;
}

.admin-number-cell {
    color: var(--accent-cyan);
    font-weight: 600;
}

.admin-action-btn {
    width: 100%;
    padding: 8px 14px;
    font-size: 14px;
}

.admin-icon-btn {
    width: 44px;
    height: 40px;
    padding: 0;
    font-size: 18px;
}

.admin-icon-btn:focus {
    outline: 2px solid rgba(0, 217, 255, 0.45);
    outline-offset: 2px;
}

.admin-delete-btn {
    border-color: rgba(239, 68, 68, 0.7);
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.12);
}

.admin-delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.loading-cell {
    text-align: center !important;
    padding: 40px !important;
    color: var(--text-secondary);
}

.voice-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.voice-card-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--accent-cyan);
}

.voice-selector {
    margin-bottom: 15px;
}

.voice-selector label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.voice-select {
    width: 100%;
    padding: 12px;
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    cursor: pointer;
}

.voice-select:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.btn-preview {
    background: rgba(0, 191, 255, 0.2);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    transition: all 0.3s;
}

.btn-preview:hover {
    background: rgba(0, 191, 255, 0.3);
}

.voices-table .btn-preview {
    width: auto;
    padding: 8px 12px;
    font-size: 18px;
    min-width: unset;
}

/* Пагинация голосов */
.voices-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
    padding: 20px;
}

.pagination-btn {
    background: rgba(13, 110, 253, 0.2);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(13, 110, 253, 0.3);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* Настройки API */
.api-settings {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.api-settings-section {
    padding: 40px 0 70px;
}

.comparison-section {
    padding: 50px 0 40px;
}

.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    min-width: 900px;
}

.comparison-table thead th {
}

.comparison-table thead th:first-child {
    width: 70px;
    text-align: center;
}

.comparison-table thead th:nth-child(2) {
    text-align: left;
}

.comparison-table tbody td:nth-child(2) {
    color: var(--text-secondary);
}

.comparison-table tbody td:nth-child(3),
.comparison-table tbody td:nth-child(4),
.comparison-table thead th:nth-child(3),
.comparison-table thead th:nth-child(4) {
    text-align: center;
    width: 160px;
}

.check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    font-size: 14px;
    font-weight: 700;
}

.check-on {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

.check-off {
    color: transparent;
    background: transparent;
}

.settings-title {
    font-size: 24px;
    margin-bottom: 25px;
    color: var(--accent-cyan);
    text-align: center;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    color: var(--text-secondary);
    font-size: 14px;
}

.form-input {
    padding: 12px;
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.btn-secondary {
    background: rgba(0, 191, 255, 0.2);
    color: var(--accent-cyan);
    border: 1px solid var(--accent-cyan);
    padding: 12px 28px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(0, 191, 255, 0.3);
}

/* Login Form */
.login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 32px;
    background: var(--bg-dark);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-form .form-group {
    margin-bottom: 16px;
}

.login-form .form-input {
    width: 100%;
    box-sizing: border-box;
}

.login-form .btn-primary {
    width: 100%;
    margin-top: 8px;
}

.error-text {
    color: #ef4444;
    font-size: 14px;
    margin-top: 12px;
    text-align: center;
    min-height: 20px;
}

#login-section {
    padding: 60px 0;
}

#login-section .section-title {
    text-align: center;
    margin-bottom: 32px;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.modal-header h3 {
    font-size: 24px;
    color: var(--accent-cyan);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 32px;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0;
    width: 40px;
    height: 40px;
}

.modal-close:hover {
    color: var(--accent-cyan);
}

.modal-body {
    padding: 30px;
}

.conversation-status {
    text-align: center;
    margin-bottom: 30px;
}

.status-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 3px solid var(--accent-cyan);
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
}

/* Состояния разговора: слушает / говорит / подключается */
.modal[data-state="listening"] .pulse-ring {
    border-color: var(--accent-cyan);
    animation-duration: 1.8s;
    opacity: 0.9;
}

.modal[data-state="speaking"] .pulse-ring {
    border-color: var(--accent-green);
    animation-duration: 0.9s;
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.4);
}

.modal[data-state="connecting"] .pulse-ring {
    border-color: var(--accent-yellow);
    animation-duration: 2.6s;
    opacity: 0.7;
}

.modal[data-state="idle"] .pulse-ring {
    border-color: var(--text-secondary);
    animation-duration: 3s;
    opacity: 0.5;
}

.pulse-ring:nth-child(2) {
    animation-delay: 0.5s;
}

.pulse-ring:nth-child(3) {
    animation-delay: 1s;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

#conversation-status-text {
    font-size: 18px;
    color: var(--text-secondary);
}

.conversation-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-control {
    flex: 1;
    background: var(--btn-gradient);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.btn-control .icon {
    font-size: 24px;
}

.btn-control:hover {
    transform: scale(1.05);
}

.btn-end {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.conversation-transcript {
    background: var(--bg-darker);
    border-radius: 8px;
    padding: 20px;
}

.conversation-transcript h4 {
    margin-bottom: 15px;
    color: var(--accent-cyan);
    font-size: 16px;
}

#transcript-content {
    max-height: 300px;
    overflow-y: auto;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.transcript-message {
    margin-bottom: 15px;
    padding: 10px;
    background: var(--bg-card);
    border-radius: 8px;
}

.transcript-message .speaker {
    font-weight: 600;
    color: var(--accent-cyan);
    margin-bottom: 5px;
}

/* Индикатор уровня микрофона */
.mic-level-indicator {
    background: var(--bg-darker);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.mic-level-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

#mic-level-db {
    font-weight: 600;
    color: var(--accent-cyan);
}

.mic-level-bar {
    height: 30px;
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.mic-level-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #3b82f6 50%, #f59e0b 75%, #ef4444 100%);
    width: 0%;
    transition: width 0.1s ease-out;
    border-radius: 15px;
}

.mic-level-hint {
    margin-top: 10px;
    padding: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    color: #fca5a5;
    font-size: 13px;
    text-align: center;
}

.mic-level-hint.good {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
}

.footer p {
    color: var(--text-secondary);
}

/* Страница сценариев поликлиники */
.page-hero {
    padding: 70px 0 50px;
    text-align: center;
}

.page-hero-title {
    font-size: 40px;
    line-height: 1.3;
    margin-bottom: 16px;
}

.page-hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
}

.assistant-hero {
    padding: 70px 0 40px;
}

.assistant-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 32px;
    align-items: center;
}

.assistant-hero-title {
    font-size: 40px;
    line-height: 1.3;
    margin-bottom: 16px;
}

.assistant-hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 520px;
}

.assistant-hero-image {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 36px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    width: fit-content;
    max-width: 100%;
}

.assistant-hero-image img {
    width: 100%;
    max-width: 400px;
    max-height: 400px;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    border: none;
    object-fit: cover;
    display: block;
}

.assistant-hero-card {
    display: flex;
    justify-content: center;
}

.assistant-hero-card .robot-card {
    transform: none;
    min-height: 0;
    max-width: 360px;
    border: 1px solid rgba(0, 217, 255, 0.6);
    box-shadow: 0 0 0 1px rgba(0, 217, 255, 0.35), 0 18px 40px rgba(0, 217, 255, 0.2);
}

.scenarios-section {
    padding: 50px 0 30px;
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.scenario-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
}

.scenario-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--accent-cyan);
}

.scenario-description {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.scenario-visual {
    margin-bottom: 18px;
    border-radius: 16px;
    padding: 18px;
    border: 1px solid transparent;
    background: rgba(5, 13, 24, 0.12);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    height: 220px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.scenario-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0, 217, 255, 0.25);
    border-radius: 16px;
    pointer-events: none;
    box-shadow: inset 0 0 24px rgba(0, 217, 255, 0.18);
}

.scenario-overlay-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(5, 13, 24, 0.55);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
    z-index: 2;
}

.scenario-visual img,
.scenario-visual video {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    display: block;
    object-fit: contain;
    object-position: center bottom;
    background: #fcfcff;
}

.scenario-visual-fill video {
    object-fit: cover;
}

.scenario-visual.tone-cyan {
}

.scenario-visual.tone-green {
}

.scenario-visual.tone-violet {
}

.scenario-visual.scenario-visual-violet {
    background: #fcfcff;
    align-items: center;
}

.scenario-visual.scenario-visual-violet img {
    width: auto;
    height: auto;
    max-width: 86%;
    max-height: 86%;
    margin: 0 auto;
    background: transparent;
}

.scenario-visual.scenario-visual-callback {
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9), rgba(190, 225, 255, 0.55) 45%, rgba(20, 42, 70, 0.95));
}

.scenario-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.scenario-list li {
    background: rgba(0, 191, 255, 0.08);
    border: 1px solid rgba(0, 191, 255, 0.18);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.effects-section {
    padding: 40px 0 20px;
}

.effects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.effect-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 18px 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.effect-card strong {
    display: block;
    color: var(--accent-cyan);
    font-size: 16px;
    margin-bottom: 8px;
}

.example-section {
    padding: 40px 0 70px;
}

.example-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.example-title {
    font-size: 20px;
    color: var(--accent-cyan);
    margin-bottom: 14px;
}

.example-flow {
    display: grid;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.example-step {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

    .effects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .assistant-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .assistant-hero-subtitle {
        margin: 0 auto;
    }
}

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

    .page-hero-title {
        font-size: 30px;
    }

    .assistant-hero-title {
        font-size: 30px;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .nav {
        flex-direction: column;
        gap: 15px;
    }

    .hero-title {
        font-size: 32px;
    }

    .robots-grid {
        gap: 18px;
    }

    .robots-scroll {
        padding: 10px 70px 20px;
        max-width: 520px;
    }

    .robot-card {
        min-width: 300px;
        max-width: 320px;
        flex: 0 0 300px;
        min-height: 360px;
    }
    
    .voices-table-wrapper {
        overflow-x: auto;
    }
    
    .voices-table {
        min-width: 600px;
    }

    .modal-content {
        width: 95%;
    }
}
