/* Общие переменные (можно вынести в отдельный файл, но для простоты оставим здесь) */
:root {
    --text-primary: #0d0d0d;
    --text-secondary: rgba(13,13,13,0.58);
    --text-tertiary: rgba(13,13,13,0.4);
    --text-static-white: #ffffff;
    --icon-primary: #0d0d0d;
    --icon-secondary: rgba(13,13,13,0.58);
    --icon-accent: #0a7cff;
    --background-primary: #ffffff;
    --background-secondary: rgba(13,13,13,0.06);
    --background-tertiary: rgba(13,13,13,0.03);
    --background-static-dark: #202020;
    --border-primary: rgba(13,13,13,0.12);
    --border-tertiary: rgba(13,13,13,0.06);
    --btn-primary: #0a7cff;
    --font-primary: 'Inter', sans-serif;
    --z-popup: 1060;
    --z-modal: 2000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: var(--background-primary);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
}

.app {
    display: flex;
    height: 100vh;
    width: 100%;
    position: relative;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
    background: var(--background-primary);
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid var(--border-tertiary);
    position: sticky;
    top: 0;
    z-index: 5;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--icon-primary);
    margin-right: 12px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.mobile-menu-btn:hover {
    background: var(--background-tertiary);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
}

.model-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 16px 4px 8px;
    background: white;
    border: 1px solid var(--border-primary);
    border-radius: 40px;
    cursor: pointer;
    height: 44px;
    position: relative;
}

.model-chip img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}

.model-chip span {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

.mobile-model-chip {
    display: none;
    margin: 16px 0 8px;
    justify-content: center;
    position: relative;
}
.mobile-model-chip .model-chip {
    display: inline-flex;
}

@media (max-width: 768px) {
    .main-header .model-chip {
        display: none;
    }
    .mobile-model-chip {
        display: flex;
    }
}

.right-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.stars {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--background-secondary);
    border-radius: 40px;
    font-size: 14px;
    color: var(--text-secondary);
}

.stars i {
    color: #ffb347;
}

.notification-btn {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--icon-secondary);
    font-size: 22px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    position: relative;
}

.notification-btn:hover {
    background: var(--background-tertiary);
    color: var(--icon-primary);
}

.news-popup {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.03);
    width: 360px;
    border: 1px solid var(--border-primary);
    display: none;
    z-index: var(--z-popup);
    overflow: hidden;
}

.news-popup.show {
    display: block;
}

.news-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-tertiary);
    background: white;
}

.news-popup-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.news-popup-header i {
    color: var(--icon-secondary);
    cursor: pointer;
    font-size: 20px;
    transition: color 0.2s;
}

.news-popup-header i:hover {
    color: var(--icon-primary);
}

.news-list {
    max-height: 340px;
    overflow-y: auto;
    padding: 0 20px;
}

.news-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-tertiary);
}

.news-item:last-child {
    border-bottom: none;
}

.news-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.news-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.news-popup .news-button {
    display: inline-block;
    padding: 6px 16px;
    background-color: transparent;
    border: 1px solid #0a7cff;
    border-radius: 30px;
    color: #0a7cff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
    line-height: 1.4;
}

.news-popup .news-button:hover {
    background-color: #0a7cff !important;
    color: white !important;
    border-color: #0a7cff !important;
}

.login-btn {
    background: var(--btn-primary);
    border: none;
    border-radius: 40px;
    padding: 6px 20px;
    font-weight: 500;
    font-size: 14px;
    color: white;
    cursor: pointer;
    height: 40px;
    transition: background 0.2s;
}

.login-btn:hover {
    background: #248aff;
}

.model-popup-desktop,
.model-popup-mobile {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.03);
    border: 1px solid var(--border-primary);
    overflow: hidden;
    display: none;
    z-index: var(--z-popup);
}

.model-popup-desktop.show,
.model-popup-mobile.show {
    display: block;
}

.model-popup-desktop {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 460px;
}

.model-popup-mobile {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 460px;
}

.model-popup-header {
    padding: 20px 20px 12px;
    border-bottom: 1px solid var(--border-tertiary);
}

.model-popup-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.model-search {
    position: relative;
    margin-bottom: 16px;
}

.model-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--icon-tertiary);
    font-size: 16px;
}

.model-search input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    background: var(--background-secondary);
    transition: background 0.2s;
}

.model-search input:focus {
    background: var(--background-tertiary);
}

.model-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 8px;
}

.category-chip {
    padding: 6px 0;
    background: transparent;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s;
    position: relative;
}

.category-chip::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background 0.2s;
}

.category-chip:hover {
    color: var(--text-primary);
}

.category-chip.active {
    color: var(--icon-accent);
    font-weight: 600;
}

.category-chip.active::after {
    background: var(--icon-accent);
}

.model-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px 0;
}

.model-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-tertiary);
}

.model-item:last-child {
    border-bottom: none;
}

.model-item:hover {
    background: var(--background-tertiary);
}

.model-item img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--background-secondary);
    border: 1px solid var(--border-tertiary);
    flex-shrink: 0;
}

.model-info {
    flex: 1;
    min-width: 0;
}

.model-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.model-price {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    background: var(--background-secondary);
    padding: 2px 8px;
    border-radius: 30px;
    border: 1px solid var(--border-tertiary);
}

.model-price i {
    color: #ffb347;
    font-size: 11px;
}

.model-info p {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
}

.model-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-primary);
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.model-item.selected .model-radio {
    border-color: var(--icon-accent);
}

.model-radio::after {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.2s;
}

.model-item.selected .model-radio::after {
    background: var(--icon-accent);
}

.dialog-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

@media (max-width: 768px) {
    .dialog-container {
        padding: 0 16px 40px;
    }
}

.hero {
    text-align: center;
    margin: 40px 0 24px;
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
}

.hero h1 span {
    background: linear-gradient(135deg, #0a7cff, #1dd6c1, #0a7cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero p {
    font-size: 16px;
    color: var(--text-secondary);
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.chat-input-container {
    background: white;
    border-radius: 32px;
    padding: 24px 28px;
    box-shadow: 0 20px 40px -8px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-input-container:focus-within {
    box-shadow: 0 20px 40px -8px rgba(10,124,255,0.2), 0 0 0 2px var(--icon-accent);
}

@media (max-width: 768px) {
    .chat-input-container {
        padding: 18px 20px;
    }
}

.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 0;
}

.file-preview {
    width: 110px;
    height: 110px;
    border-radius: 24px;
    background: var(--background-secondary);
    border: 1px solid var(--border-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview .file-icon {
    font-size: 40px;
    color: var(--icon-secondary);
    margin-bottom: 6px;
}

.file-preview .file-name {
    font-size: 11px;
    color: var(--text-secondary);
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 4px;
    text-align: center;
    line-height: 1.3;
}

.remove-file {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--icon-accent);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    line-height: 1;
    padding: 0;
    z-index: 2;
}

.file-preview:hover .remove-file {
    opacity: 1;
}

.remove-file:hover {
    background: #248aff;
}

.remove-file i {
    font-size: 14px;
}

.chat-input-container textarea {
    width: 100%;
    border: none;
    background: transparent;
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.5;
    resize: none;
    max-height: 120px;
    outline: none;
    color: var(--text-primary);
    padding: 0;
}

.chat-input-container textarea::placeholder {
    color: var(--text-tertiary);
}

.input-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.attach-btn, .send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--icon-secondary);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.attach-btn:hover {
    background: var(--background-tertiary);
    color: var(--icon-primary);
}

.send-btn {
    background: var(--btn-primary);
    color: white;
    font-size: 20px;
}

.send-btn:hover {
    background: #248aff;
    transform: scale(1.02);
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin: 48px 0 24px;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .section-title {
        font-size: 22px;
        margin: 32px 0 16px;
    }
}

.models-grid {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .models-grid {
        gap: 16px;
        justify-content: center;
    }
}

.model-card {
    width: 110px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
}

.model-card:hover {
    transform: translateY(-4px);
}

.model-card img {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid var(--border-tertiary);
    padding: 12px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.model-card span {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none;
    }
}

.more-models-btn {
    background: transparent;
    border: 1px solid var(--border-primary);
    border-radius: 40px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    margin-left: 8px;
}

.more-models-btn:hover {
    background: var(--background-tertiary);
}

.news-section {
    margin: 40px 0;
}

.news-cards {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .news-cards {
        flex-direction: column;
        gap: 16px;
    }
}

.news-card {
    flex: 1 1 280px;
    background: white;
    border-radius: 28px;
    border: 1px solid var(--border-tertiary);
    overflow: hidden;
    transition: box-shadow 0.2s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
}

.news-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.news-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--background-secondary);
}

.news-content {
    padding: 20px;
}

.news-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.news-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.news-content .read-more {
    background: transparent;
    border: 1px solid var(--border-accent);
    border-radius: 30px;
    padding: 6px 16px;
    color: var(--icon-accent);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
}

.news-content .read-more:hover {
    background: var(--background-accent);
    color: white;
    border-color: var(--border-accent);
}

.read-all-btn {
    margin-top: 24px;
    background: transparent;
    border: 1px solid var(--border-primary);
    border-radius: 40px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.read-all-btn:hover {
    background: var(--background-tertiary);
}

.features-section {
    background: var(--background-secondary);
    border-radius: 40px;
    padding: 40px;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .features-section {
        padding: 24px;
        border-radius: 28px;
    }
}

.features-section h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .features-section h2 {
        font-size: 24px;
    }
}

.features-section > p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.feature-cards {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .feature-cards {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 24px;
    }
}

.feature-card {
    flex: 1 1 220px;
    background: white;
    border-radius: 28px;
    padding: 24px;
    border: 1px solid var(--border-tertiary);
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
}

.feature-card .feature-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--background-secondary);
}

.feature-card .feature-media img,
.feature-card .feature-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-card h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tool-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    justify-content: center;
}

.tool-chip {
    background: white;
    border: 1px solid var(--border-tertiary);
    border-radius: 40px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.tool-chip:hover {
    background: var(--background-tertiary);
    border-color: var(--border-primary);
}

.tariff-section {
    background: linear-gradient(145deg, #f5faff, white);
    border-radius: 40px;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid var(--border-tertiary);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.1);
    width: 100%;
}

@media (max-width: 768px) {
    .tariff-section {
        padding: 24px;
    }
}

.tariff-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

@media (max-width: 768px) {
    .tariff-card {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    .tariff-action {
        text-align: center;
    }
}

.tariff-info {
    flex: 2 1 300px;
}

.tariff-info h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tariff-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 24px;
}

.tariff-price .tokens {
    font-size: 48px;
    font-weight: 700;
    color: var(--icon-accent);
}

.tariff-price .price {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.tariff-price .period {
    font-size: 16px;
    color: var(--text-secondary);
}

.tariff-features {
    list-style: none;
    columns: 2;
    column-gap: 30px;
}

@media (max-width: 768px) {
    .tariff-features {
        columns: 1;
    }
}

.tariff-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-primary);
    break-inside: avoid;
}

.tariff-features li i {
    color: var(--icon-accent);
    font-size: 18px;
    flex-shrink: 0;
}

.tariff-action {
    flex: 1 1 200px;
    text-align: right;
}

.tariff-btn {
    background: var(--btn-primary);
    border: none;
    border-radius: 40px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.tariff-btn:hover {
    background: #248aff;
}

.faq-section {
    margin: 40px 0;
}

.faq-item {
    border-bottom: 1px solid var(--border-tertiary);
    padding: 16px 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-primary);
}

.faq-question i {
    transition: transform 0.2s;
    color: var(--icon-secondary);
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-right: 24px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    margin-top: 12px;
}

.social-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid var(--border-tertiary);
    border-bottom: 1px solid var(--border-tertiary);
    margin: 40px 0;
}

@media (max-width: 768px) {
    .social-section {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

.social-section h3 {
    font-size: 20px;
    font-weight: 600;
}

.social-section p {
    color: var(--text-secondary);
    margin: 4px 0 0;
}

.social-links {
    display: flex;
    gap: 24px;
}

.social-links a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px dashed var(--border-primary);
}

.social-links a:hover {
    color: var(--icon-accent);
}

.footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-tertiary);
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .footer-columns {
        flex-direction: column;
        gap: 24px;
    }
}

.footer-col {
    flex: 1 1 160px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--icon-accent);
}

.footer-copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-tertiary);
    font-size: 13px;
    color: var(--text-tertiary);
    text-align: center;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .stars {
        display: none !important;
    }
}

.delete-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
}

.delete-modal-overlay.show {
    display: flex;
}

.delete-modal {
    background: white;
    border-radius: 32px;
    padding: 32px;
    width: 400px;
    max-width: 90vw;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    text-align: center;
}

.delete-modal h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.delete-modal p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.delete-modal-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.delete-modal-btn {
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.delete-modal-btn.cancel {
    background: var(--background-secondary);
    color: var(--text-primary);
}
.delete-modal-btn.cancel:hover {
    background: var(--background-tertiary);
}

.delete-modal-btn.confirm {
    background: var(--btn-primary);
    color: white;
}
.delete-modal-btn.confirm:hover {
    background: #248aff;
}

@media (max-width: 768px) {
    .model-popup-desktop {
        position: fixed;
        top: 70px;
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
        border-radius: 20px;
    }
}

.main-header {
    z-index: 100; /* чтобы быть над приклеенной формой */
}

.input-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 4px;
}

.attach-btn {
    margin-right: auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--icon-secondary);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--btn-primary);
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

/* Исправление кнопки "Читать" и "Более 50 нейросетей" */
.news-content .read-more {
    background: transparent;
    border: 1px solid var(--icon-accent);
    border-radius: 30px;
    padding: 6px 16px;
    color: var(--icon-accent);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    text-decoration: none;
}

.news-content .read-more:hover {
    background: var(--icon-accent);
    color: white;
    border-color: var(--icon-accent);
    text-decoration: none;
}

.more-models-btn {
    background: transparent;
    border: 1px solid var(--border-primary);
    border-radius: 40px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    margin-left: 8px;
    text-decoration: none;
    display: inline-block;
}

.more-models-btn:hover {
    background: var(--background-tertiary);
    text-decoration: none;
}