/*
Theme Name: Dark2Web
Theme URI: https://dark2web.ru
Author: Dark2Web Team
Author URI: https://dark2web.ru
Description: Минималистичная тема для веб-студии Dark2Web. Разработка без границ.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dark2web
Tags: dark, minimal, portfolio, business
*/

/* === VARIABLES === */
:root {
    --red: #E53935;
    --black: #111;
    --grey: #888;
    --light: #f5f5f5;
    --line: #eee;
    --white: #fff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--black);
    font-size: 15px;
    line-height: 1.7;
}

::selection {
    background: var(--red);
    color: var(--white);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

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

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

ul, ol {
    list-style: none;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
}

h1 { font-size: 52px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p {
    margin-bottom: 20px;
}

/* === HEADER === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 60px;
    z-index: 100;
    background: var(--white);
}

.logo {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 45px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    gap: 40px;
}

.main-navigation a {
    font-size: 13px;
    color: var(--grey);
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--black);
}

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 150px 60px 100px;
    gap: 60px;
}

.hero-content {
    max-width: 550px;
    flex-shrink: 0;
}

.hero-title {
    font-size: 52px;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--red);
}

.hero-desc {
    font-size: 17px;
    color: var(--grey);
    line-height: 1.8;
    margin-bottom: 50px;
}

.hero-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--red);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-link:hover {
    gap: 15px;
    color: var(--red);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.hero-image img {
    max-width: 500px;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    animation: glitch 3s infinite;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 100%;
    background: url('assets/images/hero-guy.png') center/contain no-repeat;
    opacity: 0;
    z-index: 1;
    animation: glitch-red 3s infinite;
    filter: hue-rotate(-30deg) saturate(2);
}

@keyframes glitch {
    0%, 88%, 100% { transform: translate(0); }
    90% { transform: translate(-5px, 2px); }
    92% { transform: translate(5px, -2px); }
    94% { transform: translate(-3px, 1px); }
    96% { transform: translate(4px, -1px); }
}

@keyframes glitch-red {
    0%, 88%, 100% { transform: translate(0); opacity: 0; }
    89% { transform: translate(10px, 0); opacity: 0.8; }
    91% { transform: translate(-10px, 0); opacity: 0.8; }
    93% { transform: translate(6px, 0); opacity: 0.6; }
    95% { transform: translate(-4px, 0); opacity: 0.4; }
}

/* === SECTIONS === */
.section {
    padding: 120px 60px;
    border-top: 1px solid var(--line);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 80px;
}

.section-title {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--grey);
}

.section-num {
    font-size: 13px;
    color: var(--line);
}

/* === SERVICES GRID === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
}

.service-item {
    background: var(--white);
    padding: 50px 35px;
}

.service-num {
    font-size: 12px;
    color: var(--line);
    margin-bottom: 30px;
}

.service-name {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 15px;
}

.service-desc {
    font-size: 14px;
    color: var(--grey);
    line-height: 1.7;
}

/* === TAGS === */
.tags {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.tag {
    font-size: 12px;
    color: var(--grey);
    padding: 10px 20px;
    border: 1px solid var(--line);
    transition: all 0.2s;
}

.tag:hover {
    border-color: var(--red);
    color: var(--red);
}

/* === WHY GRID === */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 100px;
}

.why-item {
    display: flex;
    gap: 25px;
}

.why-num {
    font-size: 32px;
    font-weight: 300;
    color: var(--red);
    line-height: 1;
}

.why-content h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.why-content p {
    font-size: 14px;
    color: var(--grey);
    line-height: 1.7;
    margin-bottom: 0;
}

/* === CONTACT SECTION === */
.contact-section {
    background: var(--black);
    color: var(--white);
}

.contact-section .section-title {
    color: #444;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.contact-text {
    font-size: 36px;
    font-weight: 500;
    line-height: 1.4;
    max-width: 400px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.contact-link {
    font-size: 15px;
    color: #666;
}

.contact-link:hover {
    color: var(--white);
}

/* === FOOTER === */
.site-footer {
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--grey);
    border-top: 1px solid var(--line);
}

/* === BLOG / ARCHIVE === */
.archive-header {
    padding: 150px 60px 60px;
    border-bottom: 1px solid var(--line);
}

.archive-title {
    font-size: 42px;
    margin-bottom: 10px;
}

.archive-description {
    color: var(--grey);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 60px;
}

.post-card {
    border: 1px solid var(--line);
    transition: border-color 0.2s;
}

.post-card:hover {
    border-color: var(--red);
}

.post-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--light);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 25px;
}

.post-card-meta {
    font-size: 12px;
    color: var(--grey);
    margin-bottom: 10px;
}

.post-card-title {
    font-size: 18px;
    margin-bottom: 10px;
}

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

.post-card-excerpt {
    font-size: 14px;
    color: var(--grey);
    line-height: 1.6;
}

/* === SINGLE POST === */
.single-header {
    padding: 140px 60px 40px;
    max-width: 860px;
    margin: 0 auto;
}

.single-meta {
    font-size: 13px;
    color: var(--grey);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.single-meta .meta-tag {
    background: #f0f0f0;
    color: #333;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.single-title {
    font-size: 42px;
    line-height: 1.22;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #111;
}

.single-featured {
    max-width: 1000px;
    margin: 0 auto 50px;
    padding: 0 60px;
}

.single-featured img {
    width: 100%;
}

.single-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 60px 100px;
    font-size: 16px;
    line-height: 1.85;
    color: #222;
}

.single-content p {
    font-size: 16px;
    line-height: 1.85;
    margin-bottom: 24px;
    color: #2c2c2c;
}

.single-content p.lead-p {
    font-size: 19px;
    line-height: 1.7;
    color: #111;
    font-weight: 500;
    margin-bottom: 35px;
    border-left: 3px solid var(--red);
    padding-left: 20px;
}

.single-content h2 {
    font-size: 28px;
    line-height: 1.35;
    margin-top: 55px;
    margin-bottom: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #0d0d0d;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.single-content h3 {
    font-size: 21px;
    line-height: 1.4;
    margin-top: 36px;
    margin-bottom: 16px;
    font-weight: 600;
    color: #111;
}

.single-content h4 {
    font-size: 17px;
    line-height: 1.4;
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #222;
}

.single-content ul,
.single-content ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.single-content li {
    margin-bottom: 10px;
    list-style: disc;
}

.single-content ol li {
    list-style: decimal;
}

.single-content blockquote {
    border-left: 3px solid var(--red);
    padding-left: 25px;
    margin: 40px 0;
    font-style: italic;
    color: var(--grey);
}

/* === CODE BLOCKS & SYNTAX === */
.single-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13.5px;
    background: #f4f4f5;
    color: #c026d3;
    padding: 3px 6px;
    border-radius: 3px;
    border: 1px solid #e4e4e7;
}

.single-content pre {
    background: #0f1117;
    color: #e2e8f0;
    padding: 22px 24px;
    border-radius: 4px;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13.5px;
    line-height: 1.65;
    margin: 28px 0;
    border-left: 3px solid var(--red);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}

.single-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border: none;
    font-size: inherit;
}

/* === CALLOUT FACT (2026 STATS) === */
.callout-fact {
    background: #0d0e12;
    color: #e5e7eb;
    border: 1px solid #222630;
    border-left: 5px solid var(--red);
    padding: 32px;
    margin: 40px 0;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.callout-fact-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.callout-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    background: rgba(229, 57, 53, 0.12);
    padding: 4px 12px;
    border: 1px solid rgba(229, 57, 53, 0.3);
}

.callout-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 10px var(--red);
    display: inline-block;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.callout-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 24px;
}

.callout-metric {
    border-right: 1px solid #222630;
    padding-right: 20px;
}

.callout-metric:last-child {
    border-right: none;
    padding-right: 0;
}

.metric-val {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.metric-label {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.55;
}

.callout-fact-footer {
    padding-top: 18px;
    border-top: 1px solid #222630;
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.6;
}

.callout-fact-footer strong {
    color: #fff;
}

/* === HOMEPAGE VENDOR CHECK SECTION === */
.reliability-heading {
    font-size: 38px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    max-width: 860px;
}

.highlight-red {
    color: var(--red);
}

.section-lead {
    font-size: 17px;
    color: #555;
    line-height: 1.75;
    max-width: 800px;
    margin-bottom: 40px;
}

.vendor-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin: 40px 0;
}

.vendor-card {
    border: 1px solid var(--line);
    background: var(--white);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    border-radius: 2px;
}

.vendor-card:hover {
    border-color: #222;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.06);
}

.vendor-card.span-2 {
    grid-column: span 2;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.card-num {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--grey);
}

.risk-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
}

.risk-critical {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.risk-high {
    background: #ffedd5;
    color: #c2410c;
    border: 1px solid #fdba74;
}

.risk-medium {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fcd34d;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 16px;
    color: #111;
}

.card-desc {
    font-size: 14.5px;
    color: #4b5563;
    line-height: 1.65;
    margin-bottom: 20px;
}

.red-flag-box {
    background: #fff5f5;
    border-left: 3px solid var(--red);
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 13.5px;
    color: #7f1d1d;
    line-height: 1.55;
    border-radius: 0 2px 2px 0;
}

.red-flag-box strong {
    color: #991b1b;
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.test-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #0284c7;
    padding: 14px 16px;
    font-size: 13.5px;
    color: #1e293b;
    line-height: 1.55;
    border-radius: 0 2px 2px 0;
}

.test-box strong {
    color: #0369a1;
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.reliability-cta-banner {
    background: #0f1117;
    color: var(--white);
    padding: 44px 48px;
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    border: 1px solid #1f2430;
    border-radius: 2px;
}

.cta-banner-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    color: #fff;
}

.cta-banner-desc {
    font-size: 15px;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 600px;
}

.btn-dark-accent {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--red);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
    border-radius: 2px;
}

.btn-dark-accent:hover {
    background: #ff2a26;
    color: #fff;
    transform: translateY(-1px);
}

/* === ARTICLE BLOCKS & DIAGRAMS === */
.ascii-diagram {
    background: #0b0c10;
    color: #6ee7b7;
    padding: 24px;
    border: 1px solid #1e293b;
    border-radius: 2px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.45;
    overflow-x: auto;
    margin: 28px 0;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.5);
}

.spec-artifact-card {
    border: 1px solid #e5e7eb;
    border-radius: 2px;
    margin: 32px 0;
    background: #fafafa;
    overflow: hidden;
}

.spec-artifact-header {
    background: #f4f4f5;
    padding: 16px 24px;
    border-bottom: 1px solid #e4e4e7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spec-artifact-title {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.spec-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    background: #e4e4e7;
    color: #333;
    border-radius: 2px;
    letter-spacing: 0.5px;
}

.spec-artifact-body {
    padding: 24px;
    background: #fff;
}

.tech-table-wrapper {
    overflow-x: auto;
    margin: 32px 0;
    border: 1px solid #e5e7eb;
    border-radius: 2px;
    -webkit-overflow-scrolling: touch;
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.tech-table th {
    background: #0f1117;
    color: #fff;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 1px solid #222;
}

.tech-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    vertical-align: top;
    line-height: 1.6;
}

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

.tech-table tr:hover td {
    background: #fbfbfb;
}

/* === CHECKLIST COMPONENT === */
.checklist-container {
    margin: 40px 0;
}

.checklist-phase {
    border: 1px solid #e2e8f0;
    background: #fff;
    margin-bottom: 24px;
    border-radius: 2px;
    overflow: hidden;
}

.checklist-phase-header {
    background: #0f1117;
    color: #fff;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checklist-phase-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    margin: 0;
}

.checklist-phase-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(229, 57, 53, 0.2);
    color: #ff6b6b;
    padding: 3px 10px;
    border: 1px solid rgba(229, 57, 53, 0.4);
}

.checklist-items {
    padding: 12px 24px;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.check-item:last-child {
    border-bottom: none;
}

.check-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid var(--red);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-size: 13px;
    font-weight: 700;
    margin-top: 3px;
    border-radius: 2px;
}

.check-body {
    flex: 1;
}

.check-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.check-title {
    font-size: 15.5px;
    font-weight: 600;
    color: #0f172a;
}

.check-status-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 2px;
    background: #f1f5f9;
    color: #475569;
}

.check-status-tag.critical {
    background: #fee2e2;
    color: #b91c1c;
}

.check-status-tag.security {
    background: #e0f2fe;
    color: #0369a1;
}

.check-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 8px;
}

.check-code-hint {
    background: #0f1117;
    color: #38bdf8;
    padding: 10px 14px;
    border-radius: 2px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12.5px;
    margin-top: 8px;
    overflow-x: auto;
}

/* === COMMENTS === */
.comments-area {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px;
    border-top: 1px solid var(--line);
}

.comments-title {
    font-size: 24px;
    margin-bottom: 40px;
}

.comment-list {
    margin-bottom: 60px;
}

.comment {
    padding: 25px 0;
    border-bottom: 1px solid var(--line);
}

.comment-author {
    font-weight: 600;
    margin-bottom: 5px;
}

.comment-meta {
    font-size: 12px;
    color: var(--grey);
    margin-bottom: 15px;
}

.comment-content p {
    margin-bottom: 0;
}

.comment-form label {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--grey);
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--line);
    font-family: inherit;
    font-size: 15px;
    margin-bottom: 20px;
    transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--red);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .submit {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-form .submit:hover {
    background: var(--red);
}

/* === PAGE === */
.page-header {
    padding: 150px 60px 60px;
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 48px;
}

.page-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 60px 100px;
}

/* === 404 === */
.error-404 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px;
}

.error-404 h1 {
    font-size: 120px;
    color: var(--red);
    line-height: 1;
    margin-bottom: 20px;
}

.error-404 p {
    font-size: 18px;
    color: var(--grey);
    margin-bottom: 40px;
}

.error-404 a {
    font-size: 14px;
    font-weight: 500;
    color: var(--red);
}

/* === SEARCH === */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 15px;
    border: 1px solid var(--line);
    font-family: inherit;
    font-size: 15px;
}

.search-form button {
    padding: 15px 30px;
    background: var(--black);
    color: var(--white);
    border: none;
    cursor: pointer;
}

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 60px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid var(--line);
    font-size: 14px;
}

.pagination a:hover {
    border-color: var(--red);
    color: var(--red);
}

.pagination .current {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: var(--black);
    color: var(--white);
}

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

.btn-outline:hover {
    background: var(--black);
    color: var(--white);
}

/* === FORMS === */
.wpcf7 input,
.wpcf7 textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--line);
    font-family: inherit;
    font-size: 15px;
    margin-bottom: 20px;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: var(--red);
}

.wpcf7 input[type="submit"] {
    background: var(--black);
    color: var(--white);
    border: none;
    cursor: pointer;
    width: auto;
}

.wpcf7 input[type="submit"]:hover {
    background: var(--red);
}

/* === BOT CONFIGURATOR COMPONENT === */
.configurator-intro {
    margin-bottom: 50px;
}

.configurator-heading {
    font-size: 38px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    max-width: 860px;
}

.configurator-container {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: flex-start;
}

.configurator-controls {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.config-group {
    background: #ffffff;
    border: 1px solid var(--line);
    padding: 30px;
    border-radius: 2px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.config-group:focus-within {
    border-color: #111;
}

.config-group-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}

.config-step-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--red);
    background: rgba(229, 57, 53, 0.08);
    padding: 4px 10px;
    border: 1px solid rgba(229, 57, 53, 0.25);
    border-radius: 2px;
}

.config-group-title {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin: 0;
}

.config-options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.config-option-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    background: #fafafa;
    border-radius: 2px;
    cursor: pointer;
    min-height: 48px;
    user-select: none;
    transition: all 0.2s ease;
    position: relative;
}

.config-option-card:hover {
    background: #f4f4f5;
    border-color: #cbd5e1;
}

.config-option-card.active {
    background: #ffffff;
    border-color: var(--black);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.config-option-card:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Radio & Checkbox indicators */
.option-check-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    margin-top: 3px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.config-option-card.active .option-check-dot {
    border-color: var(--red);
}

.config-option-card.active .option-check-dot::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--red);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.option-check-square {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    border: 2px solid #cbd5e1;
    margin-top: 3px;
    flex-shrink: 0;
    position: relative;
    background: #fff;
    transition: all 0.2s ease;
}

.config-option-card.active .option-check-square {
    background: var(--red);
    border-color: var(--red);
}

.config-option-card.active .option-check-square::after {
    content: '✓';
    position: absolute;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.option-info {
    flex: 1;
}

.option-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.option-name {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

.option-duration {
    font-size: 12px;
    font-weight: 600;
    color: var(--red);
    background: rgba(229, 57, 53, 0.08);
    padding: 2px 8px;
    border-radius: 2px;
    white-space: nowrap;
}

.option-desc {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

/* === STICKY SUMMARY CARD === */
.configurator-summary {
    position: sticky;
    top: 100px;
}

.sprint-summary-box {
    background: #0f1117;
    color: #e2e8f0;
    border: 1px solid #222630;
    padding: 32px 28px;
    border-radius: 2px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
    border-top: 4px solid var(--red);
}

.summary-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #222630;
}

.summary-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--red);
    background: rgba(229, 57, 53, 0.15);
    padding: 4px 10px;
    border-radius: 2px;
}

.summary-status {
    font-size: 11px;
    color: #10b981;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.summary-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

.summary-metrics {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
    background: #161922;
    padding: 18px 20px;
    border-radius: 2px;
    border: 1px solid #252b38;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.metric-key {
    font-size: 13.5px;
    color: #94a3b8;
}

.metric-val-live {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.metric-val-live.highlight {
    color: #ff6b6b;
}

.metric-val-sub {
    font-size: 13px;
    color: #cbd5e1;
    font-weight: 500;
}

/* Timeline steps */
.sprint-timeline-block {
    margin-bottom: 24px;
}

.timeline-title,
.stack-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 12px;
}

.timeline-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sprint-step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #141720;
    padding: 12px 14px;
    border-left: 2px solid var(--red);
    border-radius: 0 2px 2px 0;
}

.step-num-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--red);
    white-space: nowrap;
    padding-top: 1px;
}

.step-info {
    flex: 1;
}

.step-name {
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 3px;
    line-height: 1.35;
}

.step-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.45;
    margin: 0;
}

/* Stack tags */
.summary-stack-block {
    margin-bottom: 24px;
}

.stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stack-badge {
    font-size: 11px;
    background: #1e2230;
    color: #cbd5e1;
    padding: 4px 10px;
    border-radius: 2px;
    border: 1px solid #2e3648;
    font-family: ui-monospace, SFMono-Regular, monospace;
}

/* Summary actions */
.summary-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-config-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    width: 100%;
}

.btn-copy-spec {
    background: #1e2433;
    color: #ffffff;
    border: 1px solid #333d54;
}

.btn-copy-spec:hover {
    background: #283044;
    border-color: #4b5878;
    color: #ffffff;
}

.btn-copy-spec.copied {
    background: #064e3b;
    border-color: #10b981;
    color: #a7f3d0;
}

.btn-discuss {
    background: var(--red);
    color: #ffffff;
}

.btn-discuss:hover {
    background: #ff2a26;
    color: #ffffff;
    transform: translateY(-1px);
}

.summary-guarantee {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
    padding-top: 14px;
    border-top: 1px solid #222630;
}

.guarantee-icon {
    flex-shrink: 0;
    font-size: 14px;
}

.summary-guarantee p {
    margin: 0;
}

/* === TMA ARTICLE SCREEN MOCKUPS & ARCHITECTURE === */
.tma-screens-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 44px 0;
}

.tma-phone-device {
    background: #0b0c10;
    border-radius: 36px;
    border: 8px solid #1e2230;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 590px;
    position: relative;
}

.tma-phone-notch {
    background: #0b0c10;
    height: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 18px;
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    border-bottom: 1px solid #161922;
}

.tma-phone-icons {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
}

/* Header inside Telegram */
.tma-tg-header {
    background: #171b26;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #23293a;
}

.tma-tg-title-box {
    text-align: center;
}

.tma-tg-app-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.tma-tg-app-sub {
    font-size: 9.5px;
    color: #94a3b8;
}

.tma-tg-btn-close {
    font-size: 12px;
    color: var(--red);
    font-weight: 600;
    cursor: default;
}

.tma-tg-dots {
    font-size: 14px;
    color: #94a3b8;
    letter-spacing: 1px;
}

/* Body inside TMA */
.tma-screen-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0f121a;
    color: #e2e8f0;
    font-size: 12px;
}

/* Category pills */
.tma-chips-row {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.tma-chip {
    font-size: 10.5px;
    padding: 4px 10px;
    background: #1c2130;
    color: #94a3b8;
    border-radius: 12px;
    white-space: nowrap;
}

.tma-chip.active {
    background: var(--red);
    color: #ffffff;
    font-weight: 600;
}

/* Product list mockup */
.tma-product-mock-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.tma-item-card {
    background: #161a25;
    border: 1px solid #23293a;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.tma-item-thumb {
    width: 44px;
    height: 44px;
    background: #23293a;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.tma-item-details {
    flex: 1;
}

.tma-item-name {
    font-size: 11.5px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
    line-height: 1.25;
}

.tma-item-meta {
    font-size: 10px;
    color: #94a3b8;
}

.tma-item-price {
    font-size: 12px;
    font-weight: 700;
    color: #38bdf8;
    white-space: nowrap;
}

/* Telegram MainButton Mockup */
.tma-main-button-mock {
    margin-top: 14px;
    background: var(--red);
    color: #ffffff;
    text-align: center;
    padding: 11px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Checkout Mockup */
.tma-checkout-box {
    background: #161a25;
    border: 1px solid #23293a;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.tma-checkout-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.tma-user-info-row {
    font-size: 11px;
    color: #e2e8f0;
    line-height: 1.4;
}

.tma-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.tma-pay-option {
    background: #141722;
    border: 1px solid #23293a;
    padding: 8px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
}

.tma-pay-option.selected {
    border-color: var(--red);
    background: #1f1b24;
}

.tma-pay-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tma-pay-icon {
    font-size: 14px;
}

.tma-pay-name {
    font-weight: 600;
    color: #fff;
}

.tma-pay-tag {
    font-size: 9px;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Loyalty Screen Mockup */
.tma-loyalty-card {
    background: linear-gradient(135deg, #1f2433 0%, #11141c 100%);
    border: 1px solid #2d3548;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}

.tma-loyalty-card::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 80px;
    height: 80px;
    background: rgba(229, 57, 53, 0.15);
    border-radius: 50%;
}

.tma-loyalty-tier {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 700;
    margin-bottom: 6px;
}

.tma-loyalty-balance {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.tma-loyalty-cashback {
    font-size: 10px;
    color: #94a3b8;
}

.tma-qr-box {
    background: #ffffff;
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.tma-qr-matrix {
    width: 90px;
    height: 90px;
    background: repeating-conic-gradient(#111 0% 25%, #fff 0% 50%) 50% / 15px 15px;
    border-radius: 4px;
    border: 4px solid #fff;
}

.tma-qr-label {
    font-size: 9.5px;
    color: #333;
    font-weight: 600;
    text-align: center;
}

.tma-ref-stat {
    display: flex;
    justify-content: space-between;
    background: #161a25;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #23293a;
    font-size: 10.5px;
}

.tma-mockup-caption {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

/* === ARCHITECTURE CARDS STYLING === */
.tma-arch-card {
    background: #0d0f15;
    border: 1px solid #222632;
    border-left: 4px solid var(--red);
    border-radius: 2px;
    margin: 32px 0;
    overflow: hidden;
}

.tma-arch-header {
    background: #141722;
    padding: 18px 24px;
    border-bottom: 1px solid #222632;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tma-arch-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.tma-arch-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    padding: 3px 10px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 2px;
}

.tma-arch-body {
    padding: 24px;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.7;
}

.tma-arch-body p {
    color: #cbd5e1;
    margin-bottom: 16px;
    font-size: 15px;
}

.tma-arch-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.tma-arch-point {
    background: #141722;
    padding: 14px 16px;
    border: 1px solid #23293a;
    border-radius: 2px;
}

.tma-arch-point strong {
    color: #ffffff;
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.tma-arch-point span {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

/* === RESPONSIVE === */
@media (max-width: 1000px) {
    .configurator-container {
        grid-template-columns: 1fr;
    }

    .configurator-summary {
        position: static;
        margin-top: 30px;
    }

    .tma-screens-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 40px auto;
    }

    .tma-arch-grid {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-image::before {
        display: none;
    }

    .vendor-cards-grid {
        grid-template-columns: 1fr;
    }

    .vendor-card.span-2 {
        grid-column: auto;
    }

    .callout-metric-grid {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 20px 30px;
    }

    .main-navigation ul {
        gap: 25px;
    }

    .main-navigation a {
        font-size: 12px;
    }

    .hero {
        padding: 120px 30px 80px;
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        justify-content: center;
    }

    .hero-image img {
        max-width: 300px;
    }

    .hero-title {
        font-size: 36px;
    }

    .section {
        padding: 80px 30px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 50px;
    }

    .contact-links {
        align-items: flex-start;
    }

    .contact-text {
        font-size: 28px;
    }

    .site-footer {
        padding: 25px 30px;
        flex-direction: column;
        gap: 10px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .archive-header,
    .single-header,
    .page-header {
        padding: 120px 30px 40px;
    }

    .single-content,
    .page-content,
    .comments-area {
        padding: 0 30px 60px;
    }

    .single-title,
    .page-title {
        font-size: 32px;
    }

    .callout-metric-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .callout-metric {
        border-right: none;
        border-bottom: 1px solid #222630;
        padding-right: 0;
        padding-bottom: 16px;
    }

    .callout-metric:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .callout-fact {
        padding: 24px 20px;
    }

    .reliability-heading {
        font-size: 28px;
    }

    .reliability-cta-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px;
        gap: 24px;
    }

    .btn-dark-accent {
        width: 100%;
        justify-content: center;
    }

    .checklist-items {
        padding: 12px 16px;
    }
}

@media (max-width: 500px) {
    .site-header {
        padding: 15px 20px;
    }

    .logo {
        font-size: 12px;
    }

    .main-navigation a {
        font-size: 11px;
    }

    .main-navigation ul {
        gap: 15px;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-title {
        font-size: 28px;
    }

    .section {
        padding: 60px 20px;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .service-item {
        padding: 35px 25px;
    }

    .vendor-card {
        padding: 24px 18px;
    }

    .metric-val {
        font-size: 26px;
    }

    .spec-artifact-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .check-title-row {
        flex-direction: column;
        gap: 4px;
    }

    .config-group {
        padding: 20px 16px;
    }

    .config-option-card {
        padding: 14px 14px;
    }

    .sprint-summary-box {
        padding: 24px 18px;
    }

    .metric-val-live {
        font-size: 17px;
    }

    .configurator-heading {
        font-size: 26px;
    }

    .tma-screens-grid {
        max-width: 100%;
    }

    .tma-phone-device {
        border-width: 6px;
        min-height: 520px;
    }
}
