/* -------------------------------------------------------------
   TMK-WEB — CSS Design System & Theme Styles
   ------------------------------------------------------------- */

:root {
    /* Color Palette */
    --bg-dark: #07090e;
    --bg-card: rgba(18, 22, 34, 0.7);
    --bg-card-hover: rgba(28, 34, 52, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.03);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(79, 70, 229, 0.4);

    --primary: #6366f1;
    --primary-glow: #4f46e5;
    --cyan: #06b6d4;
    --emerald: #10b981;
    --amber: #f59e0b;
    --rose: #f43f5e;
    --purple: #8b5cf6;

    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #6b7280;

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Basic Setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography & General Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: #ffffff;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 90px 0;
}

.text-center { text-align: center; }
.text-cyan { color: var(--cyan); }
.text-emerald { color: var(--emerald); }
.text-amber { color: var(--amber); }

.gradient-text {
    background: linear-gradient(135deg, #a5b4fc 0%, #38bdf8 50%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.15);
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-sm {
    padding: 9px 18px;
    font-size: 0.88rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.55);
    transform: translateY(-2px);
}

.btn-max {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.35);
}

.btn-max:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    box-shadow: 0 12px 35px rgba(2, 132, 199, 0.55);
    transform: translateY(-2px);
}

.max-icon-sm {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    display: inline-block;
    border-radius: 4px;
    object-fit: contain;
}

.max-icon-btn {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    display: inline-block;
    border-radius: 5px;
    object-fit: contain;
}

.glow-button {
    position: relative;
    overflow: hidden;
}

.glow-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(30deg);
    transition: 0.8s;
}

.glow-button:hover::after {
    left: 100%;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

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

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: #818cf8;
}

/* Badges & Section Tags */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #818cf8;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 50px auto;
}

/* Top Status Bar */
.top-bar {
    background: rgba(10, 13, 20, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.location-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--emerald);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.top-contacts {
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-contacts a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
}

.top-contacts a:hover {
    color: var(--cyan);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    transition: var(--transition);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo-img {
    height: 46px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    object-fit: contain;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-name .highlight {
    color: var(--cyan);
}

.brand-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--cyan);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 80px 0 100px 0;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(6, 182, 212, 0.1) 40%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 24px;
}

.badge-icon {
    width: 18px;
    height: 18px;
    color: var(--amber);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 580px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 45px;
}

.hero-metrics {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

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

.metric-val {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.metric-lbl {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.metric-divider {
    width: 1px;
    height: 36px;
    background: var(--border-color);
}

/* Hero Visual Showcase */
.hero-visual {
    position: relative;
}

.visual-card-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.window-bar {
    background: rgba(10, 14, 23, 0.9);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

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

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.window-title {
    font-size: 0.8rem;
    color: var(--text-dark);
}

.speed-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--emerald);
    font-weight: 600;
}

.visual-image-container {
    position: relative;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.visual-card-wrapper:hover .hero-image {
    transform: scale(1.03);
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    z-index: 2;
    animation: float 4s ease-in-out infinite alternate;
}

.badge-top-right {
    top: 20px;
    right: 20px;
}

.badge-bottom-left {
    bottom: 20px;
    left: 20px;
    animation-delay: 2s;
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

.icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.bg-emerald { background: var(--emerald); }
.bg-indigo { background: var(--primary); }
.bg-cyan { background: var(--cyan); }

.badge-number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
}

.badge-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px;
}

.service-card {
    padding: 32px 28px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.featured-service {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(22, 28, 45, 0.85);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.2);
}

.popular-ribbon {
    position: absolute;
    top: -12px;
    right: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--cyan) 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 50px;
    text-transform: uppercase;
}

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

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.bg-indigo-light { background: rgba(99, 102, 241, 0.15); color: var(--primary); }
.bg-cyan-light { background: rgba(6, 182, 212, 0.15); color: var(--cyan); }
.bg-purple-light { background: rgba(139, 92, 246, 0.15); color: var(--purple); }
.bg-emerald-light { background: rgba(16, 185, 129, 0.15); color: var(--emerald); }

.service-tag {
    font-size: 0.78rem;
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.service-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
    flex-grow: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.feature-item i {
    width: 16px;
    height: 16px;
    color: var(--emerald);
    flex-shrink: 0;
}

.service-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.meta-label { color: var(--text-muted); }
.meta-value { color: #ffffff; font-weight: 600; }

/* Calculator Section */
.calculator-card {
    padding: 50px 40px;
    border-radius: var(--radius-xl);
}

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

.calc-body-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 40px;
}

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

.step-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: #ffffff;
    margin-bottom: 14px;
}

.radio-buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.radio-card {
    position: relative;
    cursor: pointer;
}

.radio-card input {
    position: absolute;
    opacity: 0;
}

.radio-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition);
}

.radio-content i {
    color: var(--cyan);
    margin-bottom: 4px;
}

.radio-card input:checked + .radio-content,
.radio-card.active .radio-content {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.radio-title {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
}

.radio-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.checkbox-buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-card {
    position: relative;
    cursor: pointer;
}

.checkbox-card input {
    position: absolute;
    opacity: 0;
}

.checkbox-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
}

.chk-box {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: var(--transition);
}

.checkbox-card input:checked + .checkbox-content .chk-box {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.checkbox-card input:checked + .checkbox-content {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.4);
}

.chk-title { font-weight: 600; font-size: 0.92rem; color: #ffffff; }
.chk-desc { font-size: 0.78rem; color: var(--text-muted); }

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

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--text-main);
}

.custom-checkbox input { display: none; }

.checkmark {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
}

.custom-checkbox input:checked + .checkmark {
    background: var(--emerald);
    border-color: var(--emerald);
}

.custom-checkbox input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 3px;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

/* Calculator Summary Panel */
.calc-summary-panel {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.summary-header h3 {
    font-size: 1.25rem;
}

.promo-pill {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--amber);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.summary-row strong {
    color: #ffffff;
}

.summary-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.price-row {
    margin-top: 10px;
}

.price-box {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-dark);
    font-size: 1rem;
}

.current-price {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--emerald);
}

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

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.input-group input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: rgba(10, 13, 20, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.form-disclaimer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-dark);
    text-align: center;
    justify-content: center;
}

/* Speed Benchmark Section */
.speed-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 960px;
    margin: 0 auto;
}

.speed-card {
    padding: 35px;
    position: relative;
}

.speed-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.score-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    flex-shrink: 0;
}

.score-red {
    background: rgba(239, 68, 68, 0.15);
    border: 3px solid #ef4444;
    color: #ef4444;
}

.score-green {
    background: rgba(16, 185, 129, 0.15);
    border: 3px solid #10b981;
    color: #10b981;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
}

.status-badge {
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 4px;
}

.status-badge.bad { color: #f87171; }
.status-badge.good { color: #34d399; }

.speed-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.speed-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
}

.speed-bad .speed-list i { color: #ef4444; margin-top: 2px; }
.speed-good .speed-list i { color: #10b981; margin-top: 2px; }

/* Portfolio Section */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 22px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.portfolio-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-thumb img {
    transform: scale(1.08);
}

.placeholder-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-gradient-blue { background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%); }
.bg-gradient-purple { background: linear-gradient(135deg, #581c87 0%, #0f172a 100%); }
.bg-gradient-emerald { background: linear-gradient(135deg, #064e3b 0%, #0f172a 100%); }

.thumb-inner {
    text-align: center;
    color: #ffffff;
}

.thumb-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    color: var(--cyan);
}

.thumb-title {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

.portfolio-overlay {
    position: absolute;
    top: 14px;
    right: 14px;
}

.speed-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: var(--emerald);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
}

.portfolio-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-cat {
    font-size: 0.8rem;
    color: var(--cyan);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.case-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.case-title a {
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.case-title a:hover {
    color: var(--cyan);
}

.link-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.case-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 18px;
    flex-grow: 1;
}

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

.case-tags span {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-dark);
}

/* Advantages Section */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.adv-card {
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.adv-number {
    position: absolute;
    top: 15px;
    right: 20px;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
}

.adv-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.adv-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.adv-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* Promo Banner Section */
.promo-banner-section {
    padding: 40px 0;
}

.promo-banner {
    padding: 50px 60px;
    border-radius: var(--radius-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.2);
}

.promo-action {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(244, 63, 94, 0.15);
    color: var(--rose);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.promo-content h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.promo-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* FAQ Accordion */
.faq-accordion-container {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 22px 28px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--cyan);
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 28px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 0 28px 24px 28px;
}

/* Contacts Section */
.contacts-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
}

.contacts-info {
    padding: 40px;
}

.contacts-info h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.contacts-info p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-dark);
}

.detail-val {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.contact-links-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.contact-links-inline .detail-sep {
    color: var(--text-dark);
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--cyan);
    margin-top: 4px;
}

.map-link:hover { text-decoration: underline; }

.social-links-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
}

.social-btn.max {
    background: rgba(2, 132, 199, 0.18);
    border: 1px solid rgba(2, 132, 199, 0.35);
    color: #38bdf8;
}

.social-btn.max:hover {
    background: #0284c7;
    color: #ffffff;
}

.social-btn.tg {
    background: rgba(42, 171, 238, 0.18);
    border: 1px solid rgba(42, 171, 238, 0.35);
    color: #38bdf8;
}

.social-btn.tg:hover {
    background: #2AABEE;
    color: #ffffff;
}

.social-btn.phone {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary);
}

.social-btn.phone:hover {
    background: var(--primary);
    color: #ffffff;
}

/* Main Contact Form */
.contacts-form-wrapper {
    padding: 40px;
    border-radius: var(--radius-xl);
}

.contacts-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.contacts-form-wrapper p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.main-contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.88rem;
    color: #ffffff;
    font-weight: 500;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.input-with-icon input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(10, 13, 20, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.input-with-icon input {
    padding-left: 44px;
}

.form-group select option {
    background: #0f172a;
    color: #ffffff;
}

.input-with-icon input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
}

.privacy-note {
    font-size: 0.75rem;
    color: var(--text-dark);
    text-align: center;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    background: rgba(5, 7, 12, 0.95);
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.address-sub {
    font-size: 0.8rem;
    color: var(--text-dark);
    margin-top: 4px;
}

/* Floating Action Bar (Mobile Sticky) */
.floating-cta-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 50px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.max-float {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}

.tg-float {
    background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%);
}

.phone-float {
    background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
}

.floating-btn:hover {
    transform: scale(1.05);
}

/* Modal Dialog */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-window {
    width: 90%;
    max-width: 440px;
    padding: 35px;
    border-radius: var(--radius-xl);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-window {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
}

.modal-close:hover { color: #ffffff; }

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 3000;
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid var(--emerald);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-grid,
    .calc-body-grid,
    .contacts-grid,
    .speed-comparison-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .main-nav {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        background: rgba(10, 13, 20, 0.98);
        border-bottom: 1px solid var(--border-color);
        padding: 25px;
        display: none;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .mobile-toggle {
        display: none !important;
    }

    .floating-cta-bar .btn-text {
        display: none;
    }
    
    .floating-btn {
        padding: 14px;
        border-radius: 50%;
    }
}

@media (max-width: 600px) {
    .section-title {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-metrics {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .metric-divider { display: none; }

    .calc-summary-panel {
        padding: 20px;
    }
}
