/* Стили для страницы "О нас" */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    color: white;
}

/* Добавлена иконка Telegram в header */
.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-top: 50px;
    /* Добавлено место для иконки */
}

/* Стили для иконки Telegram (из официального UI Kit) */
.telegram-icon {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: #0088cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 3px solid white;
}

/* SVG иконка Telegram */
.telegram-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.container {
    max-width: 900px;
    margin: 30px auto;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.debug-panel {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    font-family: monospace;
    overflow-x: auto;
    max-height: 300px;
}

.panel-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.refresh-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Добавлена иконка в кнопку обновления */
.refresh-btn svg {
    width: 16px;
    height: 16px;
    fill: white;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.status-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-item:last-child {
    border-bottom: none;
}

.success {
    color: #4ade80;
}

.warning {
    color: #fbbf24;
}

.error {
    color: #f87171;
}

.instructions {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
}

.steps {
    padding-left: 25px;
    margin-bottom: 20px;
}

.step {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.step:before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 24px;
    color: #818cf8;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: bold;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.btn-icon {
    margin-right: 8px;
}

/* Добавлена иконка в блок с Telegram ID */
.tgid-display {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 15px 15px 50px;
    /* Увеличен левый отступ */
    border-radius: 10px;
    margin-top: 20px;
    position: relative;
}

/* Иконка перед Telegram ID */
.tgid-display::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0zm5.894 8.221l-1.97 9.28c-.145.658-.537.818-1.084.508l-3-2.21-1.447 1.394c-.14.141-.259.259-.374.261l.213-3.053 5.56-5.022c.24-.213-.054-.334-.373-.121l-6.869 4.326-2.96-.924c-.64-.203-.658-.64.136-.954l11.566-4.458c.538-.196 1.006.128.832.941z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.b24-form-container {
    min-height: 500px;
    margin: 20px 0;
}

.id-display-container {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.id-display {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    flex: 1;
    min-width: 150px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.id-display strong {
    display: block;
    margin-bottom: 5px;
    color: #495057;
    font-size: 14px;
}

.id-value {
    font-size: 18px;
    font-weight: bold;
    word-break: break-all;
}

.id-value.success {
    color: #28a745;
}

.id-value.error {
    color: #dc3545;
}

.id-value.waiting {
    color: #6c757d;
}

@media (max-width: 768px) {
    .id-display-container {
        flex-direction: column;
    }

    /* Адаптив для иконки в шапке */
    .telegram-icon {
        width: 50px;
        height: 50px;
    }

    .telegram-icon svg {
        width: 26px;
        height: 26px;
    }
}

.about-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(8px);
}

.about-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-top: 60px;
}

.about-icon {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0088cc 0%, #2AABEE 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: 3px solid white;
}

.about-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.about-content {
    line-height: 1.7;
    font-size: 17px;
    text-align: justify;
}

.about-subtitle {
    font-size: 22px;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    padding-left: 30px;
}

.about-subtitle::before {
    content: "▌";
    position: absolute;
    left: 0;
    top: -2px;
    color: #818cf8;
    font-size: 24px;
}

.services-list {
    counter-reset: service-counter;
    padding-left: 0;
    margin-bottom: 30px;
}

.service-item {
    counter-increment: service-counter;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    position: relative;
    padding-left: 70px;
    transition: transform 0.3s, background 0.3s;
}

.service-item:hover {
    background: rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
}

.service-item::before {
    content: counter(service-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.service-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 18px;
    color: #e0f7fa;
}

.service-description {
    font-size: 15px;
    opacity: 0.9;
}

.guarantee-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 25px;
    margin-top: 40px;
    border-left: 4px solid #4ade80;
    position: relative;
}

.guarantee-icon {
    position: absolute;
    top: -15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #4ade80;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guarantee-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.back-btn-container {
    text-align: center;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .about-icon {
        width: 60px;
        height: 60px;
    }

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

    .service-item {
        padding: 15px 15px 15px 60px;
    }

    .service-item::before {
        left: 15px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}