:root {
    --primary-blue: #0056b3;
    --dark-blue: #003366;
    --accent-red: #e30613;
    --light-gray: #f8f9fa;
    --text-main: #333;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
    background-color: #fff;
}

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

/* Header */
/* Обновленная шапка с белым фоном */
.header {
    background: #ffffff; /* Белый фон */
    padding: 20px 0 0 0; /* Убираем нижний отступ, так как там будут линии */
    position: relative;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-blue); /* Текст теперь темный */
    margin-bottom: 20px; /* Отступ до линий */
}

.header-logo {
    height: 45px;
    width: auto;
}

.logo-divider {
    width: 1px;
    height: 30px;
    background-color: #ddd; /* Светлый разделитель для белого фона */
    margin: 0 20px;
}

.logo-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-blue);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Двойная декоративная линия */
.header-lines {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.line-blue {
    height: 3px;
    background-color: var(--primary-blue); /* Синяя линия */
    width: 100%;
}

.line-red {
    height: 3px;
    background-color: var(--accent-red); /* Красная линия */
    width: 100%;
}

/* Корректировка основного контента */
.main-content {
    margin-top: 30px;
}


/* Profile Section */
.profile-header {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start;
}

.profile-photo img {
    width: 280px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.badge {
    background: var(--primary-blue);
    color: white;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
}

h1 {
    font-size: 42px;
    margin: 15px 0;
    color: var(--dark-blue);
    line-height: 1.1;
}

.position {
    font-size: 18px;
    color: #666;
    max-width: 500px;
}

/* Navigation */
.anchor-nav {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid #eee;
    margin: 40px 0;
    padding-bottom: 10px;
}

.anchor-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
}

.anchor-nav a:hover {
    color: var(--primary-blue);
}

/* Content Cards */
.card {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--primary-blue);
}

.timeline {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.timeline li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.timeline li::before {
    content: "•";
    color: var(--accent-red);
    position: absolute;
    left: 0;
}

.footer {
    margin-top: 60px;
    padding: 40px 0;
    background: #f1f1f1;
    text-align: center;
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    .profile-photo img {
        width: 100%;
        max-width: 300px;
    }
    h1 { font-size: 32px; }
}

/* На мобильных устройствах уменьшаем логотип */
@media (max-width: 480px) {
    .header-logo {
        height: 30px;
    }
    .logo-text {
        font-size: 12px;
    }
}

/* Layout for Socials + QR */
.connect-container {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-top: 25px;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns for buttons */
    gap: 12px;
    flex: 1;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 16px; /* Balanced padding */
    background: #f4f7f9;
    border-radius: 8px;
    border: 1px solid #e1e8ef;
    height: 44px; /* Fixed height for consistency */
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.social-item img {
    /* This ensures the logo is never taller/wider than the button's inner line height */
    width: 35px; 
    height: 35px;
    object-fit: contain;
    flex-shrink: 0; /* Prevents the icon from squishing */
}

/* Mobile: Ensure buttons stay uniform */
@media (max-width: 480px) {
    .social-item {
        height: 48px; /* Slightly larger for easier tapping on mobile */
        font-size: 13px;
        flex: 1 1 calc(50% - 12px); /* Two buttons per row */
        justify-content: center;
    }
}


.social-item:hover {
    background: #fff;
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
/* QR Code on a NEW line */
.qr-row {
    margin-top: 20px;
    width: 100%;
    display: grid;
    justify-content: flex-start; /* Left-aligned on desktop */
}
/* QR Code Styling */
.qr-card {
    display: flex;
    align-items: center;
    background: white;
    padding: 12px;
    border: 1px solid #e1e8ef;
    border-radius: 12px;
    gap: 15px;
    min-width: 240px;
}

.qr-image img {
    width: 200px;
    display: block;
}

.qr-text {
    font-size: 12px;
    line-height: 1.4;
    color: #666;
}

.qr-text strong {
    display: block;
    color: var(--dark-blue);
    font-size: 14px;
    margin-bottom: 4px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .connect-container {
        flex-direction: column;
        align-items: stretch;
    }
    .qr-card {
        justify-content: center;
    }
}

.action-block {
    margin-top: 30px;
}

.btn-appeal {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--dark-blue);
    color: white;
    text-decoration: none;
    padding: 18px 35px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-appeal:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 51, 102, 0.3);
}

.btn-appeal svg {
    opacity: 0.9;
}

/* Mobile full-width button */
@media (max-width: 480px) {
    .btn-appeal {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 15px 20px;
        font-size: 14px;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column; /* Stacks photo on top of text */
        align-items: center;    /* Centers items horizontally */
        text-align: center;     /* Centers all text inside profile-info */
        gap: 25px;
    }

    .profile-photo {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .profile-photo img {
        width: 100%;
        max-width: 320px; /* Limits size so it doesn't get too huge */
        margin: 0 auto;
    }

    .profile-info {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centers badge, name, and position */
    }

    .social-links {
        justify-content: center; /* Centers the social buttons */
    }

    .connect-container {
        align-items: center; /* Centers the QR code block */
    }
 .qr-row {
        justify-content: center;
    }

    .qr-card {
        margin: 0 auto; /* Extra insurance for centering the card */
    }
}

