/* ---------------------------------------------------------------------------
   Dark "red team" restyle of the ariclaw theme (palette: #060606 / #0F0F0F /
   #D91604) based on the CPRT design file. Brand fonts are served locally
   from static/fonts/brand/ — no external font CDNs.
   Layout logic of the theme is untouched: only colors, fonts and surfaces.
--------------------------------------------------------------------------- */

/* Brand fonts */
@font-face {
    font-family: "DrukCyr";
    src: url("../fonts/brand/DrukCyr-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DrukCyr";
    src: url("../fonts/brand/DrukCyr-MediumItalic.woff2") format("woff2");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "DrukCyr";
    src: url("../fonts/brand/DrukCyr-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DrukCyr";
    src: url("../fonts/brand/DrukCyr-BoldItalic.woff2") format("woff2");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "DrukCyr";
    src: url("../fonts/brand/DrukCyr-Heavy.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DrukCyr";
    src: url("../fonts/brand/DrukCyr-HeavyItalic.woff2") format("woff2");
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Bounded";
    src: url("../fonts/brand/Bounded-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "GOST TypeA";
    src: url("../fonts/brand/GOST-TypeA.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --crt-bg: #060606;
    --crt-panel: #0f0f0f;
    --crt-panel-2: #1a1919;
    --crt-border: #2d2c2c;
    --crt-text: #c9c9c9;
    --crt-heading: #f3f3f3;
    --crt-muted: #999999;
    --crt-red: #d91604;
    --crt-red-light: #ff3b26;
    --crt-font-display: "DrukCyr", "Bounded", sans-serif;
    --crt-font-body: "Bounded", sans-serif;
    --crt-font-tech: "GOST TypeA", "Bounded", monospace;
}

body {
    background-color: var(--crt-bg);
    color: var(--crt-text);
    font-family: var(--crt-font-body);
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6,
.section_tittle h2,
.banner_text h1,
.breadcrumb h2 {
    color: var(--crt-heading);
    font-family: var(--crt-font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

a {
    color: var(--crt-red-light);
}

a:hover {
    color: #ff6a5b;
    text-decoration: none;
}

hr {
    border-color: var(--crt-border);
}

.text-muted {
    color: var(--crt-muted) !important;
}

/* Header / menu */
.main_menu {
    background-color: rgba(6, 6, 6, 0.9);
}

.main_menu .navbar-brand img {
    height: 56px;
    width: auto;
    max-width: none;
    position: static;
}

.footer-logo {
    height: 90px;
    width: auto;
    max-width: none;
}

.main_menu .navbar .navbar-nav .nav-link,
.main_menu .nav-link {
    color: var(--crt-heading);
    font-family: var(--crt-font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.main_menu .navbar .navbar-nav .nav-link:hover,
.main_menu .nav-link:hover {
    color: var(--crt-red-light);
}

.menu_btn {
    color: var(--crt-heading);
    border: 1px solid var(--crt-red);
    font-family: var(--crt-font-body);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.menu_btn:hover {
    background-color: var(--crt-red);
    color: #fff;
}

.main_menu.menu_fixed {
    background-color: var(--crt-bg);
    box-shadow: 0 2px 12px rgba(217, 22, 4, 0.15);
}

/* Auth links in the header */
.header-actions {
    margin-left: 32px;
}
.main_menu .main-menu-item ul li .nav-link {
    padding: 30px 12px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.main_menu .menu_btn {
    padding: 8px 20px;
    font-size: 13px;
}

.nav-user {
    color: var(--crt-muted);
    font-family: var(--crt-font-tech);
    margin-left: 12px;
    font-size: 13px;
}

.auth-link {
    background: none;
    border: none;
    padding: 0;
    margin-left: 12px;
    color: var(--crt-heading);
    font-family: var(--crt-font-body);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    white-space: nowrap;
}

/* Cart pictogram in the far-right corner of the header */
.cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: 28px;
    border: 1px solid var(--crt-border);
    color: var(--crt-heading);
    font-size: 18px;
    transition: color 0.2s, border-color 0.2s;
}

.cart-icon:hover {
    color: var(--crt-red-light);
    border-color: var(--crt-red);
}

.cart-icon-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background-color: var(--crt-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.auth-link:hover {
    color: var(--crt-red-light);
    text-decoration: none;
}

/* Banner */
.banner_part {
    background: url(../img/banner_bg.jpg) top right no-repeat;
    background-color: var(--crt-bg);
}

.banner_part .banner_text h1 {
    color: #fff;
    font-family: var(--crt-font-display);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.banner_part .banner_text p {
    color: var(--crt-text);
}

/* Breadcrumb hero on inner pages */
.breadcrumb_bg {
    background-image: url("../img/breadcrumb.jpg");
    background-size: cover;
}

.breadcrumb .breadcrumb_iner .breadcrumb_iner_item h2 {
    color: var(--crt-heading);
    font-family: var(--crt-font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.breadcrumb .breadcrumb_iner .breadcrumb_iner_item p {
    color: var(--crt-text);
    font-family: var(--crt-font-tech);
    letter-spacing: 0.08em;
}

/* Buttons */
.btn_1 {
    background-image: linear-gradient(to left, #8f0e02 0%, #d91604 49%, #8f0e02 100%);
    color: #fff;
    font-family: var(--crt-font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.btn_1:hover {
    background-image: linear-gradient(to left, #d91604 0%, #ff3b26 49%, #d91604 100%);
    color: #fff;
}

.btn-primary {
    background-color: var(--crt-red);
    border-color: var(--crt-red);
}

.btn-primary:hover {
    background-color: var(--crt-red-light);
    border-color: var(--crt-red-light);
}

.btn-outline-primary {
    color: var(--crt-red-light);
    border-color: var(--crt-red);
}

.btn-outline-primary:hover {
    background-color: var(--crt-red);
    border-color: var(--crt-red);
    color: #fff;
}

.btn-outline-danger {
    color: #ff6a5b;
    border-color: #ff6a5b;
}

.btn-outline-danger:hover {
    background-color: #ff6a5b;
    border-color: #ff6a5b;
    color: #060606;
}

/* Sections */
.section_padding {
    background-color: var(--crt-bg);
}

.section_tittle h2 {
    color: var(--crt-heading);
}

/* Cards & lists */
.card {
    background-color: var(--crt-panel);
    border: 1px solid var(--crt-border);
    color: var(--crt-text);
}

.card-header {
    background-color: var(--crt-panel-2);
    border-bottom-color: var(--crt-border);
    color: var(--crt-heading);
}

.card-title,
.card .card-title {
    color: var(--crt-heading);
}

.list-group-item {
    background-color: var(--crt-panel);
    border-color: var(--crt-border);
    color: var(--crt-text);
}

/* Tables */
.table {
    color: var(--crt-text);
}

.table th,
.table td {
    border-color: var(--crt-border);
}

.table thead th {
    color: var(--crt-heading);
    border-bottom-color: var(--crt-red);
}

/* Forms */
label {
    color: var(--crt-text);
}

.form-control {
    background-color: var(--crt-panel);
    border-color: var(--crt-border);
    color: var(--crt-heading);
}

.form-control:focus {
    background-color: #141414;
    border-color: var(--crt-red);
    color: #fff;
    box-shadow: none;
}

.form-control::placeholder {
    color: var(--crt-muted);
}

/* Pagination */
.page-link {
    background-color: var(--crt-panel);
    border-color: var(--crt-border);
    color: var(--crt-red-light);
}

.page-link:hover {
    background-color: var(--crt-panel-2);
    border-color: var(--crt-border);
    color: var(--crt-red-light);
}

.page-item.active .page-link {
    background-color: var(--crt-red);
    border-color: var(--crt-red);
    color: #fff;
}

/* Footer */
.footer-area {
    background: #050505 url(../img/footer_bg.jpg) center / cover no-repeat;
}

.single-footer-widget h4 {
    color: var(--crt-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.single-footer-widget p,
.single-footer-widget ul li a {
    color: var(--crt-muted);
}

.single-footer-widget ul li a:hover {
    color: var(--crt-red-light);
}

.copyright_part_text {
    background-color: rgba(6, 6, 6, 0.85);
    border-top: 1px solid var(--crt-border);
    color: var(--crt-muted);
    font-family: var(--crt-font-tech);
    letter-spacing: 0.05em;
}

.copyright_part_text a {
    color: var(--crt-red-light);
}

/* django-messages "error" tag vs Bootstrap's "danger" */
.alert-error {
    color: #f8d7da;
    background-color: #4a1015;
    border-color: #d91604;
}

/* Alerts on the dark theme */
.alert {
    border: 1px solid var(--crt-border);
    background-color: var(--crt-panel);
    color: var(--crt-text);
}

.alert-success {
    border-left: 3px solid #2ea44f;
}

.alert-success h4,
.alert-success h5 {
    color: #3fb950;
    text-transform: none;
    letter-spacing: normal;
    font-family: var(--crt-font-body);
}

.alert-danger,
.alert-error {
    border-left: 3px solid var(--crt-red);
}

.alert-danger h4,
.alert-danger h5,
.alert-error h4 {
    color: var(--crt-red-light);
    text-transform: none;
    letter-spacing: normal;
    font-family: var(--crt-font-body);
}

.alert-info {
    border-left: 3px solid #58a6ff;
}

.alert-info h4 {
    color: #58a6ff;
    text-transform: none;
    letter-spacing: normal;
    font-family: var(--crt-font-body);
}

.alert-warning {
    border-left: 3px solid #d29922;
}

/* Forum (django-machina pages are wrapped in .forum-content) */
/* machina's bundled Bootstrap reboot is loaded after this file and resets
   body to a light background — win it back with higher specificity */
body.forum-page {
    background-color: var(--crt-bg);
    color: var(--crt-text);
}

body.forum-page a {
    color: var(--crt-red-light);
}

body.forum-page a:hover {
    color: #ff6a5b;
}

.forum-content {
    padding-top: 130px;
    padding-bottom: 60px;
    color: var(--crt-text);
}

.forum-content .breadcrumb {
    background-color: var(--crt-panel-2);
    border: 1px solid var(--crt-border);
}

.forum-content .breadcrumb .breadcrumb-item,
.forum-content .breadcrumb .breadcrumb-item a {
    color: var(--crt-muted);
}

.forum-content .breadcrumb .breadcrumb-item.active {
    color: var(--crt-heading);
}

.forum-content .card {
    background-color: var(--crt-panel);
    border-color: var(--crt-border);
}

.forum-content .card-header {
    background-color: var(--crt-panel-2);
    border-bottom-color: var(--crt-border);
    color: var(--crt-heading);
}

.forum-content .table {
    color: var(--crt-text);
}

.forum-content .table th,
.forum-content .table td {
    border-color: var(--crt-border);
}

.forum-content .nav-pills .nav-link {
    color: var(--crt-text);
}

.forum-content .nav-pills .nav-link.active {
    background-color: var(--crt-red);
    color: #fff;
}

.forum-content .btn-primary {
    background-color: var(--crt-red);
    border-color: var(--crt-red);
}

.product-card img {
    object-fit: cover;
    height: 200px;
}

/* Services */
.service-card .card-img-top {
    object-fit: cover;
    height: 200px;
    width: 100%;
}

.service-cover {
    border: 1px solid var(--crt-border);
    width: 100%;
}

.service-lead {
    color: var(--crt-text);
}

.service-examples .list-group-item {
    background-color: var(--crt-panel);
    border-color: var(--crt-border);
}

.service-example-icon {
    color: var(--crt-red-light);
    font-size: 20px;
    line-height: 1.4;
}

.service-examples a {
    color: var(--crt-heading);
}

.service-examples a:hover {
    color: var(--crt-red-light);
}

/* Team */
.team-member-card .card-img-top {
    object-fit: cover;
    height: 280px;
    width: 100%;
}

.team-member-role {
    color: var(--crt-red-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
}

.team-member-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: var(--crt-muted);
    font-size: 13px;
}

.team-member-stats strong {
    color: var(--crt-heading);
    font-size: 16px;
}

.team-certificate-icon {
    color: var(--crt-red-light);
    font-size: 32px;
}

.team-stat-box {
    background-color: var(--crt-panel);
    border: 1px solid var(--crt-border);
    padding: 18px 10px;
}

.team-stat-value {
    color: var(--crt-red-light);
    font-family: var(--crt-font-display);
    font-size: 28px;
}

.team-stat-label {
    color: var(--crt-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.team-cert-list {
    list-style: none;
    padding-left: 0;
}

.team-cert-list li {
    padding: 6px 0;
    border-bottom: 1px solid var(--crt-border);
    color: var(--crt-text);
}

.team-cert-list li i {
    color: var(--crt-red-light);
    margin-right: 8px;
}

/* Training */
.cert-sample {
    border: 1px solid var(--crt-border);
    box-shadow: 0 8px 40px rgba(217, 22, 4, 0.12);
}

.cert-verify-form .form-control {
    height: 52px;
    font-family: var(--crt-font-tech);
    letter-spacing: 0.06em;
}

.cert-verify-btn {
    border: none;
    border-radius: 0;
    padding: 0 24px;
    height: 52px;
}

.cert-result {
    font-family: var(--crt-font-body);
}

.event-list .list-group-item {
    background-color: var(--crt-panel);
    border-color: var(--crt-border);
}

.event-item h5 {
    color: var(--crt-heading);
}

.event-date {
    min-width: 64px;
    padding: 8px;
    border: 1px solid var(--crt-red);
    text-align: center;
}

.event-day {
    font-family: var(--crt-font-display);
    font-size: 22px;
    color: var(--crt-red-light);
    line-height: 1;
}

.event-month {
    color: var(--crt-muted);
    font-size: 11px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Blog */
.blog-filter {
    display: inline-block;
    margin: 0 4px 8px;
    padding: 6px 18px;
    border: 1px solid var(--crt-border);
    color: var(--crt-text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 13px;
}

.blog-filter:hover,
.blog-filter.active {
    border-color: var(--crt-red);
    background-color: var(--crt-red);
    color: #fff;
}

.blog-badge {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 10px;
    border: 1px solid var(--crt-red);
    color: var(--crt-red-light);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-badge:hover {
    background-color: var(--crt-red);
    color: #fff;
}

.blog-tag {
    display: inline-block;
    margin-right: 8px;
    color: var(--crt-muted);
    font-size: 13px;
}

.blog-tag:hover {
    color: var(--crt-red-light);
}

.blog-date {
    color: var(--crt-muted);
    font-size: 13px;
    margin-right: 10px;
    font-family: var(--crt-font-tech);
}

.blog-card .card-img-top {
    object-fit: cover;
    height: 200px;
    width: 100%;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.blog-lead {
    color: var(--crt-text);
    font-size: 1.15rem;
}

.blog-cover img {
    width: 100%;
    border: 1px solid var(--crt-border);
}

.blog-body {
    color: var(--crt-text);
    font-size: 1.05rem;
    line-height: 1.8;
}

.blog-body img {
    max-width: 100%;
    height: auto;
}

.blog-body a {
    text-decoration: underline;
}

.blog-figure img {
    border: 1px solid var(--crt-border);
    width: 100%;
}

.blog-quote {
    border-left: 3px solid var(--crt-red);
    padding: 10px 20px;
    color: var(--crt-heading);
    font-size: 1.2rem;
    font-style: italic;
}

.blog-code {
    background-color: var(--crt-panel-2);
    border: 1px solid var(--crt-border);
    padding: 16px;
    overflow-x: auto;
    color: var(--crt-text);
}

.blog-comment {
    background-color: var(--crt-panel);
    border: 1px solid var(--crt-border);
    padding: 14px 18px;
}

.blog-comment-reply {
    margin-left: 40px;
    border-left: 3px solid var(--crt-red);
}

.blog-comment-text {
    color: var(--crt-text);
    margin: 6px 0;
}

.comment-reply-link {
    color: var(--crt-red-light);
}

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

/* Keep long pages off the footer edge */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.footer-area {
    margin-top: auto;
}

/* ---------------------------------------------------------------------------
   Facelift: unified buttons, hero sizing, breadcrumbs, footer
--------------------------------------------------------------------------- */

/* All action buttons: sharp corners, same rhythm */
.btn_1,
.menu_btn,
.btn,
.page-link {
    border-radius: 0 !important;
}

.btn_1 {
    padding: 12px 32px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    line-height: 1.5;
    border: none;
    cursor: pointer;
}

.btn_1.btn-sm {
    padding: 8px 20px;
    font-size: 12px;
}

.btn {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    padding: 8px 20px;
}

.btn.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.menu_btn {
    padding: 9px 22px;
}

/* Breadcrumb hero: slimmer, links are clickable */
.breadcrumb .breadcrumb_iner {
    height: 300px;
}

.breadcrumb .breadcrumb_iner .breadcrumb_iner_item h2 {
    font-size: 40px;
}

.breadcrumb .breadcrumb_iner .breadcrumb_iner_item p {
    font-family: var(--crt-font-tech);
    letter-spacing: 0.06em;
}

.breadcrumb .breadcrumb_iner .breadcrumb_iner_item p a {
    color: var(--crt-muted);
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.breadcrumb .breadcrumb_iner .breadcrumb_iner_item p a:hover {
    color: var(--crt-red-light);
    border-bottom-color: var(--crt-red);
}

/* Home banner: content vertically centered, sane on mobile */
.banner_part .banner_text {
    display: flex;
    align-items: center;
}

/* Cards: uniform image and text rhythm */
.card {
    border-radius: 0;
}

.card-img-top {
    border-radius: 0;
}

.card-title a {
    color: var(--crt-heading);
}

.card-title a:hover {
    color: var(--crt-red-light);
}

/* Footer: tidy grid and social icons */
.footer-area .single-footer-widget h4 {
    margin-bottom: 22px;
}

.footer_1 p {
    max-width: 320px;
}

.social_icon {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.social_icon a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--crt-border);
    color: var(--crt-muted);
    font-size: 16px;
    transition: color 0.2s, border-color 0.2s;
}

.social_icon a:hover {
    color: var(--crt-red-light);
    border-color: var(--crt-red);
}

.footer_icon ul li a i {
    margin-right: 8px;
    color: var(--crt-red-light);
}

/* Mobile polish */
@media (max-width: 991px) {
    .main_menu .navbar-brand img {
        height: 44px;
    }

    .menu_icon:after {
        color: var(--crt-heading);
    }

    .main_menu .navbar-collapse {
        background-color: var(--crt-panel);
        border-top: 1px solid var(--crt-border);
        top: 70px;
    }

    /* vanilla toggle in js/mobile-menu.js uses .show */
    .main_menu .navbar-collapse.show {
        display: block;
    }

    .main_menu .main-menu-item ul li .nav-link {
        padding: 12px 16px;
        font-size: 14px;
    }

    .main_menu .navbar-toggler {
        border-color: var(--crt-border);
    }

    .breadcrumb .breadcrumb_iner {
        height: 220px;
    }

    .breadcrumb .breadcrumb_iner .breadcrumb_iner_item h2 {
        font-size: 28px;
    }

    .banner_part {
        height: auto;
        min-height: 0;
        padding: 150px 0 70px;
    }

    .banner_part .banner_text h1 {
        font-size: 30px;
    }

    .team-member-stats {
        gap: 14px;
    }

    .event-item {
        flex-wrap: wrap;
    }

    .event-item .btn {
        margin-top: 10px;
    }
}
