/*
Theme Name: SPB BRO
Theme URI: https://spb-bro.ru
Author: SPB BRO Studio
Author URI: https://spb-bro.ru
Description: Премиальная минималистичная тема для веб-студии SPB BRO. Швейцарская типографика, каталоги решений, магазин услуг, тематическая галерея, блог, микроразметка Open Graph и Schema.org.
Version: 2.0.0
Text Domain: spb-bro
License: GNU General Public License v2 or later
*/

/* ==========================================================================
   1. CSS VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
    --bg-page: #ffffff;
    --bg-surface: #fbfbfc;
    --bg-subtle: #f4f4f5;
    --bg-dark: #09090b;
    --bg-dark-surface: #18181b;
    --text-primary: #09090b;
    --text-secondary: #3f3f46;
    --text-muted: #71717a;
    --text-light: #ffffff;
    --border-main: #e4e4e7;
    --border-subtle: #f0f0f2;
    --border-dark: #27272a;
    --accent-black: #000000;
    --accent-green: #10b981;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --shadow-float: 0 20px 40px -15px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: 15px;
    outline: none;
}

ul, ol {
    list-style: none;
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.container-narrow {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.section {
    padding: 100px 0;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
}

/* Common Section Headers */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    gap: 30px;
    flex-wrap: wrap;
}

.section-tag, .heading-tag, .page-top-badge, .cta-badge, .manifesto-tag, .calc-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    background: var(--bg-subtle);
    color: var(--text-primary);
    border: 1px solid var(--border-main);
    border-radius: 4px;
    margin-bottom: 16px;
}

.section-title, .heading-title {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.section-desc, .heading-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 620px;
    margin-bottom: 0;
}

.section-header-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    border-bottom: 1px solid var(--accent-black);
    padding-bottom: 4px;
}
.section-header-link:hover {
    opacity: 0.6;
}

/* Common Buttons */
.btn-primary, .btn-hero-primary, .btn-primary-large, .btn-submit, .btn-calc-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-black);
    color: #ffffff !important;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px;
    border: 1px solid var(--accent-black);
    transition: transform var(--transition-fast), background var(--transition-fast), opacity var(--transition-fast);
}
.btn-primary:hover, .btn-hero-primary:hover, .btn-primary-large:hover, .btn-submit:hover, .btn-calc-apply:hover {
    background: #27272a;
    transform: translateY(-1px);
}

.btn-secondary, .btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--text-primary) !important;
    padding: 14px 26px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px;
    border: 1px solid var(--border-main);
    transition: background var(--transition-fast), border-color var(--transition-fast);
}
.btn-secondary:hover, .btn-hero-secondary:hover {
    background: var(--bg-subtle);
    border-color: var(--accent-black);
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 76px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: background var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-color: var(--border-main);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.header-inner {
    max-width: 1360px;
    height: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-brand-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-badge {
    background: var(--accent-black);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 6px;
    border-radius: 3px;
    letter-spacing: 0.05em;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent-black);
}

.brand-tagline {
    font-size: 12px;
    color: var(--text-muted);
    border-left: 1px solid var(--border-main);
    padding-left: 14px;
}

.main-navigation .nav-menu {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-item a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 0;
    position: relative;
}

.nav-item a:hover {
    color: var(--text-primary);
}

.nav-item.current-menu-item a {
    color: var(--text-primary);
}

.nav-item.current-menu-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-black);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-header-tg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    padding: 8px 14px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-main);
    border-radius: 4px;
}
.btn-header-tg:hover {
    background: #e4e4e7;
}

.tg-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.btn-header-cta {
    background: var(--accent-black);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 18px;
    border-radius: 4px;
    transition: background var(--transition-fast);
}
.btn-header-cta:hover {
    background: #27272a;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
}

.toggle-bar {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Mobile Drawer */
.mobile-drawer {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 999;
    padding: 30px 24px;
    overflow-y: auto;
    border-top: 1px solid var(--border-main);
}

.mobile-drawer.active {
    display: block;
}

.mobile-menu li {
    border-bottom: 1px solid var(--border-subtle);
}

.mobile-menu a {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
}

.mobile-contacts {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mob-phone {
    font-size: 20px;
    font-weight: 600;
}

.mob-tg {
    font-size: 16px;
    color: var(--text-muted);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--accent-black);
    color: #fff;
    padding: 14px;
    border-radius: 4px;
    font-weight: 500;
}

/* ==========================================================================
   4. BREADCRUMBS
   ========================================================================== */
.breadcrumbs-container {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
    margin-top: 76px;
}

.breadcrumbs-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
}

.crumb-link {
    color: var(--text-muted);
}
.crumb-link:hover {
    color: var(--text-primary);
}

.crumb-sep {
    color: var(--border-main);
}

.crumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

/* ==========================================================================
   5. PAGE TOP HERO (FOR ARCHIVES & PAGES)
   ========================================================================== */
.page-top-hero {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-main);
    padding: 80px 0 60px;
    text-align: center;
}

.page-top-inner {
    max-width: 840px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-top-title {
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.page-top-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.filter-btn {
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-main);
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--accent-black);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent-black);
    color: #ffffff;
    border-color: var(--accent-black);
}

/* ==========================================================================
   6. FLAGSHIP FRONT PAGE (HOME HERO)
   ========================================================================== */
.home-hero {
    min-height: calc(100vh - 76px);
    margin-top: 76px;
    padding: 80px 0 60px;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 10% 20%, rgba(245, 245, 247, 0.8) 0%, rgba(255, 255, 255, 1) 90%);
    border-bottom: 1px solid var(--border-main);
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.hero-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: #ffffff;
    padding: 6px 14px;
    border: 1px solid var(--border-main);
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
}

.hero-main-heading {
    font-size: clamp(38px, 4.6vw, 62px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.035em;
    margin-bottom: 22px;
}

.hero-subtext {
    font-size: 19px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 34px;
    max-width: 580px;
}

.hero-actions-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-tg-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 8px;
}
.hero-tg-link:hover {
    color: var(--text-primary);
}

.hero-stats-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-top: 32px;
    border-top: 1px solid var(--border-main);
}

.h-stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--accent-black);
}

.h-stat-lbl {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Glassmorphic Code Card */
.hero-visual-card {
    background: var(--bg-dark);
    color: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--border-dark);
    overflow: hidden;
    box-shadow: var(--shadow-float);
}

.card-glass-header {
    background: #18181b;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border-dark);
}

.glass-dots {
    display: flex;
    gap: 6px;
}

.glass-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3f3f46;
}

.glass-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: #a1a1aa;
}

.glass-code-preview {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    overflow-x: auto;
}

.c-comment { color: #71717a; }
.c-keyword { color: #f43f5e; font-weight: 600; }
.c-string { color: #10b981; }
.c-number { color: #38bdf8; }
.c-bool { color: #fbbf24; }

.glass-footer {
    padding: 12px 24px;
    background: #121214;
    border-top: 1px solid var(--border-dark);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-mini {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #a1a1aa;
    background: #27272a;
    padding: 3px 8px;
    border-radius: 3px;
}

/* ==========================================================================
   7. SERVICES STORE (МАГАЗИН УСЛУГ)
   ========================================================================== */
.services-store-section {
    padding: 60px 0 100px;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.store-card, .h-service-item {
    background: #ffffff;
    border: 1px solid var(--border-main);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.store-card:hover, .h-service-item:hover {
    border-color: var(--accent-black);
    box-shadow: var(--shadow-subtle);
    transform: translateY(-2px);
}

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

.card-badge, .h-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--bg-subtle);
    color: var(--text-primary);
    padding: 3px 8px;
    border-radius: 3px;
    border: 1px solid var(--border-main);
}

.card-duration, .h-time {
    font-size: 13px;
    color: var(--text-muted);
}

.store-card-image {
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--bg-subtle);
}

.store-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.store-card:hover .store-card-image img {
    transform: scale(1.03);
}

.card-title, .h-service-name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-excerpt, .h-service-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-deliverables {
    margin-bottom: 28px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 16px;
}

.deliverable-item {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.check-icon {
    color: var(--accent-black);
    font-weight: bold;
}

.card-footer, .h-service-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-main);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label, .h-price-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.price-val, .h-price-val {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-black);
}

.card-actions, .h-btns {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-card-details, .btn-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}
.btn-card-details:hover, .btn-text:hover {
    color: var(--text-primary);
}

.btn-card-order, .btn-order-sm {
    background: var(--accent-black);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: opacity var(--transition-fast);
}
.btn-card-order:hover, .btn-order-sm:hover {
    opacity: 0.8;
}

/* Home services grid */
.home-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ==========================================================================
   8. INTERACTIVE PRICE CALCULATOR
   ========================================================================== */
.calculator-section {
    padding: 60px 0 100px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-main);
    border-bottom: 1px solid var(--border-main);
}

.calc-box {
    max-width: 960px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--border-main);
    border-radius: 8px;
    padding: 48px;
    box-shadow: var(--shadow-subtle);
}

.calc-header {
    text-align: center;
    margin-bottom: 40px;
}

.calc-title {
    font-size: clamp(26px, 3vw, 36px);
    margin-bottom: 10px;
}

.calc-desc {
    color: var(--text-muted);
}

.calc-step {
    margin-bottom: 32px;
}

.calc-label {
    display: block;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 16px;
}

.calc-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.calc-opt {
    padding: 14px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all var(--transition-fast);
}

.calc-opt:hover {
    border-color: var(--accent-black);
}

.calc-opt.active {
    background: var(--accent-black);
    color: #ffffff;
    border-color: var(--accent-black);
}

.calc-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calc-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    cursor: pointer;
    background: #ffffff;
    font-size: 14px;
    transition: border-color var(--transition-fast);
}
.calc-check:hover {
    border-color: var(--border-main);
}

.calc-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-black);
}

.calc-result-bar {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.result-figures {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.fig-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.fig-val {
    font-size: 26px;
    font-weight: 700;
    color: var(--accent-black);
}

/* ==========================================================================
   9. SINGLE SERVICE TEMPLATE
   ========================================================================== */
.service-hero {
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--border-main);
}

.service-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.service-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.service-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    background: var(--accent-black);
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
}

.service-meta-query {
    font-size: 13px;
    color: var(--text-muted);
}

.service-h1 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 20px;
}

.service-lead {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 30px;
}

.service-quick-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    border-radius: 6px;
    margin-bottom: 32px;
}

.q-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.q-val {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-black);
}

.service-hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.service-hero-media {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-main);
    box-shadow: var(--shadow-subtle);
}

.service-details-section {
    padding: 80px 0;
}

.service-content-body {
    max-width: 860px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
}

.service-content-body h2 {
    font-size: 28px;
    margin: 48px 0 20px;
}

.service-content-body h3 {
    font-size: 22px;
    margin: 32px 0 16px;
}

.service-content-body ul {
    margin-bottom: 28px;
    padding-left: 20px;
}

.service-content-body li {
    list-style: disc;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

/* Tariffs Section */
.tariffs-section {
    padding: 90px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-main);
    border-bottom: 1px solid var(--border-main);
}

.section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.tariffs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tariff-card {
    background: #ffffff;
    border: 1px solid var(--border-main);
    border-radius: 6px;
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.tariff-card.featured {
    border: 2px solid var(--accent-black);
    box-shadow: var(--shadow-float);
    transform: scale(1.02);
}

.tariff-badge-top {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-black);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
}

.tariff-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.tariff-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.tariff-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-black);
    margin-bottom: 6px;
}

.tariff-time {
    font-size: 13px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.tariff-list {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tariff-list li {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    gap: 10px;
}

.tariff-list li span {
    color: var(--accent-black);
    font-weight: bold;
}

.btn-tariff {
    margin-top: auto;
    width: 100%;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--border-main);
    color: var(--text-primary);
    border-radius: 4px;
    font-weight: 500;
    transition: all var(--transition-fast);
}
.btn-tariff:hover {
    border-color: var(--accent-black);
    background: var(--bg-subtle);
}

.btn-tariff-primary {
    margin-top: auto;
    width: 100%;
    padding: 12px;
    background: var(--accent-black);
    border: 1px solid var(--accent-black);
    color: #ffffff;
    border-radius: 4px;
    font-weight: 500;
    transition: opacity var(--transition-fast);
}
.btn-tariff-primary:hover {
    opacity: 0.85;
}

/* Process Section */
.process-section {
    padding: 90px 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.step-card {
    border-top: 2px solid var(--accent-black);
    padding-top: 24px;
}

.step-num {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

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

/* ==========================================================================
   10. READY SOLUTIONS (ГОТОВЫЕ РЕШЕНИЯ)
   ========================================================================== */
.solutions-catalog-section {
    padding: 60px 0 100px;
}

.solutions-grid, .home-solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
    margin-bottom: 80px;
}

.solution-card, .h-sol-item {
    background: #ffffff;
    border: 1px solid var(--border-main);
    border-radius: 6px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.solution-card:hover, .h-sol-item:hover {
    border-color: var(--accent-black);
    box-shadow: var(--shadow-subtle);
}

.sol-card-header, .h-sol-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sol-badge, .h-sol-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-subtle);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid var(--border-main);
}

.sol-time, .h-sol-duration {
    font-size: 13px;
    color: var(--text-muted);
}

.sol-card-img {
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 20px;
    background: var(--bg-subtle);
}

.sol-title, .h-sol-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.sol-excerpt, .h-sol-excerpt {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.sol-stack {
    font-size: 13px;
    margin-bottom: 28px;
    padding: 10px 14px;
    background: var(--bg-subtle);
    border-radius: 4px;
}

.stack-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 6px;
}

.stack-tags {
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.sol-card-bottom, .h-sol-bottom {
    margin-top: auto;
    border-top: 1px solid var(--border-main);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.price-title {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.price-amount, .h-sol-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-black);
}

.sol-actions {
    display: flex;
    gap: 12px;
}

.btn-sol-view, .btn-sol-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    align-self: center;
}
.btn-sol-view:hover, .btn-sol-link:hover {
    color: var(--text-primary);
}

.btn-sol-order {
    background: var(--accent-black);
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 4px;
}

/* Comparison Table */
.compare-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    border-radius: 8px;
    padding: 48px;
}

.compare-title {
    font-size: 26px;
    text-align: center;
    margin-bottom: 32px;
}

.compare-table-wrap {
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.compare-table th, .compare-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-main);
}

.compare-table th {
    background: #ffffff;
    font-weight: 600;
}

.compare-table .highlight {
    background: rgba(0,0,0,0.03);
    border-left: 2px solid var(--accent-black);
    border-right: 2px solid var(--accent-black);
}

/* Single Solution Page */
.sol-hero-section {
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--border-main);
}

.sol-hero-inner {
    max-width: 860px;
    margin: 0 auto;
}

.sol-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.sol-hero-badge {
    background: var(--accent-black);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 3px;
}

.sol-hero-time {
    font-size: 13px;
    color: var(--text-muted);
}

.sol-hero-title {
    font-size: clamp(32px, 4vw, 50px);
    margin-bottom: 20px;
}

.sol-hero-desc {
    font-size: 19px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.sol-hero-details {
    display: flex;
    gap: 30px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.det-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.det-val {
    font-size: 16px;
    font-weight: 600;
}

.det-val.price {
    font-size: 22px;
    color: var(--accent-black);
}

.sol-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.sol-featured-media {
    max-width: 1040px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-main);
    box-shadow: var(--shadow-subtle);
}

.sol-body-section {
    padding: 80px 0;
}

.sol-article-content {
    max-width: 860px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
}

.sol-steps-section {
    padding: 80px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-main);
}

.steps-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.timeline-step {
    border-left: 2px solid var(--accent-black);
    padding-left: 20px;
}

.step-day {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.step-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.step-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==========================================================================
   11. PORTFOLIO & CASES (ПОРТФОЛИО КЕЙСОВ)
   ========================================================================== */
.portfolio-archive-section {
    padding: 60px 0 100px;
}

.portfolio-grid, .home-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.case-card, .h-case-card {
    background: #ffffff;
    border: 1px solid var(--border-main);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.case-card:hover, .h-case-card:hover {
    border-color: var(--accent-black);
    box-shadow: var(--shadow-subtle);
    transform: translateY(-2px);
}

.case-thumb-wrap, .h-case-media {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-subtle);
    display: block;
}

.case-thumb-wrap img, .h-case-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.case-card:hover .case-thumb-wrap img, .h-case-card:hover .h-case-media img {
    transform: scale(1.04);
}

.case-kpi-badge, .h-case-kpi {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: var(--accent-black);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
}

.case-info, .h-case-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.case-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.case-title, .h-case-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.35;
}

.case-excerpt, .h-case-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.case-stack {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.case-link-row, .h-case-more {
    margin-top: auto;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    border-bottom: 1px solid var(--accent-black);
    align-self: flex-start;
    padding-bottom: 2px;
}

/* Single Case Study */
.case-hero-section {
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--border-main);
}

.case-hero-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.case-hero-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    background: var(--accent-black);
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
}

.case-hero-year {
    font-size: 13px;
    color: var(--text-muted);
}

.case-hero-title {
    font-size: clamp(32px, 4vw, 50px);
    margin-bottom: 20px;
}

.case-hero-excerpt {
    font-size: 19px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 36px;
    max-width: 860px;
}

.case-stats-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    border-radius: 6px;
    margin-bottom: 40px;
}

.stat-lbl {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 16px;
    font-weight: 600;
}

.stat-value.kpi {
    color: var(--accent-green);
    font-size: 18px;
}

.case-cover-media {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-main);
    box-shadow: var(--shadow-subtle);
}

.case-body-section {
    padding: 80px 0;
}

.case-main-content {
    max-width: 860px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
}

.case-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid var(--border-main);
    margin-top: 40px;
}

.case-nav-btn {
    display: flex;
    flex-direction: column;
}

.case-nav-btn .arrow {
    font-size: 12px;
    color: var(--text-muted);
}

.case-nav-btn .title {
    font-size: 15px;
    font-weight: 500;
}

/* ==========================================================================
   12. THEMATIC GALLERY (ТЕМАТИЧЕСКАЯ ГАЛЕРЕЯ)
   ========================================================================== */
.gallery-archive-section {
    padding: 60px 0 100px;
}

.gallery-grid, .home-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.gallery-card {
    background: #ffffff;
    border: 1px solid var(--border-main);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.gallery-card:hover {
    border-color: var(--accent-black);
    box-shadow: var(--shadow-subtle);
}

.gallery-thumb-container, .h-gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-subtle);
    cursor: pointer;
}

.gallery-thumb-container img, .h-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.gallery-thumb-container:hover img, .h-gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay, .h-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
    padding: 20px;
    text-align: center;
    color: #fff;
}

.gallery-thumb-container:hover .gallery-overlay, .h-gallery-item:hover .h-gallery-overlay {
    opacity: 1;
}

.gallery-zoom-icon, .h-gallery-zoom {
    font-size: 14px;
    font-weight: 500;
    background: #ffffff;
    color: #000000;
    padding: 8px 16px;
    border-radius: 20px;
}

.gallery-theme-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 3px;
    z-index: 2;
}

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

.gallery-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.gallery-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
}

.gallery-specs {
    margin-bottom: 22px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.spec-row {
    font-size: 13px;
    display: flex;
    justify-content: space-between;
}

.spec-label {
    color: var(--text-muted);
}

.spec-val {
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-weight: 500;
}

.gallery-card-footer {
    margin-top: auto;
    display: flex;
    gap: 10px;
}

.btn-gallery-zoom {
    flex: 1;
    padding: 9px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-main);
    color: var(--text-primary);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

.btn-gallery-order {
    flex: 1.4;
    padding: 9px;
    background: var(--accent-black);
    color: #ffffff;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

/* Gallery Manifesto */
.gallery-manifesto-section {
    padding: 80px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-main);
}

.manifesto-box {
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
}

.manifesto-title {
    font-size: clamp(26px, 3vw, 36px);
    margin-bottom: 48px;
}

.manifesto-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: left;
}

.m-col-num {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-black);
    margin-bottom: 12px;
}

.m-col-h {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.m-col p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==========================================================================
   13. UNIVERSAL LIGHTBOX
   ========================================================================== */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    background: #ffffff;
    max-width: 1080px;
    width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    position: relative;
    box-shadow: var(--shadow-float);
}

.lightbox-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 32px;
    line-height: 1;
    color: var(--text-primary);
    z-index: 10;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-size: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background var(--transition-fast);
}
.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(0, 0, 0, 0.9);
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-image-wrap {
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.lightbox-image-wrap img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-info {
    padding: 44px 36px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.lightbox-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.lightbox-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.lightbox-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.lightbox-meta {
    margin-bottom: 30px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lightbox-meta-item {
    font-size: 13px;
    display: flex;
    justify-content: space-between;
}

.meta-label { color: var(--text-muted); }
.meta-val { font-family: var(--font-mono); font-weight: 500; }

.btn-lightbox-order {
    margin-top: auto;
    width: 100%;
    padding: 14px;
    background: var(--accent-black);
    color: #ffffff;
    border-radius: 4px;
    font-weight: 500;
    font-size: 15px;
}

/* ==========================================================================
   14. BLOG & ARTICLES (БЛОГ И СТАТЬИ)
   ========================================================================== */
.blog-archive-section {
    padding: 60px 0 100px;
}

.blog-posts-grid, .home-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-bottom: 60px;
}

.blog-card, .h-blog-card {
    background: #ffffff;
    border: 1px solid var(--border-main);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.blog-card:hover, .h-blog-card:hover {
    border-color: var(--accent-black);
    box-shadow: var(--shadow-subtle);
}

.blog-card-media, .h-blog-thumb {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-subtle);
    display: block;
}

.blog-card-media img, .h-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.blog-card:hover .blog-card-media img, .h-blog-card:hover .h-blog-thumb img {
    transform: scale(1.04);
}

.blog-cat-badge, .h-blog-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 3px;
}

.blog-card-body, .h-blog-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta, .h-blog-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-card-title, .h-blog-h {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.35;
}

.blog-card-excerpt, .h-blog-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-card-footer, .h-blog-read {
    margin-top: auto;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    border-bottom: 1px solid var(--accent-black);
    align-self: flex-start;
}

/* Single Article */
.article-header {
    padding: 70px 0 40px;
    border-bottom: 1px solid var(--border-subtle);
    text-align: center;
}

.article-meta-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.article-cat-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    background: var(--accent-black);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 3px;
}

.article-main-title {
    font-size: clamp(32px, 4.5vw, 50px);
    margin-bottom: 20px;
    line-height: 1.25;
}

.article-intro-lead {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 760px;
    margin: 0 auto;
}

.article-featured-media {
    margin-top: 40px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-main);
    box-shadow: var(--shadow-subtle);
}

.article-body-wrap {
    padding: 70px 0 100px;
}

.article-rich-content {
    font-size: 18px;
    line-height: 1.85;
    color: #27272a;
}

.article-rich-content h2 {
    font-size: 30px;
    margin: 50px 0 20px;
    letter-spacing: -0.02em;
}

.article-rich-content h3 {
    font-size: 23px;
    margin: 36px 0 16px;
}

.article-rich-content p {
    margin-bottom: 24px;
}

.article-rich-content ul, .article-rich-content ol {
    margin: 20px 0 30px 24px;
}

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

.article-rich-content blockquote {
    border-left: 3px solid var(--accent-black);
    padding: 16px 24px;
    margin: 36px 0;
    background: var(--bg-surface);
    font-size: 20px;
    font-style: italic;
    color: var(--text-primary);
}

/* Article Callouts & Enhanced Blocks (UI/UX Pro Max) */
.callout-fact {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 4px solid var(--accent-black);
    border-radius: 6px;
    padding: 28px 32px;
    margin: 40px 0;
}

.callout-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.callout-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--accent-black);
    color: #ffffff;
}

.callout-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 !important;
}

.callout-fact p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.callout-fact p:last-child {
    margin-bottom: 0;
}

.fact-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 24px 0;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.fact-metric-item {
    display: flex;
    flex-direction: column;
}

.fact-metric-val {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 6px;
}

.fact-metric-desc {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted);
}

.callout-warning {
    background: #fffbeb;
    border: 1px solid #fef08a;
    border-left: 4px solid #d97706;
    border-radius: 6px;
    padding: 28px 32px;
    margin: 40px 0;
}

.callout-warning .callout-badge {
    background: #d97706;
    color: #ffffff;
}

.callout-warning .callout-title {
    color: #92400e;
}

.callout-warning p {
    font-size: 16px;
    line-height: 1.7;
    color: #78350f;
    margin-bottom: 12px;
}

.callout-warning p:last-child {
    margin-bottom: 0;
}

.step-process-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 36px 0;
}

.step-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    border-radius: 6px;
    padding: 24px;
    transition: var(--transition-fast);
}

.step-card:hover {
    border-color: var(--accent-black);
}

.step-number {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-black);
    background: var(--bg-subtle);
    border: 1px solid var(--border-main);
    border-radius: 6px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-content p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

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

.step-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    background: var(--bg-subtle);
    color: var(--text-secondary);
    padding: 3px 8px;
    border-radius: 3px;
    border: 1px solid var(--border-subtle);
}

.checklist-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    border-radius: 6px;
    padding: 32px;
    margin: 40px 0;
}

.checklist-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-main);
}

.checklist-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 !important;
}

.checklist-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 !important;
    list-style: none !important;
}

.checklist-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
}

.checklist-text strong {
    color: var(--text-primary);
}

.article-toc-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    border-radius: 6px;
    padding: 24px 28px;
    margin: 32px 0 40px;
}

.article-toc-title {
    font-size: 13px;
    text-transform: uppercase;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-toc-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-toc-item {
    margin: 0 !important;
    list-style: none !important;
}

.article-toc-link {
    font-size: 15px;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.article-toc-link:hover {
    color: var(--accent-black);
    transform: translateX(4px);
    text-decoration: underline;
}

.article-toc-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .fact-metrics-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .step-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .step-number {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }
    .callout-fact, .callout-warning, .checklist-card, .article-toc-box {
        padding: 20px;
    }
}

.author-signature-box {
    margin-top: 60px;
    padding: 32px;
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    border-radius: 6px;
    display: flex;
    gap: 24px;
    align-items: center;
}

.author-avatar-dummy {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-black);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
}

.author-role {
    font-size: 11px;
    text-transform: uppercase;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.author-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.author-bio {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.article-post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-main);
    gap: 20px;
}

.art-nav-item {
    display: flex;
    flex-direction: column;
}

.art-nav-label {
    font-size: 12px;
    color: var(--text-muted);
}

.art-nav-title {
    font-size: 15px;
    font-weight: 500;
}

/* ==========================================================================
   15. ABOUT & CONTACTS PAGES
   ========================================================================== */
.about-full-section {
    padding: 80px 0 100px;
}

.about-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.metric-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    border-radius: 6px;
    padding: 32px 24px;
}

.metric-num {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--accent-black);
    margin-bottom: 6px;
}

.metric-label {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.metric-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 0;
}

.manifesto-details-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    margin-bottom: 90px;
    padding: 60px 0;
    border-top: 1px solid var(--border-main);
    border-bottom: 1px solid var(--border-main);
}

.man-heading {
    font-size: clamp(30px, 3.5vw, 44px);
    line-height: 1.2;
}

.man-point {
    margin-bottom: 36px;
}

.point-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.point-text {
    font-size: 16px;
    color: var(--text-secondary);
}

.tech-stack-box {
    padding: 40px 0;
}

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

.stack-col {
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    border-radius: 6px;
    padding: 28px;
}

.stack-col-h {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.stack-list li {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Contacts Layout */
.contacts-full-section {
    padding: 80px 0 100px;
}

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

.contacts-info-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    border-radius: 8px;
    padding: 48px;
}

.contact-box-title {
    font-size: 30px;
    margin-bottom: 30px;
}

.info-block {
    margin-bottom: 28px;
}

.info-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    font-family: var(--font-mono);
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-val-large {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-black);
}

.info-val-large.tg {
    color: #0284c7;
}

.info-val {
    font-size: 16px;
    font-weight: 500;
}

.info-sub {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.info-requisites {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border-main);
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.req-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contacts-form-card {
    background: #ffffff;
    border: 1px solid var(--border-main);
    border-radius: 8px;
    padding: 48px;
    box-shadow: var(--shadow-subtle);
}

.form-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    background: var(--accent-black);
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
}

.form-card-title {
    font-size: 26px;
    margin: 12px 0 8px;
}

.form-card-desc {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ==========================================================================
   16. UNIVERSAL FORMS & MODALS
   ========================================================================== */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-main);
    border-radius: 4px;
    background: #ffffff;
    color: var(--text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--accent-black);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.06);
}

.form-disclaimer {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 12px;
}

.form-feedback {
    display: none;
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
}
.form-feedback.success {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.form-feedback.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.form-feedback.info {
    display: block;
    background: #f4f4f5;
    color: var(--text-primary);
}

/* Modal Dialog */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2500;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-backdrop.active {
    display: flex;
}

.modal-dialog {
    background: #ffffff;
    max-width: 540px;
    width: 100%;
    border-radius: 8px;
    padding: 36px;
    position: relative;
    box-shadow: var(--shadow-float);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 28px;
    line-height: 1;
    color: var(--text-muted);
}
.modal-close:hover {
    color: var(--text-primary);
}

.modal-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.modal-title {
    font-size: 24px;
    margin: 6px 0 8px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ==========================================================================
   17. CTA BANNER COMPONENT
   ========================================================================== */
.cta-banner-section {
    padding: 80px 0;
}

.cta-banner {
    background: var(--bg-dark);
    color: #ffffff;
    border-radius: 8px;
    padding: 60px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-banner .cta-badge {
    background: #27272a;
    color: #e4e4e7;
    border-color: #3f3f46;
}

.cta-title {
    color: #ffffff;
    font-size: clamp(26px, 3vw, 36px);
    margin-bottom: 12px;
}

.cta-desc {
    color: #a1a1aa;
    font-size: 17px;
    max-width: 580px;
    margin-bottom: 0;
}

.cta-banner-action {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.cta-banner .btn-primary-large {
    background: #ffffff;
    color: #000000 !important;
    border-color: #ffffff;
}
.cta-banner .btn-primary-large:hover {
    background: #e4e4e7;
}

.cta-tg-link {
    font-size: 14px;
    color: #a1a1aa;
}
.cta-tg-link:hover {
    color: #ffffff;
}

/* ==========================================================================
   18. FOOTER
   ========================================================================== */
.site-footer {
    background: var(--bg-dark);
    color: #ffffff;
    border-top: 1px solid var(--border-dark);
    padding: 80px 0 0;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px 60px;
    display: grid;
    grid-template-columns: 1.4fr 1.2fr 1.1fr 1.3fr;
    gap: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.footer-logo .brand-badge {
    background: #ffffff;
    color: #000000;
}

.footer-logo .brand-name {
    color: #ffffff;
}

.footer-desc {
    color: #a1a1aa;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #71717a;
    font-family: var(--font-mono);
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
}

.footer-heading {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    color: #a1a1aa;
    font-size: 14px;
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: #ffffff;
}

.footer-nav .nav-all {
    color: #ffffff;
    font-weight: 500;
    margin-top: 6px;
}

.contact-item {
    margin-bottom: 14px;
}

.contact-label {
    display: block;
    font-size: 11px;
    color: #71717a;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.contact-val {
    color: #ffffff;
    font-size: 14px;
}

.btn-footer-cta {
    margin-top: 16px;
    background: #27272a;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #3f3f46;
    transition: background var(--transition-fast);
}
.btn-footer-cta:hover {
    background: #3f3f46;
}

.footer-bottom {
    border-top: 1px solid #1f1f23;
    padding: 24px 0;
}

.footer-bottom-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #71717a;
}

.footer-links {
    display: flex;
    gap: 12px;
    align-items: center;
}
.footer-links a:hover {
    color: #ffffff;
}

/* ==========================================================================
   19. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1200px) {
    .store-grid, .home-services-grid, .blog-posts-grid, .home-blog-grid, .gallery-grid, .home-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .about-metrics-grid, .stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .home-hero-grid, .service-hero-grid, .manifesto-details-grid, .contacts-layout-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .home-hero-right {
        order: -1;
    }
    .main-navigation {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
    .hero-stats-band {
        grid-template-columns: repeat(2, 1fr);
    }
    .tariffs-grid {
        grid-template-columns: 1fr;
    }
    .tariff-card.featured {
        transform: none;
    }
    .steps-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
    .lightbox-content {
        grid-template-columns: 1fr;
        max-height: 95vh;
    }
    .lightbox-image-wrap {
        max-height: 40vh;
    }
    .lightbox-info {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .container, .container-wide, .header-inner, .footer-grid, .footer-bottom-inner {
        padding-left: 20px;
        padding-right: 20px;
    }
    .section {
        padding: 60px 0;
    }
    .store-grid, .home-services-grid, .solutions-grid, .home-solutions-grid,
    .portfolio-grid, .home-portfolio-grid, .gallery-grid, .home-gallery-grid,
    .blog-posts-grid, .home-blog-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .process-grid, .steps-timeline, .about-metrics-grid, .manifesto-columns, .stack-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .calc-box, .compare-box, .contacts-info-card, .contacts-form-card, .cta-banner {
        padding: 28px 20px;
    }
    .brand-tagline {
        display: none;
    }
    .btn-header-cta {
        display: none;
    }
    .hero-stats-band {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .case-stats-panel, .service-quick-info {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   CALLOUTS, TRAPS & CHECKLIST MODULES (UI/UX PRO MAX)
   ========================================================================== */

/* 1. Callout Blocks */
.callout-fact {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 4px solid var(--accent-black);
    border-radius: 6px;
    padding: 24px 28px;
    margin: 36px 0;
    position: relative;
}

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

.callout-fact-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    background: #09090b;
    color: #ffffff;
    border-radius: 4px;
}

.callout-fact-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.callout-fact-content {
    font-size: 16px;
    line-height: 1.7;
    color: #1e293b;
    margin: 0;
}

.callout-fact-content strong {
    color: #0f172a;
}

.callout-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #d97706;
    border-radius: 6px;
    padding: 24px 28px;
    margin: 36px 0;
}

.callout-warning-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    background: #d97706;
    color: #ffffff;
    border-radius: 4px;
    margin-bottom: 12px;
}

.callout-warning-content {
    font-size: 16px;
    line-height: 1.7;
    color: #78350f;
    margin: 0;
}

/* 2. Traps Section */
.home-traps-section {
    background: #fafafa;
    border-top: 1px solid var(--border-main);
    border-bottom: 1px solid var(--border-main);
}

.traps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.trap-card {
    background: #ffffff;
    border: 1px solid var(--border-main);
    border-radius: 8px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.trap-card:hover {
    border-color: #09090b;
    transform: translateY(-2px);
    box-shadow: var(--shadow-subtle);
}

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

.trap-number {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.trap-warning-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 4px;
}

.trap-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.35;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.trap-scheme {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.trap-solution {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #166534;
}

.trap-solution-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #15803d;
    margin-bottom: 4px;
}

.traps-action-bar {
    margin-top: 48px;
    padding: 24px 32px;
    background: #ffffff;
    border: 1px solid var(--border-main);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.traps-action-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.traps-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent-black);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: opacity var(--transition-fast);
}

.traps-action-btn:hover {
    opacity: 0.85;
}

/* 3. Checklist Section */
.home-checklist-section {
    background: var(--bg-page);
    padding: 100px 0;
    border-bottom: 1px solid var(--border-main);
}

.checklist-widget {
    margin-top: 40px;
    background: #ffffff;
    border: 1px solid var(--border-main);
    border-radius: 12px;
    box-shadow: var(--shadow-subtle);
    overflow: hidden;
}

.checklist-header-box {
    padding: 32px;
    background: #fbfbfc;
    border-bottom: 1px solid var(--border-main);
}

.checklist-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.checklist-stats-wrap {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.checklist-stats-num {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.checklist-stats-label {
    font-size: 14px;
    color: var(--text-muted);
}

.checklist-status-badge {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    background: #f4f4f5;
    color: #52525b;
    border: 1px solid #e4e4e7;
    transition: all var(--transition-fast);
}

.checklist-status-badge.in-progress {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.checklist-status-badge.completed {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.checklist-progress-container {
    width: 100%;
}

.checklist-progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #e4e4e7;
    border-radius: 4px;
    overflow: hidden;
}

.checklist-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: #10b981;
    border-radius: 4px;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.checklist-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-bottom: 1px solid var(--border-main);
}

.checklist-category-card {
    padding: 32px;
    border-bottom: 1px solid var(--border-main);
    border-right: 1px solid var(--border-main);
}

.checklist-category-card:nth-child(2n) {
    border-right: none;
}

.checklist-category-card:nth-last-child(-n+2) {
    border-bottom: none;
}

.checklist-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.checklist-cat-num {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    background: var(--accent-black);
    color: #ffffff;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.checklist-cat-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.checklist-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checklist-item-row {
    position: relative;
}

.checklist-item-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background var(--transition-fast);
    user-select: none;
}

.checklist-item-label:hover {
    background: #f4f4f5;
}

.checklist-checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checklist-custom-checkbox {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 2px solid #a1a1aa;
    border-radius: 4px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    transition: all var(--transition-fast);
}

.checklist-checkbox-input:focus-visible + .checklist-item-label .checklist-custom-checkbox {
    outline: 2px solid var(--accent-black);
    outline-offset: 2px;
}

.checklist-checkbox-input:checked + .checklist-item-label .checklist-custom-checkbox {
    background: var(--accent-black);
    border-color: var(--accent-black);
}

.checklist-checkbox-input:checked + .checklist-item-label .checklist-custom-checkbox::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.checklist-checkbox-input:checked + .checklist-item-label .checklist-item-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.checklist-item-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.checklist-item-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.45;
    transition: color var(--transition-fast);
}

.checklist-item-hint {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.checklist-footer-summary {
    padding: 32px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.checklist-summary-left {
    max-width: 640px;
}

.checklist-summary-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.checklist-summary-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

.checklist-summary-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-checklist-reset {
    font-size: 13px;
    font-family: var(--font-mono);
    color: var(--text-muted);
    background: none;
    border: 1px solid var(--border-main);
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-checklist-reset:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

/* 4. Article Checklist Card & Step Process */
.article-rich-content .checklist-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 28px;
    margin: 36px 0;
}

.article-rich-content .checklist-card h4 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 20px;
    color: #0f172a;
}

.article-rich-content .checklist-card ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.article-rich-content .checklist-card li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    list-style: none;
    font-size: 16px;
    line-height: 1.6;
    color: #334155;
}

.article-rich-content .checklist-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: #10b981;
    font-family: var(--font-mono);
}

.article-rich-content .step-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 36px 0;
}

.article-rich-content .step-process-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    border-radius: 8px;
    padding: 24px;
    position: relative;
}

.article-rich-content .step-num {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-black);
    background: #e4e4e7;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.article-rich-content .step-process-item h4 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 600;
}

.article-rich-content .step-process-item p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 900px) {
    .traps-grid, .checklist-categories-grid {
        grid-template-columns: 1fr;
    }
    .checklist-category-card {
        border-right: none;
    }
    .checklist-category-card:nth-last-child(2) {
        border-bottom: 1px solid var(--border-main);
    }
}
