/* src/styles/martinkloboucnik.css */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1d4ed8;
    --primary-dark: #163d9c;
    --secondary-color: #64748b;
    --accent-color: #0f766e;
    --navy: #0b1220;
    --navy-soft: #162033;
    --text-dark: #0f172a;
    --text-light: #5b6577;
    --bg-light: #f4f6f8;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(11, 18, 32, 0.05);
    --shadow-md: 0 8px 20px -8px rgba(11, 18, 32, 0.12);
    --shadow-lg: 0 16px 32px -12px rgba(11, 18, 32, 0.16);
    --shadow-xl: 0 24px 40px -16px rgba(11, 18, 32, 0.2);
    --transition: all 0.25s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.65;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, .nav-brand, .stat-number, .process-num {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: none;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.nav-brand-text strong {
    font-weight: 700;
}

.nav-brand-text small {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 8.5rem 0 5rem;
    overflow: hidden;
    background: var(--navy);
    color: #e8eef7;
}

.hero-background {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 85% 20%, rgba(29, 78, 216, 0.28), transparent 55%),
        radial-gradient(ellipse 50% 50% at 10% 90%, rgba(15, 118, 110, 0.18), transparent 50%);
    z-index: 0;
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    max-width: none;
    z-index: 1;
}

.hero-visual {
    position: relative;
}

.hero-visual img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
    box-shadow: 0 28px 50px -24px rgba(0, 0, 0, 0.55);
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2.15rem, 4.4vw, 3.35rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    color: #fff;
    animation: fadeInUp 0.8s ease;
}

.hero-description {
    font-size: 1.125rem;
    color: #b7c3d4;
    margin-bottom: 2rem;
    line-height: 1.75;
    max-width: 640px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.35s both;
}

.hero .btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.hero .btn-secondary:hover {
    background: #fff;
    color: var(--navy);
    border-color: #fff;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    list-style: none;
    margin-top: 2.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9aa8bc;
    font-size: 0.95rem;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-facts strong {
    color: #fff;
    font-weight: 600;
    margin-right: 0.35rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-kicker {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 0.65rem;
}

.section-title {
    font-size: clamp(1.85rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 640px;
    margin: 0 auto;
}

/* Process */
.process {
    padding: 0 0 2.5rem;
    background: var(--bg-white);
    margin-top: -1px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-top: -2.5rem;
    background: var(--bg-white);
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.process-step {
    padding: 1.75rem 1.5rem 1.6rem;
    border-right: 1px solid var(--border-color);
}

.process-step:last-child {
    border-right: none;
}

.process-num {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.08em;
    margin-bottom: 0.65rem;
}

.process-step h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.process-step p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.55;
}

/* Services Section */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2rem 1.85rem;
    border-radius: 10px;
    box-shadow: none;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-icon {
    width: 48px;
    height: 48px;
    background: var(--navy);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: white;
}

.service-icon svg {
    width: 30px;
    height: 30px;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 650;
    margin-bottom: 0.85rem;
    color: var(--text-dark);
}

.service-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    padding-left: 0;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Experience */
.experience {
    background: var(--bg-white);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.experience-card {
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-white);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.experience-photo {
    height: 180px;
    overflow: hidden;
    background: var(--navy);
}

.experience-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-body {
    padding: 1.5rem 1.5rem 1.6rem;
}

.experience-meta {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 0.7rem;
}

.experience-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.experience-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin-top: 1.15rem;
}

.experience-tags li {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--navy);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
}

/* About Section */
.about {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: start;
}

.about-text .section-title {
    max-width: 18ch;
}

.about-description {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.25rem;
    letter-spacing: -0.03em;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.85rem;
}

.about-panel {
    background: var(--navy);
    color: #d7dee8;
    padding: 2rem 1.75rem;
    border-radius: 12px;
}

.about-panel h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.competence-list {
    list-style: none;
}

.competence-list li {
    position: relative;
    padding: 0.7rem 0 0.7rem 1.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.92rem;
    line-height: 1.45;
}

.competence-list li:last-child {
    border-bottom: none;
}

.competence-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.05rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5eead4;
}

.tech {
    margin-top: 3.5rem;
}

.tech-title {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
}

.tech-groups {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.tech-group h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.tech-group ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
}

.tech-group li {
    font-size: 0.8rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
    color: var(--text-dark);
}

.about-image {
    position: relative;
}

.about-photo {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.image-placeholder {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 4rem;
    text-align: center;
    border: 2px dashed var(--border-color);
    color: var(--text-light);
}

.image-placeholder svg {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    opacity: 0.5;
}

/* Gallery Section */
.gallery {
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.gallery-placeholder {
    background: var(--bg-white);
    padding: 4rem 2rem;
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.gallery-placeholder svg {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Contact Section */
.contact {
    background: var(--bg-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3.5rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-details p {
    color: var(--text-light);
}

.contact-details a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}

.contact-details a:hover {
    color: var(--primary-color);
}

.email-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.email-link:hover {
    color: #3b82f6;
}

.email-link-footer {
    color: #e0e7ff;
}

.email-link-footer:hover {
    color: #c7d2fe;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.social-link:hover {
    color: var(--primary-dark);
}

/* Contact Form */
.contact-form {
    background: var(--bg-light);
    padding: 2.25rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--navy);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-contact a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-customer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-customer-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.nav-brand-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-link-customer {
    color: var(--primary-color);
    font-weight: 600;
}

/* Customer Section */
.customer-section {
    min-height: 100vh;
    padding: 8rem 0 4rem;
    background: var(--bg-light);
}

.customer-section--wide .container {
    max-width: none;
    width: 100%;
    padding: 0 1rem;
}

.customer-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.customer-login-card {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    max-width: 440px;
    width: 100%;
    text-align: center;
}

.customer-login-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.customer-login-icon svg {
    width: 28px;
    height: 28px;
}

.customer-login-card .section-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.customer-login-card .section-subtitle {
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.customer-login-form {
    text-align: left;
}

.customer-login-form .btn-full {
    width: 100%;
    margin-top: 0.5rem;
}

.customer-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border: 1px solid #fecaca;
}

.customer-login-hint {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.customer-content .section-header {
    margin-bottom: 3rem;
}

.customer-panels {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.customer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.customer-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.customer-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.customer-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: white;
}

.customer-card-icon svg {
    width: 24px;
    height: 24px;
}

.customer-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.customer-card > p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.customer-list {
    list-style: none;
    padding: 0;
}

.customer-list li {
    padding: 0.4rem 0;
    font-size: 0.875rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.customer-list li:last-child {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.status-active {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-done {
    background: #dcfce7;
    color: #15803d;
}

.status-planned {
    background: #f3f4f6;
    color: #6b7280;
}

.customer-support-info {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.8;
}

.customer-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Torrent management */
.torrent-panel {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin-bottom: 2.5rem;
}

.torrent-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.torrent-panel-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.torrent-panel-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
}

.torrent-panel-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.torrent-auto-refresh {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    cursor: pointer;
}

.torrent-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.torrent-stat {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.torrent-stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.torrent-stat strong {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.torrent-message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.torrent-message-success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.torrent-message-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.torrent-message-info {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.torrent-table-wrapper {
    width: 100%;
}

.torrent-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.torrent-table th,
.torrent-table td {
    padding: 0.65rem 0.4rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    overflow: hidden;
}

.torrent-table th {
    font-weight: 600;
    color: var(--text-dark);
    background: var(--bg-light);
    font-size: 0.8rem;
    line-height: 1.2;
}

.torrent-table th:nth-child(1),
.torrent-table td:nth-child(1) { width: 28%; }

.torrent-table th:nth-child(2),
.torrent-table td:nth-child(2) { width: 14%; }

.torrent-table th:nth-child(3),
.torrent-table td:nth-child(3) { width: 12%; text-align: center; }

.torrent-table th:nth-child(4),
.torrent-table td:nth-child(4) { width: 14%; }

.torrent-table th:nth-child(5),
.torrent-table td:nth-child(5) { width: 22%; }

.torrent-table th:nth-child(6),
.torrent-table td:nth-child(6) { width: 10%; }

.torrent-table tbody tr:hover {
    background: rgba(37, 99, 235, 0.03);
}

.torrent-name {
    font-weight: 500;
    min-width: 0;
}

.torrent-name-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.torrent-meta {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 0.15rem;
}

.torrent-error-hint {
    color: #dc2626;
    margin-left: 0.25rem;
    cursor: help;
}

.torrent-combined-cell {
    line-height: 1.35;
}

.torrent-combined-cell .status-badge {
    margin-bottom: 0.35rem;
}

.torrent-combined-line {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.torrent-combined-sep {
    color: var(--text-light);
    margin: 0 0.15rem;
}

.torrent-swarm-cell .torrent-combined-line {
    font-size: 0.95rem;
}

.torrent-peers-cell {
    white-space: nowrap;
    text-align: center;
}

.torrent-peers-cell strong {
    font-size: 1rem;
    color: var(--text-dark);
}

.torrent-seeders {
    color: #15803d;
}

.torrent-subtext {
    display: block;
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 0.1rem;
}

.torrent-peer-detail {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.1rem;
}

.torrent-progress {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.25rem;
    min-width: 80px;
}

.torrent-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.torrent-progress-text {
    font-size: 0.8rem;
    color: var(--text-light);
}

.torrent-actions {
    white-space: nowrap;
}

.btn-torrent {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-white);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    margin-right: 0.25rem;
}

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

.btn-torrent.btn-delete:hover {
    background: #fef2f2;
    border-color: #dc2626;
    color: #dc2626;
}

.torrent-empty {
    text-align: center;
    color: var(--text-light);
    padding: 2rem !important;
}

.torrent-error {
    color: #dc2626;
}

.apache-log-panel {
    margin-bottom: 0;
}

.apache-log-controls {
    align-items: flex-end;
}

.apache-log-vhost-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-light);
    min-width: 260px;
}

.apache-log-vhost-select {
    min-width: 260px;
    max-width: 360px;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 0.875rem;
}

.apache-log-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.apache-log-page-info {
    font-size: 0.9rem;
    color: var(--text-dark);
    min-width: 140px;
    text-align: center;
}

.apache-log-table-wrapper {
    overflow-x: auto;
}

.apache-log-table th:nth-child(1),
.apache-log-table td:nth-child(1) { width: 14%; }

.apache-log-table th:nth-child(2),
.apache-log-table td:nth-child(2) { width: 22%; }

.apache-log-table th:nth-child(3),
.apache-log-table td:nth-child(3) { width: 22%; }

.apache-log-table th:nth-child(4),
.apache-log-table td:nth-child(4) { width: 16%; }

.apache-log-table th:nth-child(5),
.apache-log-table td:nth-child(5) { width: 14%; }

.apache-log-table th:nth-child(6),
.apache-log-table td:nth-child(6) { width: 12%; }

.apache-log-time,
.apache-log-file,
.apache-log-client,
.apache-log-network,
.apache-log-transfer,
.apache-log-request {
    min-width: 0;
}

.apache-log-ua {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.apache-log-stat-wide strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-success {
    background: #dcfce7;
    color: #15803d;
}

.status-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-warning {
    background: #fef3c7;
    color: #b45309;
}

.status-error {
    background: #fef2f2;
    color: #dc2626;
}

.status-unknown {
    background: var(--bg-light);
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1100px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-visual img {
        height: 280px;
    }

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

    .process-step:nth-child(2) {
        border-right: none;
    }

    .process-step:nth-child(1),
    .process-step:nth-child(2) {
        border-bottom: 1px solid var(--border-color);
    }

    .experience-grid,
    .tech-groups {
        grid-template-columns: 1fr 1fr;
    }

    .experience-grid .experience-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 7.5rem 0 4rem;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-visual img {
        height: 220px;
    }

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

    .hero-description {
        font-size: 1rem;
    }

    .process-grid,
    .experience-grid,
    .tech-groups,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .experience-grid .experience-card:last-child {
        grid-column: auto;
    }

    .process-grid {
        margin-top: 0;
    }

    .process-step {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .process-step:last-child {
        border-bottom: none;
    }

    .about-text .section-title {
        max-width: none;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

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

    .torrent-panel-header {
        flex-direction: column;
    }

    .torrent-panel-controls {
        width: 100%;
        justify-content: space-between;
    }

    .apache-log-controls {
        align-items: stretch;
    }

    .apache-log-vhost-label,
    .apache-log-vhost-select {
        width: 100%;
        max-width: none;
    }

    .customer-section--wide .container {
        padding: 0 0.5rem;
    }

    .customer-panels {
        grid-template-columns: 1fr;
    }

    .torrent-table {
        font-size: 0.75rem;
    }

    .torrent-table th,
    .torrent-table td {
        padding: 0.5rem 0.25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.85rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}



[data-mk-root]{display:block;width:100%;}
