/* ============================================
   БАЗОВЫЕ СТИЛИ
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    background-color: #f5f5f5;
    color: #1a1a1a;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
    padding: 2rem 1rem;
}

.site-footer {
    flex-shrink: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ============================================
   ЗАГОЛОВКИ
   ============================================ */

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    border-left: 6px solid #f27d29;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.title--level-2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #f27d29;
    margin: 2.5rem 0 1.2rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f27d29;
    display: inline-block;
    border-left: none;
    padding-left: 0;
}

.title--level-3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 1.8rem 0 0.8rem 0;
    padding-left: 0.8rem;
    border-left: 4px solid #f27d29;
    border-bottom: none;
    display: block;
}

.title--level-4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f27d29;
    margin: 1.2rem 0 0.6rem 0;
    border-left: none;
    padding-left: 0;
    display: block;
}

/* ============================================
   ТЕКСТ
   ============================================ */

.text {
    margin-bottom: 1rem;
    color: #2a2a2a;
}

.list {
    margin: 0.8rem 0 1.2rem 2rem;
    color: #2a2a2a;
}

.list__item {
    margin-bottom: 0.4rem;
}

.text--strong {
    color: #f27d29;
    font-weight: 600;
}

.link {
    color: #f27d29;
    text-decoration: none;
    transition: opacity 0.3s;
}

.link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ============================================
   КАРТОЧКИ
   ============================================ */

.card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 1.5rem 0;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    border-color: #f27d29;
    box-shadow: 0 4px 16px rgba(242, 125, 41, 0.12);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.card-grid--4 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card-grid .card {
    margin: 0;
}

/* ============================================
   БЕЙДЖИ
   ============================================ */

.badge {
    display: inline-block;
    background-color: #f27d29;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.badge--outline {
    background-color: transparent;
    color: #f27d29;
    font-weight: 600;
    border: 1px solid #f27d29;
}

/* ============================================
   ТАБЛИЦЫ
   ============================================ */

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.table__head {
    background-color: #f27d29;
    color: #ffffff;
    font-weight: 700;
    padding: 0.8rem 1rem;
    text-align: left;
}

.table__cell {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #e8e8e8;
    color: #2a2a2a;
}

.table__row:last-child .table__cell {
    border-bottom: none;
}

.table__row:hover .table__cell {
    background-color: #fafafa;
}

/* ============================================
   ПРОГРЕСС-БАРЫ
   ============================================ */

.progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.progress__bar {
    flex: 1;
    height: 10px;
    background-color: #e8e8e8;
    border-radius: 5px;
    overflow: hidden;
}

.progress__fill {
    height: 100%;
    background-color: #f27d29;
    border-radius: 5px;
}

.progress__label {
    min-width: 50px;
    font-weight: 700;
    color: #f27d29;
}

/* ============================================
   РАЗДЕЛИТЕЛЬ
   ============================================ */

.divider {
    height: 1px;
    background: linear-gradient(to right, #f27d29, transparent);
    margin: 2.5rem 0;
}

/* ============================================
   АКЦЕНТНЫЙ БЛОК
   ============================================ */

.accent-block {
    background: linear-gradient(135deg, #fff8f3 0%, #ffefe3 100%);
    border-left: 6px solid #f27d29;
    padding: 1.5rem 2rem;
    border-radius: 0 12px 12px 0;
    margin: 1.5rem 0;
}

.accent-block__text {
    color: #2a2a2a;
}

.accent-block__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f27d29;
    margin: 1.2rem 0 0.6rem 0;
}

/* ============================================
   СЕТКА ЭТАПОВ
   ============================================ */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.steps__item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.steps__item:hover {
    border-color: #f27d29;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(242, 125, 41, 0.15);
}

.steps__number {
    font-size: 2rem;
    font-weight: 800;
    color: #f27d29;
    display: block;
    margin-bottom: 0.5rem;
}

.steps__title {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.steps__text {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* ============================================
   СПИСКИ С ИКОНКАМИ
   ============================================ */

.icon-list {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.icon-list__item {
    padding-left: 1.8rem;
    position: relative;
    margin-bottom: 0.4rem;
}

.icon-list__item::before {
    content: "▸";
    color: #f27d29;
    font-weight: 700;
    position: absolute;
    left: 0;
}

/* ============================================
   ВЫДЕЛЕНИЕ
   ============================================ */

.highlight {
    background-color: rgba(242, 125, 41, 0.15);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    color: #d96a1a;
    font-weight: 600;
}

/* ============================================
   КНОПКИ
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn--primary {
    background-color: #f27d29;
    color: #ffffff;
}

.btn--primary:hover {
    background-color: #e06a17;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(242, 125, 41, 0.35);
    text-decoration: none;
    color: #ffffff;
}

.btn--outline {
    background-color: transparent;
    color: #f27d29;
    border-color: #f27d29;
}

.btn--outline:hover {
    background-color: #f27d29;
    color: #ffffff;
    text-decoration: none;
}

/* ============================================
   ГЛАВНАЯ — HERO
   ============================================ */

.sdo-hero {
    padding: 3rem 0;
}

.sdo-hero__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
}

.sdo-hero__content {
    max-width: 640px;
}

.sdo-hero__title {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.15;
    margin: 1rem 0 1.5rem;
    border: none;
    padding: 0;
}

.sdo-hero__accent {
    color: #f27d29;
}

.sdo-hero__text {
    font-size: 1.05rem;
    color: #4a4a4a;
    margin-bottom: 2rem;
}

.sdo-hero__actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.sdo-hero__stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.sdo-stat__number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #f27d29;
}

.sdo-stat__label {
    font-size: 0.9rem;
    color: #666;
}

.sdo-hero__card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.sdo-hero__card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: #f27d29;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.sdo-hero__card-icon {
    font-size: 1.3rem;
}

.sdo-hero__card-title {
    font-size: 1.15rem;
    color: #1a1a1a;
    margin: 0 0 1rem;
    border: none;
    padding: 0;
}

.sdo-hero__card-meta {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.8rem;
}

/* ============================================
   ГЛАВНАЯ — СЕКЦИИ
   ============================================ */

.sdo-section {
    padding: 2rem 0;
}

.sdo-section--alt {
    background-color: #ffffff;
    padding: 3rem 1rem;
    margin: 2rem 0;
    border-radius: 16px;
}

/* ============================================
   НАПРАВЛЕНИЯ
   ============================================ */

.sdo-direction {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    padding: 1.8rem;
}

.sdo-direction:hover {
    text-decoration: none;
}

.sdo-direction__icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.sdo-direction__list {
    margin: 1rem 0;
    flex: 1;
}

.sdo-direction__link {
    color: #f27d29;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
}

.sdo-direction:hover .sdo-direction__link {
    text-decoration: underline;
}

/* ============================================
   БЫСТРЫЕ ДЕЙСТВИЯ
   ============================================ */

.sdo-quick {
    text-align: left;
    text-decoration: none;
    color: inherit;
}

.sdo-quick:hover {
    text-decoration: none;
}

.sdo-quick__icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.6rem;
}

/* ============================================
   БРЕНДЫ
   ============================================ */

.sdo-brand {
    display: flex;
    flex-direction: column;
}

/* ============================================
   ПОДВАЛ (старый класс .footer для совместимости)
   ============================================ */

.footer {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* ============================================
   СКРОЛЛБАР
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: #f27d29;
    border-radius: 4px;
}

/* ============================================
   АДАПТИВНОСТЬ КОНТЕНТА
   ============================================ */

@media (max-width: 900px) {
    .sdo-hero__inner {
        grid-template-columns: 1fr;
    }

    .sdo-hero__title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 1.8rem;
        padding-left: 1rem;
    }

    .title--level-2 {
        font-size: 1.4rem;
    }

    .card {
        padding: 1rem 1.2rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr 1fr;
    }

    main {
        padding: 1rem 0.8rem;
    }

    .sdo-hero__title {
        font-size: 1.9rem;
    }

    .sdo-hero__stats {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .steps {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   ШАПКА САЙТА
   ============================================ */

.site-header {
    background-color: #ffffff;
    border-bottom: 2px solid #f27d29;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.9rem 0;
}

/* --- Логотип --- */

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo:hover {
    text-decoration: none;
    opacity: 1;
}

.site-logo__icon {
    font-size: 2rem;
    line-height: 1;
}

.site-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.site-logo__title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #f27d29;
    letter-spacing: 0.5px;
}

.site-logo__title--footer {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.site-logo__subtitle {
    font-size: 0.72rem;
    color: #888;
    letter-spacing: 0.3px;
}

/* --- Главное меню --- */

.site-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.site-nav__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.site-nav__item {
    margin: 0;
}

.site-nav__link {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1a1a1a;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav__link:hover {
    background-color: #fff4ec;
    color: #f27d29;
    text-decoration: none;
}

.site-nav__link--active {
    background-color: #f27d29;
    color: #ffffff;
}

.site-nav__link--active:hover {
    background-color: #e06a17;
    color: #ffffff;
}

/* --- Мобильная кнопка (burger) --- */

.site-nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.site-nav__toggle-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #f27d29;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- Профиль пользователя --- */

.site-user {
    position: relative;
    flex-shrink: 0;
}

.site-user__btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    padding: 0.35rem 0.8rem 0.35rem 0.35rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    color: #1a1a1a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-user__btn:hover {
    border-color: #f27d29;
    box-shadow: 0 2px 8px rgba(242, 125, 41, 0.15);
}

.site-user__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #f27d29;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
}

.site-user__name {
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
}

.site-user__arrow {
    color: #f27d29;
    font-size: 0.8rem;
}

.site-user__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    list-style: none;
    margin: 0;
    padding: 0.4rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 200;
}

.site-user:hover .site-user__dropdown,
.site-user__btn:focus + .site-user__dropdown,
.site-user__dropdown:focus-within {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-user__link {
    display: block;
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
    color: #1a1a1a;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-user__link:hover {
    background-color: #fff4ec;
    color: #f27d29;
    text-decoration: none;
}

/* ============================================
   ХЛЕБНЫЕ КРОШКИ
   ============================================ */

.breadcrumbs {
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    padding: 0.7rem 0;
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
}

.breadcrumbs__link {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs__link:hover {
    color: #f27d29;
    text-decoration: none;
}

.breadcrumbs__sep {
    color: #c0c0c0;
}

.breadcrumbs__item--current .breadcrumbs__link {
    color: #1a1a1a;
    font-weight: 600;
}

/* ============================================
   ПОДВАЛ САЙТА
   ============================================ */

.site-footer {
    background-color: #1a1a1a;
    color: #d0d0d0;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.site-footer__col {
    min-width: 0;
}

.site-footer__title {
    font-size: 1rem;
    font-weight: 700;
    color: #f27d29;
    margin: 0 0 1rem 0;
    padding: 0;
    border: none;
    display: block;
}

.site-footer__text {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.site-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__item {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #b0b0b0;
}

.site-footer__link {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__link:hover {
    color: #f27d29;
    text-decoration: none;
}

.site-footer__bottom {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    text-align: center;
}

.site-footer__copyright {
    margin: 0;
    font-size: 0.85rem;
    color: #888;
}

/* ============================================
   АДАПТИВНОСТЬ ШАПКИ И ПОДВАЛА
   ============================================ */

@media (max-width: 1024px) {
    .site-nav__link {
        padding: 0.45rem 0.7rem;
        font-size: 0.85rem;
    }

    .site-user__name {
        display: none;
    }
}

@media (max-width: 900px) {
    .site-header__inner {
        flex-wrap: wrap;
    }

    .site-nav__toggle {
        display: flex;
        order: 3;
    }

    .site-nav {
        order: 4;
        flex-basis: 100%;
        display: none;
        justify-content: flex-start;
        margin-top: 0.8rem;
    }

    .site-nav--open {
        display: flex;
    }

    .site-nav__list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .site-nav__link {
        display: block;
        padding: 0.8rem 1rem;
        border-radius: 6px;
    }

    .site-user {
        order: 2;
        margin-left: auto;
    }

    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .site-logo__subtitle {
        display: none;
    }

    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}