/* ========================================
   БАЗОВЫЕ СБРОСЫ И ОБЩИЕ СТИЛИ
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f6f8fa;
    display: flex;
    justify-content: center;
    padding: 40px;
}

/* ========================================
   КОНТЕЙНЕР СТРАНИЦЫ
   ======================================== */
.page-container {
    max-width: 1200px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* ========================================
   ШАПКА (HEADER)
   ======================================== */
.page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 50px;
    background-color: #2c2c2c;
    border-bottom: 1px solid #4a4a4a;
}

.c4-badge {
    background-color: #0078d4;
    color: white;
    font-weight: bold;
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.page-title {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* ========================================
   ОСНОВНОЙ КОНТЕНТ
   ======================================== */
.content-wrapper {
    padding: 40px 50px;
}

.feature-grid {
    display: flex;
    flex-direction: column;
    gap: 45px;
}

/* ========================================
   КАРТОЧКА ПРОДУКТА (feature-item)
   ======================================== */
.feature-item {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

/* --- Иконка --- */
.icon-wrapper {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: #0078d4;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    text-decoration: none;
}

.icon-wrapper svg {
    width: 32px;
    height: 32px;
    fill: none;
}

.icon-wrapper:hover {
    opacity: 0.8;
}

/* --- Текстовый блок --- */
.content {
    padding-top: 4px;
    flex: 1;
    min-width: 0;
}

.content-title {
    display: inline-block;
    font-size: 20px;
    font-weight: 600;
    color: #111;
    margin-bottom: 12px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.content-title:hover {
    opacity: 0.8;
}

.content p {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 12px;
    text-align: justify;
}

.content p:last-of-type {
    margin-bottom: 0;
}

/* --- Жирный текст-акцент (краткое описание) --- */
.project-info {
    font-weight: 500;
}

/* ========================================
   СВОРАЧИВАЕМЫЙ ТЕКСТ
   ======================================== */
.project-text {
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    max-height: 100px; /* Показываем только краткое описание */
    opacity: 1;
}

.project-text.expanded {
    max-height: 700px; /* Полностью раскрытый текст */
    opacity: 1;
}

/* ========================================
   КНОПКА "ПОДРОБНЕЕ" / "КРАТКО"
   ======================================== */
.toggle-btn {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #0078d4;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    border-bottom: 1px dashed transparent;
    transition: border-color 0.2s, color 0.2s;
    letter-spacing: 0.3px;
}

.toggle-btn:hover {
    color: #005a9e;
    border-bottom-color: #005a9e;
}

.toggle-btn:focus-visible {
    outline: 2px solid #0078d4;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ========================================
   АДАПТИВНОСТЬ (МОБИЛЬНЫЕ УСТРОЙСТВА)
   ======================================== */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .page-header {
        padding: 15px 20px;
    }

    .content-wrapper {
        padding: 20px;
    }

    .feature-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .icon-wrapper {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

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

    .project-text {
        max-height: 78px;
    }
}

@media (max-width: 400px) {
    .project-text {
        max-height: 84px;
    }
}