:root {
    --bg-page: #edeef0;
    --bg-card: #ffffff;
    --text-main: #000000;
    --text-gray: #818c99;
    --text-link: #2a5885;
    --accent-blue: #0077ff;
    --icon-gray: #99a2ad;
    --like-red: #ff3347;
    --border-color: #dce1e6;
    
    --card-width: 560px;
    --radius-card: 12px;
    --radius-btn: 8px;
    
    --font-main: -apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-page);
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.4;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding-top: 24px;
    padding-bottom: 40px;
}

.feed-wrapper {
    width: 100%;
    max-width: var(--card-width);
    margin: 0 16px;
}

.vk-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
}

.card-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
}

.header-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0077ff, #00c6ff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
}

.header-avatar::after {
    content: '✓';
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #fff;
    color: #0077ff;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.header-info {
    flex-grow: 1;
}

.header-name {
    color: var(--text-link);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
}

.header-name:hover {
    text-decoration: underline;
}

.header-meta {
    color: var(--text-gray);
    font-size: 13px;
    margin-top: 2px;
}

.header-menu {
    color: var(--icon-gray);
    cursor: pointer;
    padding: 4px;
}

.card-content {
    padding: 4px 20px 12px;
    font-size: 15px;
}

.text-block {
    margin-bottom: 12px;
}

.company-data-list {
    margin-top: 16px;
    background: #f7f8fa;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid #e1e3e6;
}

.data-row {
    display: flex;
    margin-bottom: 8px;
    align-items: baseline;
}

.data-row:last-child {
    margin-bottom: 0;
}

.data-label {
    color: var(--text-gray);
    width: 110px;
    flex-shrink: 0;
    font-size: 13px;
}

.data-value {
    color: var(--text-main);
    font-weight: 500;
}

.link-blue {
    color: var(--text-link);
    text-decoration: none;
    cursor: pointer;
}
.link-blue:hover { text-decoration: underline; }

.media-slider {
    position: relative;
    width: 100%;
    padding-top: 4px;
}

.slides-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.slides-wrapper::-webkit-scrollbar { display: none; }

.slide-item {
    min-width: 100%;
    height: 360px;
    scroll-snap-align: center;
    position: relative;
    background: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-controls {
    position: absolute;
    bottom: 16px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
    pointer-events: none;
}
.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: 0.3s;
    pointer-events: auto;
    cursor: pointer;
}
.dot.active {
    background: #fff;
    transform: scale(1.3);
}

.card-footer {
    padding: 12px 20px;
    border-top: 1px solid #e7e8ec;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.vk-btn {
    background: #f0f2f5;
    color: var(--text-gray);
    height: 32px;
    padding: 0 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    user-select: none;
}

.vk-btn svg {
    width: 20px;
    height: 20px;
    margin-right: 6px;
    fill: currentColor;
}

.vk-btn:hover { background: #e5ebf1; color: var(--text-gray); }
.vk-btn.active { background: #ffeef0; color: var(--like-red); }
.vk-btn.active svg { fill: var(--like-red); }

.views-count {
    display: flex;
    align-items: center;
    color: var(--text-gray);
    font-size: 13px;
}
.views-count svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    margin-right: 4px;
}

@media (max-width: 600px) {
    body {
        padding: 0;
        background: #fff;
        align-items: flex-start;
    }
    .feed-wrapper {
        margin: 0;
        max-width: 100%;
    }
    .vk-card {
        border-radius: 0;
        border: none;
        border-bottom: 8px solid var(--bg-page);
        box-shadow: none;
    }
    .slide-item {
        height: 300px;
    }
    .card-header, .card-content, .card-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}