:root {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #263349;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-green: #10b981;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Навигация */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.logo-badge {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 24px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: #fff;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
}

/* Первый экран (Hero) */
.hero {
    padding: 85px 0 65px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.18), transparent 60%);
}

.pill {
    display: inline-block;
    background: rgba(16, 185, 129, 0.14);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(2.1rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.18;
    max-width: 880px;
    margin: 0 auto 20px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 60px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
}

.stat-item h3 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 4px;
}

.stat-item span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Секции и сетка возможностей */
section {
    padding: 70px 0;
}

.section-alt {
    background: rgba(30, 41, 59, 0.35);
}

.section-header {
    text-align: center;
    margin-bottom: 44px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: 0.25s ease;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: #475569;
    transform: translateY(-3px);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}
/* Галерея скриншотов */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 24px;
}

.shot-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    cursor: zoom-in;
    transition: 0.25s ease;
}

.shot-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.shot-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: #0b1120;
    border-bottom: 1px solid var(--border);
}

.shot-caption {
    padding: 16px 20px;
}

.shot-caption h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.shot-caption p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Модальное окно увеличения скриншота */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(9, 13, 22, 0.92);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 92vw;
    max-height: 86vh;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

/* Налоговые режимы */
.regimes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.regime-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
}

.regime-tag {
    display: inline-block;
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.regime-tag.npd {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
}

.regime-card ul {
    list-style: none;
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.regime-card ul li {
    margin-bottom: 6px;
    padding-left: 18px;
    position: relative;
}

.regime-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

/* Блок локального ИИ и конфига */
.ai-box {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: center;
}

.ai-title {
    font-size: 1.9rem;
    margin-bottom: 16px;
}

.ai-desc {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.code-wrapper {
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #1e293b;
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
}

.copy-btn:hover {
    border-color: var(--accent);
    background: #263349;
}

.code-block {
    background: #090d16;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 20px;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.88rem;
    color: #a5b4fc;
    overflow-x: auto;
}

.code-comment {
    color: #64748b;
}

.code-green {
    color: #34d399;
}

/* Скачивание */
.cta-box {
    text-align: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(16, 185, 129, 0.12));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 52px 24px;
}

.cta-box h2 {
    font-size: 2rem;
    margin-bottom: 14px;
}

.cta-box p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 28px;
}

.cta-box .sys-req {
    font-size: 0.82rem;
    margin-top: 18px;
    margin-bottom: 0;
}

/* Форма заявки */
.contact-box {
    max-width: 680px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
}

.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #0f172a;
    color: #fff;
    font-size: 0.95rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

.form-status {
    margin-top: 14px;
    font-size: 0.92rem;
    color: #34d399;
    display: none;
}

footer {
    border-top: 1px solid var(--border);
    padding: 36px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 850px) {
    .ai-box {
        grid-template-columns: 1fr;
        padding: 26px;
    }
    .nav-links {
        display: none;
    }
}
/* Раздел: Обо мне */
.about-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 32px;
    align-items: center;
}

.about-avatar {
    width: 110px;
    height: 110px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(16, 185, 129, 0.25));
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
}

.about-title {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.about-text {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 14px;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.about-tags span {
    background: rgba(59, 130, 246, 0.14);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Раздел: Контакты */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    transition: 0.25s ease;
    display: block;
}

.contact-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.contact-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.contact-card h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.contact-card p {
    color: #60a5fa;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 6px;
}

.contact-card span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 700px) {
    .about-box {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 28px 22px;
    }
    .about-avatar {
        margin: 0 auto;
    }
    .about-tags {
        justify-content: center;
    }
}
/* Список дистрибутивов и обновлений */
.downloads-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 16px;
    max-width: 860px;
    margin: 0 auto 12px;
    text-align: left;
}

.download-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    transition: 0.2s ease;
}

.download-item:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}

.download-info h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 4px;
    word-break: break-word;
}

.download-info span {
    font-size: 0.82rem;
    color: var(--text-muted);
}
/* Чекбокс согласия на обработку ПД */
.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    text-align: left;
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.form-consent input[type="checkbox"] {
    margin-top: 3px;
    width: 17px;
    height: 17px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.form-consent a {
    color: #60a5fa;
    text-decoration: underline;
}

/* Модальное окно Политики ПД */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(9, 13, 22, 0.88);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 680px;
    width: 100%;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1.15rem;
    color: #fff;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 22px 24px;
    overflow-y: auto;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 12px;
}

.modal-body strong {
    color: #f8fafc;
}
