/* ========================================
   ПРОМРОБОТ — Techno Hi-Tech Style
   ======================================== */

:root {
    --bg: #05070d;
    --bg-card: #0d1320;
    --bg-card-hover: #131a2b;
    --border: #1c2438;
    --border-glow: #00e0ff;
    --accent: #00e0ff;
    --accent-dim: #00a8c2;
    --accent-glow: rgba(0, 224, 255, 0.4);
    --text: #ffffff;
    --text-muted: #8892a8;
    --text-dim: #5a6478;
    --font-display: 'Montserrat', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-display);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === Декоративная сетка фона === */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 224, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 224, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

main, section, nav, footer {
    position: relative;
    z-index: 1;
}

/* === Утилиты === */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
    position: relative;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-tag::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--accent);
}

.section-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.section-title span {
    color: var(--accent);
    text-shadow: 0 0 30px var(--accent-glow);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 60px;
}

.section-center {
    text-align: center;
}

.section-center .section-tag {
    justify-content: center;
}

.section-center .section-tag::before {
    display: none;
}

.section-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* === Кнопки === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #0090b8 100%);
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0, 30, 50, 0.85);
    box-shadow: 0 0 18px rgba(0, 224, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
    background: #ffffff;
    color: #001018;
    text-shadow: none;
    box-shadow: 0 0 40px var(--accent), 0 0 60px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(6px);
}

/* === Навигация === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    background: rgba(5, 7, 13, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 14px 0;
    background: rgba(5, 7, 13, 0.95);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.nav-brand-logo {
    height: 52px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

.navbar.scrolled .nav-brand-logo {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

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

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

.nav-phone {
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 14px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-phone:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
}

/* === Hero === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 32px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.hero-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 28px;
}

.hero h1 span {
    color: var(--accent);
    text-shadow: 0 0 40px var(--accent-glow);
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    max-width: 520px;
}

.hero-stat-num {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
    line-height: 1;
}

.hero-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === SVG-робот === */
.hero-robot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}

.robot-frame {
    position: absolute;
    inset: 0;
    border: 1px solid var(--border);
    transform: rotate(45deg);
}

.robot-frame::before,
.robot-frame::after {
    content: '';
    position: absolute;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
}

.robot-frame::before {
    top: -3px; left: -3px;
    width: 6px; height: 6px;
}

.robot-frame::after {
    bottom: -3px; right: -3px;
    width: 6px; height: 6px;
}

.robot-circle {
    position: absolute;
    inset: 10%;
    border: 1px solid var(--border);
    border-radius: 50%;
    animation: rotate 30s linear infinite;
}

.robot-circle::before {
    content: '';
    position: absolute;
    top: -4px; left: 50%;
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent);
    transform: translateX(-50%);
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.robot-svg {
    width: 80%;
    height: 80%;
    z-index: 2;
    position: relative;
}

.robot-base {
    fill: var(--bg-card);
    stroke: var(--accent);
    stroke-width: 1.5;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.robot-joint {
    fill: var(--accent);
    filter: drop-shadow(0 0 8px var(--accent));
}

.robot-arm-segment {
    fill: var(--bg-card);
    stroke: var(--accent);
    stroke-width: 2;
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.robot-arm-group {
    transform-origin: 200px 380px;
    animation: armSwing 6s ease-in-out infinite;
}

.robot-forearm-group {
    transform-origin: 280px 280px;
    animation: forearmSwing 6s ease-in-out infinite;
}

.robot-grip-group {
    transform-origin: 320px 180px;
    animation: gripSwing 6s ease-in-out infinite;
}

@keyframes armSwing {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-12deg); }
}

@keyframes forearmSwing {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

@keyframes gripSwing {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-8deg); }
}

/* === Бренды === */
.brands {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}

.brands-title {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.brands-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 40px;
}

.brand-item {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 28px;
    color: var(--text-dim);
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.brand-item:hover {
    color: var(--text);
    text-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

/* === Услуги === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.service-card {
    background: var(--bg-card);
    padding: 50px 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    transition: width 0.4s ease;
}

.service-card:hover {
    background: var(--bg-card-hover);
}

.service-card:hover::before {
    width: 100%;
}

.service-num {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 30px;
    display: block;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    color: var(--accent);
    font-size: 24px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    border-color: var(--accent);
    box-shadow: 0 0 25px var(--accent-glow);
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* === Статистика === */
.stats {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 50%, var(--bg) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-num {
    font-family: var(--font-mono);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 30px var(--accent-glow);
    line-height: 1;
    margin-bottom: 12px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === Процесс === */
.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 10px var(--accent-glow);
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.process-num {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 0 25px var(--accent-glow);
    transition: all 0.3s ease;
}

.process-step:hover .process-num {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 40px var(--accent);
}

.process-step h4 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 700;
}

.process-step p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* === О компании === */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.about-text strong {
    color: var(--text);
    font-weight: 700;
}

.about-features {
    display: grid;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.about-feature {
    background: var(--bg-card);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.about-feature:hover {
    background: var(--bg-card-hover);
}

.about-feature i {
    color: var(--accent);
    font-size: 20px;
    flex-shrink: 0;
}

.about-feature span {
    color: var(--text);
    font-size: 15px;
}

/* === Преимущества === */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.advantage-card {
    background: var(--bg-card);
    padding: 40px;
    transition: all 0.3s ease;
}

.advantage-card:hover {
    background: var(--bg-card-hover);
}

.advantage-icon {
    width: 56px;
    height: 56px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 22px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.advantage-card:hover .advantage-icon {
    border-color: var(--accent);
    box-shadow: 0 0 25px var(--accent-glow);
}

.advantage-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.advantage-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* === Контакты === */
.contacts {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%);
    border-top: 1px solid var(--border);
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 48px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 16px 20px;
    font-family: var(--font-display);
    font-size: 15px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-result {
    margin-top: 20px;
    padding: 14px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.form-result.success {
    display: block;
    background: rgba(0, 224, 255, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
}

.form-result.error {
    display: block;
    background: rgba(255, 80, 80, 0.1);
    border: 1px solid #ff5050;
    color: #ff5050;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 32px 36px;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.contact-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

.contact-card-role {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.contact-card-phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 22px;
    transition: color 0.3s ease;
}

.contact-card-phone i {
    color: var(--accent);
    font-size: 20px;
}

.contact-card-phone:hover {
    color: var(--accent);
}

.contact-card-tg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    text-align: center;
}

.contact-info-block {
    padding: 20px 0;
}

.contact-row {
    display: flex;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.contact-row:last-child {
    border-bottom: none;
}

.contact-row-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 18px;
}

.contact-row-content h5 {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.contact-row-content a,
.contact-row-content p {
    color: var(--text);
    font-size: 16px;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.contact-row-content a:hover {
    color: var(--accent);
}

/* === Footer === */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand-block {
    max-width: 360px;
}

.footer-brand {
    font-weight: 800;
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand span {
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 400;
}

.footer-text {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.footer-col h6 {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
    font-family: var(--font-mono);
}

/* === Анимация появления при скролле === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Новости — листинг и статья === */
.news-hero {
    padding: 150px 0 60px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 80% 30%, rgba(0, 224, 255, 0.06) 0%, transparent 50%),
        var(--bg);
}

.news-hero .section-tag {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.news-hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--text);
    font-size: 48px;
    line-height: 1.15;
    margin: 0 0 18px;
}

.news-hero h1 span {
    color: var(--accent);
    text-shadow: 0 0 30px var(--accent-glow);
}

.news-hero p.lead {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 720px;
    line-height: 1.6;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    padding: 70px 0 100px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0, 224, 255, 0.08);
}

.news-card-img {
    aspect-ratio: 1200 / 630;
    background: #0a0e18 center/cover no-repeat;
    border-bottom: 1px solid var(--border);
}

.news-card-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.news-card-meta .news-card-date {
    color: var(--text-dim);
}

.news-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    line-height: 1.35;
    margin: 0 0 12px;
    color: var(--text);
}

.news-card p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.55;
    margin: 0 0 18px;
    flex: 1;
}

.news-card-link {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 1px;
    align-self: flex-start;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.news-card-link:hover {
    border-bottom-color: var(--accent);
}

.news-card a.news-card-cover {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Превью новостей на главной */
.news-section .news-grid-preview {
    padding: 50px 0 30px;
    grid-template-columns: repeat(3, 1fr);
}

.news-section-cta {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* --- Статья --- */
.article-hero {
    padding: 140px 0 40px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at 85% 25%, rgba(0, 224, 255, 0.07) 0%, transparent 55%),
        var(--bg);
}

.article-breadcrumbs {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    margin-bottom: 22px;
}

.article-breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

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

.article-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 2px;
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 22px;
}

.article-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 44px;
    line-height: 1.15;
    color: var(--text);
    margin: 0 0 22px;
    max-width: 880px;
}

.article-title span {
    color: var(--accent);
    text-shadow: 0 0 30px var(--accent-glow);
}

.article-meta {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-dim);
    letter-spacing: 1px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.article-cover {
    width: 100%;
    max-width: 980px;
    margin: 40px auto 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: block;
}

.article-body {
    padding: 60px 0 90px;
}

.article-body .article-inner {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.75;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote {
    margin: 0 0 22px;
}

.article-body h2 {
    font-family: var(--font-display);
    color: var(--text);
    font-size: 28px;
    line-height: 1.25;
    margin: 48px 0 18px;
    font-weight: 700;
}

.article-body h2::before {
    content: "// ";
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 22px;
}

.article-body h3 {
    font-family: var(--font-display);
    color: var(--text);
    font-size: 21px;
    margin: 32px 0 14px;
    font-weight: 600;
}

.article-body ul,
.article-body ol {
    padding-left: 22px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body strong {
    color: var(--text);
}

.article-body a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 224, 255, 0.35);
    transition: border-color 0.2s ease;
}

.article-body a:hover {
    border-bottom-color: var(--accent);
}

.article-body blockquote {
    border-left: 3px solid var(--accent);
    background: var(--bg-card);
    padding: 18px 22px;
    color: var(--text);
    font-size: 16px;
    border-radius: 0 6px 6px 0;
}

.article-cta {
    border: 1px solid var(--border);
    background: var(--bg-card);
    border-radius: 8px;
    padding: 28px 30px;
    margin: 50px 0 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-cta h4 {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--text);
    margin: 0;
}

.article-cta p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
}

.article-cta .btn {
    align-self: flex-start;
}

.article-nav {
    max-width: 760px;
    margin: 50px auto 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 13px;
}

.article-nav a {
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 1px;
    border: 1px solid var(--border);
    padding: 12px 18px;
    border-radius: 4px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.article-nav a:hover {
    border-color: var(--accent);
    background: rgba(0, 224, 255, 0.04);
}

@media (max-width: 768px) {
    .news-hero { padding: 120px 0 40px; }
    .news-hero h1 { font-size: 32px; }
    .news-grid { grid-template-columns: 1fr; gap: 22px; padding: 50px 0 70px; }
    .news-section .news-grid-preview { grid-template-columns: 1fr; padding: 30px 0 20px; }
    .article-hero { padding: 110px 0 30px; }
    .article-title { font-size: 28px; }
    .article-body { padding: 40px 0 60px; }
    .article-body .article-inner { font-size: 16px; }
    .article-body h2 { font-size: 22px; margin-top: 36px; }
}
