/* =========================================================
   Blender Site — Студенческая работа
   Автор: Исхаков Артур Радикович
   Дисциплина: Мультимедиа технологии, 2026
   ========================================================= */

/* ---------- Локальные шрифты ---------- */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* ---------- CSS-переменные ---------- */
:root {
    --bg-primary:      #1d1d1d;
    --bg-secondary:    #2b2b2b;
    --bg-elevated:     #3a3a3a;
    --surface-border:  #454545;
    --accent-primary:  #ea7600;
    --accent-hover:    #ff8c1f;
    --accent-soft:     #f5a866;
    --text-primary:    #f5f5f5;
    --text-secondary:  #b8b8b8;
    --text-muted:      #7a7a7a;
    --success:         #5dd39e;

    /* Переопределение Bootstrap */
    --bs-body-bg: var(--bg-primary);
    --bs-body-color: var(--text-primary);
    --bs-primary: var(--accent-primary);
    --bs-primary-rgb: 234, 118, 0;
    --bs-border-color: var(--surface-border);
    --bs-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Базовая типографика ---------- */
* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.35rem;
    font-weight: 700;
}

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

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

::selection {
    background: var(--accent-primary);
    color: #fff;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border: 3px solid var(--bg-secondary);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* ---------- Навигация ---------- */
.navbar {
    background: rgba(29, 29, 29, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    padding: 1rem 0;
    transition: all 0.3s ease;
    z-index: 1030;
}

.navbar-scrolled {
    padding: 0.6rem 0;
    background: rgba(29, 29, 29, 0.96);
    border-bottom-color: var(--surface-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.01em;
}

.navbar-brand .brand-logo {
    height: 32px;
    width: auto;
    display: inline-block;
}

.navbar-brand span.accent {
    color: var(--accent-primary);
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--accent-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--text-primary) !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.navbar-nav .nav-link.active {
    color: var(--text-primary) !important;
}

.navbar-toggler {
    border: 1px solid var(--surface-border);
    padding: 0.35rem 0.6rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(234, 118, 0, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23f5f5f5' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Кнопки ---------- */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-width: 2px;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(234, 118, 0, 0.35);
    color: #fff;
}

.btn-outline-primary {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(234, 118, 0, 0.25);
}

.btn-lg {
    padding: 0.95rem 2.25rem;
    font-size: 1.05rem;
}

/* ---------- Секции ---------- */
section {
    padding: 5rem 0;
    position: relative;
}

section.section-compact {
    padding: 3.5rem 0;
}

.section-title {
    margin-bottom: 3rem;
    text-align: center;
}

.section-title .kicker {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
}

.section-title .lead {
    max-width: 650px;
    margin: 1rem auto 0;
    color: var(--text-secondary);
}

/* ---------- Hero ---------- */
.hero {
    padding: 9rem 0 5rem;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(234, 118, 0, 0.18), transparent 60%),
        radial-gradient(ellipse at 80% 60%, rgba(234, 118, 0, 0.08), transparent 55%),
        linear-gradient(180deg, #141414 0%, #1d1d1d 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(234, 118, 0, 0.12);
    border: 1px solid rgba(234, 118, 0, 0.3);
    border-radius: 100px;
    color: var(--accent-soft);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-kicker .dot {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero h1 .accent {
    color: var(--accent-primary);
}

.hero p.lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 1.5rem 0 2.25rem;
}

.hero-art {
    position: relative;
    aspect-ratio: 16 / 9;
    max-width: 520px;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--surface-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Счётчики */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--surface-border);
}

.stat-item .stat-value {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-item .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

/* ---------- Карточки ---------- */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    transition: all 0.35s ease;
    height: 100%;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(234, 118, 0, 0.2);
}

.card-body {
    padding: 1.75rem;
}

.card-title {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feature-card .feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(234, 118, 0, 0.18), rgba(234, 118, 0, 0.05));
    border: 1px solid rgba(234, 118, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    color: var(--accent-primary);
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    color: #fff;
    transform: rotate(-5deg) scale(1.05);
}

/* ---------- Секция «Что это» ---------- */
.tile-row .tile {
    background: var(--bg-secondary);
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    padding: 1.75rem;
    height: 100%;
    transition: all 0.3s ease;
}

.tile-row .tile:hover {
    border-color: var(--accent-primary);
    background: var(--bg-elevated);
}

.tile .tile-label {
    color: var(--accent-primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

/* ---------- Tile с GitHub-ссылкой ---------- */
.tile-row .tile.tile-with-link {
    display: flex;
    flex-direction: column;
}

.tile-with-link > p {
    margin-bottom: 1.5rem;
}

.gh-card {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--surface-border);
    background: rgba(0, 0, 0, 0.28);
    color: var(--text-primary);
    text-decoration: none;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.gh-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(234, 118, 0, 0) 0%, rgba(234, 118, 0, 0.12) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.gh-card:hover,
.gh-card:focus-visible {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px -16px rgba(234, 118, 0, 0.65);
    color: var(--text-primary);
    text-decoration: none;
    outline: none;
}

.gh-card:hover::before,
.gh-card:focus-visible::before {
    opacity: 1;
}

.gh-card-mark {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #0d1117;
    border: 1px solid #2f363d;
    color: #f0f6fc;
    transition: border-color 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.gh-card-mark svg {
    width: 18px;
    height: 18px;
    display: block;
}

.gh-card:hover .gh-card-mark {
    border-color: var(--accent-primary);
    transform: rotate(-8deg) scale(1.06);
    box-shadow: 0 0 0 4px rgba(234, 118, 0, 0.12);
}

.gh-card-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    flex: 1 1 auto;
    min-width: 0;
}

.gh-card-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
    transition: color 0.25s ease;
}

.gh-card:hover .gh-card-label {
    color: var(--accent-primary);
}

.gh-card-repo {
    font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gh-card-arrow {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.25s ease, transform 0.3s ease;
}

.gh-card-arrow svg {
    width: 100%;
    height: 100%;
    display: block;
}

.gh-card:hover .gh-card-arrow {
    color: var(--accent-primary);
    transform: translate(3px, -3px);
}

/* ---------- Features page — чередующиеся блоки ---------- */
.feature-block {
    padding: 4rem 0;
    border-bottom: 1px solid var(--surface-border);
}

.feature-block:last-of-type {
    border-bottom: none;
}

.feature-block .feature-visual {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--surface-border);
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
}

.feature-block .feature-visual:hover {
    border-color: var(--accent-primary);
    transform: scale(1.015);
}

.feature-block .feature-visual svg {
    width: 100%;
    height: 100%;
}

.feature-block .chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    background: rgba(234, 118, 0, 0.12);
    border: 1px solid rgba(234, 118, 0, 0.3);
    border-radius: 100px;
    color: var(--accent-soft);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feature-block h2 {
    margin-bottom: 1.25rem;
}

.feature-block ul.feature-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.feature-block ul.feature-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
}

.feature-block ul.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 3px;
    transform: rotate(45deg);
}

/* ---------- Хлебные крошки ---------- */
.page-header {
    padding: 8rem 0 3rem;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(234, 118, 0, 0.12), transparent 55%),
        linear-gradient(180deg, #141414 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--surface-border);
    position: relative;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--accent-soft);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--text-secondary);
}

.breadcrumb-item a:hover {
    color: var(--accent-primary);
}

/* ---------- Галерея / Скриншоты ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 1px solid var(--surface-border);
    aspect-ratio: 16 / 9;
    cursor: pointer;
    transition: all 0.35s ease;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.85));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover {
    transform: translateY(-6px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item .gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.06);
}

.gallery-item .gallery-caption {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
    color: #fff;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item .gallery-zoom {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    background: rgba(29, 29, 29, 0.85);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    z-index: 3;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
}

.gallery-item:hover .gallery-zoom {
    opacity: 1;
    transform: scale(1);
}

/* Carousel */
.carousel {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--surface-border);
    background: var(--bg-secondary);
}

.carousel-item {
    aspect-ratio: 16 / 9;
}

.carousel-item svg,
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-caption {
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.5rem 2rem 1.75rem;
    text-align: left;
}

.carousel-caption h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.carousel-caption p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
    background-color: var(--accent-primary);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(29, 29, 29, 0.6);
    border-radius: 50%;
    padding: 1.25rem;
    background-size: 50%;
}

/* Lightbox modal */
#lightboxModal .modal-content {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--surface-border);
}

#lightboxModal .modal-body {
    padding: 0;
    position: relative;
}

#lightboxModal .lightbox-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightboxModal .lightbox-img-wrap svg {
    width: 100%;
    height: 100%;
    max-height: 80vh;
}

#lightboxModal .btn-close {
    filter: invert(1);
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

#lightboxModal .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(29, 29, 29, 0.8);
    border: 1px solid var(--surface-border);
    border-radius: 50%;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    font-size: 1.2rem;
}

#lightboxModal .lightbox-nav:hover {
    background: var(--accent-primary);
    color: #fff;
}

#lightboxModal .lightbox-nav.prev { left: 1rem; }
#lightboxModal .lightbox-nav.next { right: 1rem; }

#lightboxModal .lightbox-caption {
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    text-align: center;
    border-top: 1px solid var(--surface-border);
}

/* ---------- Requirements page ---------- */
.req-tabs {
    border-bottom: 1px solid var(--surface-border);
    margin-bottom: 2rem;
}

.req-tabs .nav-link {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 1rem 1.75rem;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.req-tabs .nav-link:hover {
    color: var(--text-primary);
}

.req-tabs .nav-link.active {
    color: var(--accent-primary);
    background: transparent;
    border-bottom-color: var(--accent-primary);
}

.req-tabs .nav-link i {
    font-size: 1.2rem;
}

.req-card {
    background: var(--bg-secondary);
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    padding: 1.75rem;
    height: 100%;
}

.req-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.req-card-header .req-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(234, 118, 0, 0.12);
    border: 1px solid rgba(234, 118, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.req-card h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.req-table {
    width: 100%;
    color: var(--text-secondary);
}

.req-table tr {
    border-bottom: 1px solid var(--surface-border);
}

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

.req-table td {
    padding: 0.85rem 0;
    vertical-align: top;
}

.req-table td:first-child {
    color: var(--text-muted);
    font-size: 0.9rem;
    width: 40%;
    padding-right: 1rem;
}

.req-table td:last-child {
    color: var(--text-primary);
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.9rem;
    font-weight: 500;
}

.req-table td:last-child .success {
    color: var(--success);
    margin-right: 0.35rem;
}

.download-card {
    background: var(--bg-secondary);
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    padding: 1.75rem;
    text-align: center;
    height: 100%;
    transition: all 0.35s ease;
}

.download-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.download-card .download-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(234, 118, 0, 0.2), rgba(234, 118, 0, 0.05));
    border: 1px solid rgba(234, 118, 0, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 2rem;
}

/* ---------- About page ---------- */
.author-card {
    background: var(--bg-secondary);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.author-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(234, 118, 0, 0.18), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ---------- Author 3D Viewport ---------- */
.author-viewport {
    background: #232323;
    border: 1px solid #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    max-width: 360px;
    margin: 0 auto;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    font-family: 'Inter', sans-serif;
}

.author-viewport:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px rgba(234, 118, 0, 0.22), 0 0 0 1px rgba(234, 118, 0, 0.35);
}

.viewport-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.45rem 0.6rem;
    background: linear-gradient(180deg, #3d3d3d 0%, #353535 100%);
    border-bottom: 1px solid #1a1a1a;
    font-size: 0.7rem;
    color: #b8b8b8;
    user-select: none;
}

.viewport-editor {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.22rem 0.55rem;
    background: #4a4a4a;
    border: 1px solid #2a2a2a;
    border-radius: 3px;
    font-weight: 600;
    color: #d8d8d8;
    flex-shrink: 0;
}

.viewport-editor i {
    font-size: 0.85rem;
    color: var(--accent-primary);
}

.viewport-tabs {
    display: flex;
    gap: 0.85rem;
    flex: 1;
    overflow: hidden;
}

.viewport-tabs span {
    cursor: default;
    transition: color 0.15s ease;
}

.viewport-tabs span:hover {
    color: #fff;
}

.viewport-shading {
    display: flex;
    gap: 0.28rem;
    align-items: center;
    flex-shrink: 0;
}

.viewport-shading .shade {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1px solid #1a1a1a;
    background: radial-gradient(circle at 30% 30%, #7a7a7a, #3a3a3a);
}

.viewport-shading .shade.active {
    background: radial-gradient(circle at 30% 30%, #ffa45a, var(--accent-primary));
    border-color: #c25400;
    box-shadow: 0 0 6px rgba(234, 118, 0, 0.65);
}

.viewport-canvas {
    position: relative;
    background: linear-gradient(180deg, #4a4a4a 0%, #262626 100%);
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

.viewport-canvas::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 1;
}

.viewport-photo {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
}

.viewport-stats {
    position: absolute;
    top: 0.55rem;
    left: 0.65rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.92);
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
    letter-spacing: 0.02em;
}

.viewport-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.viewport-stats i {
    font-size: 0.4rem;
    color: var(--accent-primary);
}

.viewport-gizmo {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    width: 52px;
    height: 52px;
    z-index: 2;
    pointer-events: none;
}

.viewport-gizmo .axis {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.56rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.45);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.viewport-gizmo .axis-x {
    background: radial-gradient(circle at 30% 30%, #ff5454, #b62828);
    top: 17px;
    right: 0;
}

.viewport-gizmo .axis-y {
    background: radial-gradient(circle at 30% 30%, #9fd13c, #5d8420);
    bottom: 0;
    left: 17px;
}

.viewport-gizmo .axis-z {
    background: radial-gradient(circle at 30% 30%, #4ea2ed, #265e9e);
    top: 0;
    left: 17px;
}

.viewport-mode {
    position: absolute;
    bottom: 0.55rem;
    left: 0.65rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.55rem;
    background: rgba(40, 40, 40, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    font-size: 0.65rem;
    color: #d8d8d8;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.viewport-mode i {
    font-size: 0.7rem;
    color: var(--accent-primary);
}

.author-info h2 {
    margin-bottom: 0.5rem;
}

.author-info .author-role {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: rgba(234, 118, 0, 0.12);
    border: 1px solid rgba(234, 118, 0, 0.3);
    border-radius: 100px;
    color: var(--accent-soft);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.author-info .meta-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.author-info .meta-list li {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--surface-border);
    color: var(--text-secondary);
}

.author-info .meta-list li:last-child {
    border-bottom: none;
}

.author-info .meta-list li .meta-label {
    min-width: 120px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.tech-pill {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

.tech-pill:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.tech-pill .tech-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(234, 118, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.tech-pill .tech-name {
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.tech-pill .tech-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.source-list {
    list-style: none;
    padding: 0;
}

.source-list li {
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    margin-bottom: 0.75rem;
    transition: all 0.25s ease;
}

.source-list li:hover {
    border-color: var(--accent-primary);
}

.source-list li strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.source-list li span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---------- CTA ---------- */
.cta-section {
    background:
        radial-gradient(ellipse at center, rgba(234, 118, 0, 0.2), transparent 65%),
        var(--bg-primary);
    border-top: 1px solid var(--surface-border);
    border-bottom: 1px solid var(--surface-border);
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

/* ---------- Footer ---------- */
footer {
    background: #141414;
    border-top: 1px solid var(--surface-border);
    padding: 3rem 0 2rem;
    margin-top: auto;
}

footer .footer-brand {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

footer h5 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 0.4rem;
}

footer ul li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

footer ul li a:hover {
    color: var(--accent-primary);
}

footer ul li a.footer-gh {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

footer ul li a.footer-gh svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

footer ul li a.footer-gh:hover svg {
    transform: rotate(-8deg) scale(1.15);
}

.footer-bottom {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--surface-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 48px;
    height: 48px;
    background: var(--accent-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(234, 118, 0, 0.3);
    z-index: 1020;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(234, 118, 0, 0.5);
}

/* ---------- Адаптивность ---------- */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        background: var(--bg-secondary);
        border: 1px solid var(--surface-border);
        border-radius: 12px;
    }
    .navbar-nav .nav-link::after {
        display: none;
    }
    .navbar-nav .nav-link {
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid var(--surface-border);
    }
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    .hero {
        padding: 7rem 0 4rem;
        text-align: center;
    }
    .hero-art {
        margin-top: 3rem;
        max-width: 340px;
    }
    .stats {
        margin-top: 2.5rem;
        gap: 1rem;
    }
    section {
        padding: 3.5rem 0;
    }
    .feature-block {
        padding: 3rem 0;
    }
    .feature-block .feature-visual {
        margin-bottom: 2rem;
    }
    .author-card {
        padding: 1.75rem;
    }
    .author-viewport {
        max-width: 320px;
        margin-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero {
        padding: 6.5rem 0 3rem;
    }
    .stats {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .btn {
        width: 100%;
    }
    .hero .btn + .btn {
        margin-top: 0.75rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    section {
        padding: 3rem 0;
    }
}

/* Прячем back-to-top при печати */
@media print {
    .back-to-top, .navbar {
        display: none;
    }
}
