/* ── Visota ERP Case ── */

/* Hero */
.visota-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #0284c7 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.visota-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.visota-hero__content { position: relative; z-index: 1; }
.visota-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}
.visota-hero__badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: visota-pulse 2s infinite;
}
@keyframes visota-pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.visota-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.visota-hero__subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 640px;
    margin-bottom: 2rem;
}
.visota-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}
.visota-hero__tag {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 0.875rem;
}
.visota-hero__metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 700px;
}
.visota-hero__metric { text-align: center; }
.visota-hero__metric-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: #38bdf8;
}
.visota-hero__metric-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.375rem;
}

/* Problem */
.visota-problem { margin-top: 2rem; }
.visota-problem__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.visota-problem__card {
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-top: 4px solid #ef4444;
}
.visota-problem__icon {
    width: 48px;
    height: 48px;
    background: #fef2f2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    margin-bottom: 1rem;
}
.visota-problem__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}
.visota-problem__desc {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Gallery */
.visota-gallery__hint {
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}
.visota-gallery {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.visota-gallery__controls {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.visota-gallery__switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.visota-gallery__switcher-label {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}
.visota-gallery__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.825rem;
    font-weight: 500;
    transition: all 0.2s;
}
.visota-gallery__btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}
.visota-gallery__btn--active {
    background: #0284c7;
    border-color: #0284c7;
    color: #fff;
}
.visota-gallery__main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.visota-gallery__nav {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}
.visota-gallery__nav:hover {
    background: #0284c7;
    color: #fff;
    border-color: #0284c7;
}
.visota-gallery__viewport {
    flex: 1;
    min-width: 0;
    text-align: center;
}
.visota-gallery__frame {
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    background: #1e293b;
    transition: max-width 0.3s ease, max-height 0.3s ease;
    line-height: 0;
}
.visota-gallery__frame--desktop {
    max-width: 100%;
}
.visota-gallery__frame--mobile {
    max-width: 290px;
    border: 8px solid #1e293b;
    border-radius: 32px;
}
.visota-gallery__img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.2s;
}
.visota-gallery__img--loading { opacity: 0.3; }
.visota-gallery__caption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}
.visota-gallery__thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.visota-gallery__thumbs::-webkit-scrollbar { height: 6px; }
.visota-gallery__thumbs::-webkit-scrollbar-track { background: #f3f4f6; border-radius: 3px; }
.visota-gallery__thumbs::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.visota-gallery__thumb {
    flex-shrink: 0;
    width: 100px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.6;
    background: #f3f4f6;
}
.visota-gallery__thumb:hover { opacity: 0.85; }
.visota-gallery__thumb--active {
    border-color: #0284c7;
    opacity: 1;
}
.visota-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.visota-gallery__counter {
    text-align: center;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

/* Video */
.visota-video {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.visota-video__frame {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    background: #1e293b;
    margin-top: 1rem;
}
.visota-video__player {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70vh;
}

/* Features */
.visota-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.visota-feature {
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.visota-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.visota-feature__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.visota-feature__icon--blue { background: #eff6ff; color: #2563eb; }
.visota-feature__icon--green { background: #ecfdf5; color: #059669; }
.visota-feature__icon--amber { background: #fffbeb; color: #d97706; }
.visota-feature__icon--red { background: #fef2f2; color: #dc2626; }
.visota-feature__icon--purple { background: #f5f3ff; color: #7c3aed; }
.visota-feature__icon--indigo { background: #eef2ff; color: #4f46e5; }
.visota-feature__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}
.visota-feature__desc {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Finance */
.visota-finance__intro {
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}
.visota-finance__bar {
    display: flex;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}
.visota-finance__segment {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    transition: flex 0.3s;
    overflow: hidden;
    white-space: nowrap;
}
.visota-finance__segment--expense { background: #ef4444; }
.visota-finance__segment--tax { background: #f59e0b; }
.visota-finance__segment--manager { background: #3b82f6; }
.visota-finance__segment--profit { background: #10b981; }
.visota-finance__segment-label { padding: 0 0.5rem; }
.visota-finance__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}
.visota-finance__legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #4b5563;
}
.visota-finance__legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}
.visota-finance__legend-color--expense { background: #ef4444; }
.visota-finance__legend-color--tax { background: #f59e0b; }
.visota-finance__legend-color--manager { background: #3b82f6; }
.visota-finance__legend-color--profit { background: #10b981; }
.visota-finance__details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}
.visota-finance__detail-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.visota-finance__detail-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}
.visota-finance__detail-desc {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.visota-finance__detail-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.625rem;
    font-size: 0.825rem;
}
.visota-finance__detail-row > span:first-child { width: 80px; flex-shrink: 0; color: #4b5563; }
.visota-finance__detail-bar {
    flex: 1;
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.visota-finance__detail-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s;
}
.visota-finance__detail-bar-fill--ok { background: #10b981; }
.visota-finance__detail-bar-fill--over { background: #ef4444; }
.visota-finance__detail-status {
    width: 50px;
    text-align: right;
    font-weight: 600;
    flex-shrink: 0;
}
.visota-finance__detail-status--ok { color: #10b981; }
.visota-finance__detail-status--over { color: #ef4444; }
.visota-finance__detail-table {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.visota-finance__detail-table-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.825rem;
    border-bottom: 1px solid #f3f4f6;
}
.visota-finance__detail-table-row:last-child { border-bottom: none; }
.visota-finance__detail-table-row--header {
    background: #f9fafb;
    font-weight: 600;
    color: #6b7280;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.visota-finance__detail-table-row--total {
    background: #f3f4f6;
    font-weight: 600;
    color: #1f2937;
}

/* Tech */
.visota-tech {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.visota-tech__item {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid #0284c7;
}
.visota-tech__badge {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0284c7;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.visota-tech__name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}
.visota-tech__desc {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Results */
.visota-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.visota-results__metric {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-top: 4px solid #0284c7;
}
.visota-results__metric-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0284c7;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.visota-results__metric-label {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
}
.visota-results__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}
.visota-results__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #fff;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.visota-results__check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: #ecfdf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
}
.visota-results__item p {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.5;
    margin: 0;
}

/* CTA */
.visota-cta {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #fff;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
}
.visota-cta__title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.visota-cta__desc {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}
.visota-cta .btn {
    background: #fff;
    color: #0284c7;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.visota-cta .btn:hover {
    background: #f8fafc;
    color: #0369a1;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Mobile gallery optimizations */
@media (max-width: 768px) {
    .visota-gallery__controls {
        flex-direction: column;
        align-items: stretch;
    }
    .visota-gallery__switcher {
        justify-content: center;
    }
    .visota-gallery__nav {
        width: 36px;
        height: 36px;
    }
    .visota-gallery__thumb {
        width: 72px;
        height: 48px;
    }
    .visota-finance__segment-label {
        font-size: 0.65rem;
    }
    .visota-finance__bar {
        height: 36px;
    }
    .visota-qa__answer {
        grid-template-columns: 1fr !important;
    }
    .visota-hero__metric-value {
        font-size: 1.75rem;
    }
}

/* Q&A narrative */
.visota-qa__intro {
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}
.visota-qa {
    max-width: 820px;
    margin: 0 auto;
}
.visota-qa__item {
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.visota-qa__question {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}
.visota-qa__q-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
}
.visota-qa__q-icon--check {
    background: #ecfdf5;
    color: #059669;
}
.visota-qa__q-text {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    margin: 0;
    padding-top: 0.25rem;
}
.visota-qa__answer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    padding-left: 2.75rem;
}
.visota-qa__answer > p {
    padding-left: 2.75rem;
    color: #374151;
    line-height: 1.65;
    font-size: 0.925rem;
    margin: 0;
}
.visota-qa__before, .visota-qa__after {
    padding: 1rem 1.25rem;
    border-radius: 8px;
}
.visota-qa__before {
    background: #fef2f2;
    border-left: 3px solid #ef4444;
}
.visota-qa__after {
    background: #ecfdf5;
    border-left: 3px solid #10b981;
}
.visota-qa__label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ef4444;
    margin-bottom: 0.5rem;
}
.visota-qa__label--after {
    color: #10b981;
}
.visota-qa__before p, .visota-qa__after p {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}
