/* ═══════════════════════════════════════════════════
   CITADEL AI — в палитре главной страницы
   Light: #ffffff / #eef2f4  |  Accent: #7C52F2 / #12A8D4
═══════════════════════════════════════════════════ */

/* ─────────────── LAYOUT RESETS ─────────────── */
.citadel__first,
.citadel__advantages,
.citadel__agents,
.citadel__docs,
.citadel__dark_section,
.citadel__problems,
.citadel__steps,
.citadel__platform,
.citadel__knowledge,
.citadel__impl,
.citadel__trust,
.citadel__tags {
    width: 100%;
}

/* ═══════════════════════════════════════════════════
   HERO — СВЕТЛЫЙ, КАК ГЛАВНАЯ
═══════════════════════════════════════════════════ */
.citadel__first {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 760px;
    padding: 80px 7% 80px 19.5%;
    background:
        radial-gradient(circle at 82% 18%, rgba(18, 168, 212, 0.13), transparent 36%),
        radial-gradient(circle at 18% 72%, rgba(124, 82, 242, 0.07), transparent 30%),
        linear-gradient(135deg, #f7fbff 0%, #eef5fb 52%, #ffffff 100%);
    color: #111827;
}

.citadel__first::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url(/i/lines_background.svg) center top repeat;
    opacity: 0.28;
    pointer-events: none;
}

/* Ambient orbs */
.citadel__hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}
.citadel__hero__orb--1 {
    width: 480px;
    height: 480px;
    top: -100px;
    right: 5%;
    background: rgba(18, 168, 212, 0.13);
    animation: citadelOrbFloat 12s ease-in-out infinite alternate;
}
.citadel__hero__orb--2 {
    width: 380px;
    height: 380px;
    bottom: -90px;
    left: 8%;
    background: rgba(124, 82, 242, 0.09);
    animation: citadelOrbFloat 15s ease-in-out infinite alternate-reverse;
}
.citadel__hero__orb--3 {
    width: 240px;
    height: 240px;
    top: 38%;
    left: 42%;
    background: rgba(124, 82, 242, 0.06);
    animation: citadelOrbFloat 10s ease-in-out infinite alternate;
    animation-delay: -5s;
}
@keyframes citadelOrbFloat {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(36px, -36px) scale(1.1); }
}

.citadel__first__left,
.citadel__first__right {
    position: relative;
    z-index: 1;
}
.citadel__first__left {
    width: 46%;
    max-width: 660px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.citadel__first__right { width: 54%; }

/* Badge */
.citadel__first__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 18px;
    background: rgba(124, 82, 242, 0.09);
    border: 1px solid rgba(124, 82, 242, 0.28);
    color: #7C52F2;
    font-family: "Cera Pro Medium";
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 22px;
}
.citadel__first__badge i { color: #7C52F2; font-size: 13px; }

/* Title */
.citadel__first__left__title {
    margin: 0;
    font-family: "Cera Pro Bold";
    font-size: 82px;
    font-weight: 700;
    line-height: 88px;
    color: #111827;
}
.citadel__first__left__title span {
    background: linear-gradient(135deg, #7C52F2 0%, #12A8D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.citadel__first__left__subtitle {
    margin: 18px 0 0;
    font-family: "Cera Pro Medium";
    font-size: 30px;
    line-height: 38px;
    color: #7C52F2;
}
.citadel__first__left__description {
    margin: 22px 0 0;
    max-width: 540px;
    color: #4f5b6b;
    font-family: "Cera Pro Medium";
    font-size: 20px;
    line-height: 32px;
}

/* Buttons */
.citadel__first__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 38px;
}
.citadel__first__left__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 260px;
    height: 60px;
    border-radius: 30px;
    background: linear-gradient(90deg, #7C52F2 0%, #12A8D4 100%);
    color: #fff;
    font-family: "Cera Pro Medium";
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 14px 36px rgba(124, 82, 242, 0.34);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.citadel__first__left__button:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 22px 48px rgba(124, 82, 242, 0.46);
}
.citadel__first__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 60px;
    padding: 0 26px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid #d6e4f0;
    color: #243244;
    font-family: "Cera Pro Medium";
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(40, 74, 108, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.citadel__first__link i { color: #7C52F2; }
.citadel__first__link:hover {
    color: #243244;
    text-decoration: none;
    border-color: rgba(124, 82, 242, 0.42);
    box-shadow: 0 14px 34px rgba(124, 82, 242, 0.14);
    transform: translateY(-2px);
}

/* Metrics */
.citadel__first__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    max-width: 520px;
    margin-top: 46px;
}
.citadel__first__metrics div {
    padding: 20px 22px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(194, 212, 228, 0.75);
    box-shadow: 0 12px 32px rgba(40, 74, 108, 0.08);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.citadel__first__metrics div:hover {
    transform: translateY(-3px);
    border-color: rgba(124, 82, 242, 0.32);
    box-shadow: 0 18px 40px rgba(124, 82, 242, 0.1);
}
.citadel__first__metrics strong {
    display: block;
    font-family: "Cera Pro Bold";
    font-size: 28px;
    line-height: 32px;
    background: linear-gradient(135deg, #7C52F2 0%, #12A8D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.citadel__first__metrics span {
    display: block;
    margin-top: 6px;
    color: #5f6f80;
    font-family: "Cera Pro Regular";
    font-size: 13px;
    line-height: 19px;
}

/* Hero product window */
.citadel__hero__visual {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.citadel__product {
    position: relative;
    width: 100%;
    max-width: 720px;
    min-height: 440px;
    padding: 24px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 80% 16%, rgba(124, 82, 242, 0.22), transparent 36%),
        radial-gradient(circle at 14% 82%, rgba(18, 168, 212, 0.14), transparent 30%),
        linear-gradient(135deg, #07091a 0%, #0d1526 60%, #121f38 100%);
    box-shadow:
        0 0 0 1px rgba(124, 82, 242, 0.18),
        0 36px 80px rgba(5, 8, 26, 0.22),
        0 0 50px -10px rgba(124, 82, 242, 0.2);
    color: #fff;
    box-sizing: border-box;
}
.citadel__product::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}
.citadel__product__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: "Cera Pro Bold";
    font-size: 15px;
}
.citadel__product__top div { display: flex; gap: 7px; }
.citadel__product__top div span {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
}
.citadel__product__top i { color: #7C52F2; }

.citadel__product__search {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 54px;
    margin-top: 22px;
    padding: 0 18px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(124, 82, 242, 0.2);
    color: rgba(255,255,255,0.76);
    font-family: "Cera Pro Regular";
    font-size: 14px;
}
.citadel__product__search i { color: #12A8D4; }

.citadel__product__body {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 18px;
    margin-top: 18px;
}
.citadel__product__sidebar,
.citadel__product__main,
.citadel__product__stats div,
.citadel__product__answer {
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    box-sizing: border-box;
}
.citadel__product__sidebar { padding: 18px; }
.citadel__product__sidebar b {
    display: block;
    margin-bottom: 14px;
    font-family: "Cera Pro Bold";
    font-size: 14px;
}
.citadel__product__sidebar span {
    display: block;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    color: rgba(255,255,255,0.68);
    font-family: "Cera Pro Regular";
    font-size: 13px;
}
.citadel__product__sidebar span.active {
    background: rgba(124, 82, 242, 0.24);
    color: #fff;
}
.citadel__product__main { padding: 18px; }
.citadel__product__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.citadel__product__stats div { padding: 16px; }
.citadel__product__stats strong,
.citadel__product__stats span { display: block; }
.citadel__product__stats strong {
    font-family: "Cera Pro Bold";
    font-size: 28px;
    line-height: 32px;
    background: linear-gradient(135deg, #7C52F2 0%, #12A8D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.citadel__product__stats span {
    margin-top: 4px;
    color: rgba(255,255,255,0.58);
    font-family: "Cera Pro Regular";
    font-size: 13px;
}
.citadel__product__answer { margin-top: 12px; padding: 18px; }
.citadel__product__answer b {
    display: block;
    font-family: "Cera Pro Bold";
    font-size: 15px;
}
.citadel__product__answer p {
    margin: 10px 0 0;
    color: rgba(255,255,255,0.68);
    font-family: "Cera Pro Regular";
    font-size: 14px;
    line-height: 22px;
}
.citadel__product__sources { display: grid; gap: 8px; margin-top: 14px; }
.citadel__product__sources span {
    display: block;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(124,82,242,0.38), rgba(18,168,212,0.28));
}
.citadel__product__sources span:nth-child(2) { width: 82%; }
.citadel__product__sources span:nth-child(3) { width: 62%; }

/* Floating panels — белые, как на главной */
.citadel__hero__panel {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 220px;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(194, 212, 228, 0.9);
    box-shadow: 0 16px 44px rgba(29, 55, 84, 0.12);
}
.citadel__hero__panel > i { font-size: 22px; color: #7C52F2; flex-shrink: 0; }
.citadel__hero__panel span {
    display: block;
    color: #7C52F2;
    font-family: "Cera Pro Bold";
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.citadel__hero__panel b {
    display: block;
    color: #223044;
    font-family: "Cera Pro Medium";
    font-size: 15px;
    line-height: 20px;
}
.citadel__hero__panel--top {
    top: 70px; right: 5%;
    animation: citadelPanelFloat 6s ease-in-out infinite alternate;
}
.citadel__hero__panel--bottom {
    left: 5%; bottom: 80px;
    animation: citadelPanelFloat 8s ease-in-out infinite alternate-reverse;
}
@keyframes citadelPanelFloat {
    from { transform: translateY(0); }
    to   { transform: translateY(-12px); }
}

.citadel__hero__shield {
    position: absolute;
    bottom: -28px;
    right: 44%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C52F2, #12A8D4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 8px rgba(124,82,242,0.1), 0 0 0 16px rgba(124,82,242,0.05);
    animation: citadelShieldPulse 3s ease-in-out infinite;
}
.citadel__hero__shield i { color: #fff; font-size: 24px; }
@keyframes citadelShieldPulse {
    0%,100% { box-shadow: 0 0 0 8px rgba(124,82,242,0.1),  0 0 0 16px rgba(124,82,242,0.05); }
    50%      { box-shadow: 0 0 0 12px rgba(124,82,242,0.16), 0 0 0 24px rgba(124,82,242,0.07); }
}

/* ═══════════════════════════════════════════════════
   TAGS TICKER
═══════════════════════════════════════════════════ */
.citadel__tags {
    overflow: hidden;
    background: linear-gradient(135deg, #07091a 0%, #0e1628 100%);
    border-top: 1px solid rgba(124, 82, 242, 0.22);
    border-bottom: 1px solid rgba(18, 168, 212, 0.18);
    height: 54px;
    display: flex;
    align-items: center;
}
.citadel__tags__track {
    display: flex;
    align-items: center;
    animation: citadelTagsScroll 32s linear infinite;
    white-space: nowrap;
    will-change: transform;
}
.citadel__tags__track span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 30px;
    color: rgba(255,255,255,0.65);
    font-family: "Cera Pro Medium";
    font-size: 14px;
    letter-spacing: 0.03em;
    border-right: 1px solid rgba(255,255,255,0.08);
    height: 54px;
    white-space: nowrap;
    transition: color 0.2s;
    flex-shrink: 0;
}
.citadel__tags__track span:hover { color: #12A8D4; }
.citadel__tags__track span i { color: #7C52F2; font-size: 13px; flex-shrink: 0; }
@keyframes citadelTagsScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════
   TRUST BAR — белый фон
═══════════════════════════════════════════════════ */
.citadel__trust {
    padding: 60px 0;
    background: #ffffff;
    border-bottom: 1px solid #e8edf4;
}
.citadel__trust__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}
.citadel__trust__item {
    text-align: center;
    padding: 0 32px;
    border-right: 1px solid #e4ecf4;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.citadel__trust__item:last-child { border-right: none; }
.citadel__trust__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #eef2f4;
    border: 1.5px solid rgba(124, 82, 242, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7C52F2;
    font-size: 18px;
    margin-bottom: 16px;
}
.citadel__trust__item strong {
    display: block;
    font-family: "Cera Pro Bold";
    font-size: 26px;
    line-height: 30px;
    background: linear-gradient(135deg, #7C52F2 0%, #12A8D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}
.citadel__trust__item span {
    font-family: "Cera Pro Regular";
    font-size: 14px;
    line-height: 20px;
    color: #5f6f80;
}

/* ═══════════════════════════════════════════════════
   SECTION TITLES
═══════════════════════════════════════════════════ */
.citadel__section__title {
    font-family: "Cera Pro Bold";
    font-size: 42px;
    line-height: 52px;
    text-align: center;
    margin: 0;
    color: #111827;
    width: 100%;
}
.citadel__section__subtitle {
    font-family: "Cera Pro Medium";
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    margin: 14px auto 0;
    color: #5c6878;
    max-width: 760px;
    width: 100%;
}
/* Переопределяем — все секции теперь светлые */
.citadel__dark_section .citadel__section__title { color: #111827; }
.citadel__dark_section .citadel__section__subtitle { color: #5c6878; }

/* ═══════════════════════════════════════════════════
   DARK SECTION — теперь #eef2f4
═══════════════════════════════════════════════════ */
.citadel__dark_section {
    position: relative;
    overflow: hidden;
    background: #eef2f4;
    background-image: url(/i/index_box_bg.png);
    background-repeat: repeat;
    background-position: center top;
    color: #111827;
    padding: 92px 0 104px;
}
.citadel__dark_section .container,
.citadel__agents .container,
.citadel__docs .container {
    position: relative;
}

/* ═══════════════════════════════════════════════════
   PROBLEMS — на фоне #eef2f4
═══════════════════════════════════════════════════ */
.citadel__problems { padding: 92px 0 104px; }

.citadel__problems__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 56px;
}
.citadel__problem__item {
    position: relative;
    padding: 34px 28px 30px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #dce8f2;
    box-shadow: 0 0 20px 5px #efefef;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.citadel__problem__item:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 82, 242, 0.38);
    box-shadow: 0 16px 44px rgba(124, 82, 242, 0.14);
}
.citadel__problem__num {
    position: absolute;
    top: 18px;
    right: 20px;
    font-family: "Cera Pro Bold";
    font-size: 52px;
    line-height: 1;
    color: rgba(124, 82, 242, 0.07);
    pointer-events: none;
}
.citadel__problem__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: #eef2f4;
    border: 1.5px solid rgba(124, 82, 242, 0.25);
    color: #7C52F2;
    font-size: 22px;
    transition: background 0.25s, box-shadow 0.25s;
}
.citadel__problem__item:hover .citadel__problem__icon {
    background: rgba(124, 82, 242, 0.1);
    box-shadow: 0 0 18px rgba(124, 82, 242, 0.2);
}
.citadel__problem__item h3 {
    font-family: "Cera Pro Bold";
    font-size: 20px;
    line-height: 26px;
    margin: 0 0 12px;
    color: #111827;
}
.citadel__problem__item p {
    font-family: "Cera Pro Regular";
    font-size: 16px;
    line-height: 26px;
    color: #5f6f80;
    margin: 0;
}

/* ═══════════════════════════════════════════════════
   ADVANTAGES — белый фон
═══════════════════════════════════════════════════ */
.citadel__advantages { background: #ffffff; }

.citadel__advantages__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin-top: 56px;
    width: 100%;
}
.citadel__advantage__item {
    min-height: 320px;
    padding: 30px 24px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #dce8f2;
    box-shadow: 0 0 20px 5px #efefef;
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.citadel__advantage__item:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 82, 242, 0.38);
    box-shadow: 0 20px 44px rgba(124, 82, 242, 0.14);
}
.citadel__advantage__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    background: #eef2f4;
    border: 1.5px solid rgba(124, 82, 242, 0.2);
    color: #7C52F2;
    font-size: 24px;
    transition: background 0.25s, box-shadow 0.25s;
}
.citadel__advantage__item:hover .citadel__advantage__icon {
    background: rgba(124, 82, 242, 0.1);
    box-shadow: 0 0 20px rgba(124, 82, 242, 0.2);
}
.citadel__advantage__item h3 {
    font-family: "Cera Pro Bold";
    font-size: 20px;
    line-height: 26px;
    margin: 0 0 12px;
    color: #111827;
}
.citadel__advantage__item p {
    font-family: "Cera Pro Regular";
    font-size: 16px;
    line-height: 26px;
    color: #5f6f80;
    margin: 0;
}

/* ═══════════════════════════════════════════════════
   HOW IT WORKS — STEPS (index_box_bg + #eef2f4)
═══════════════════════════════════════════════════ */
.citadel__steps {
    padding: 92px 0 104px;
    background: url(/i/index_box_bg.png) center top repeat;
    background-color: #eef2f4;
}
.citadel__steps__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 56px;
    position: relative;
}
.citadel__steps__grid::before {
    content: "";
    position: absolute;
    top: 44px;
    left: calc(12.5% + 22px);
    right: calc(12.5% + 22px);
    height: 2px;
    background: linear-gradient(90deg, #7C52F2 0%, #12A8D4 100%);
    opacity: 0.3;
    z-index: 0;
}
.citadel__step {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 0 20px 5px #efefef;
    padding: 32px 22px 28px;
    text-align: center;
    position: relative;
    z-index: 1;
    border: 1px solid #dce8f2;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.citadel__step:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 82, 242, 0.32);
    box-shadow: 0 20px 44px rgba(124, 82, 242, 0.12);
}
.citadel__step__number {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C52F2 0%, #12A8D4 100%);
    color: #fff;
    font-family: "Cera Pro Bold";
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 6px 16px rgba(124, 82, 242, 0.38);
}
.citadel__step__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #eef2f4;
    color: #7C52F2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 22px;
    border: 1.5px dashed rgba(124, 82, 242, 0.35);
    transition: background 0.25s, box-shadow 0.25s;
}
.citadel__step:hover .citadel__step__icon {
    background: rgba(124, 82, 242, 0.08);
    box-shadow: 0 0 18px rgba(124, 82, 242, 0.18);
}
.citadel__step h3 {
    font-family: "Cera Pro Bold";
    font-size: 20px;
    line-height: 26px;
    margin: 0 0 12px;
    color: #111827;
}
.citadel__step p {
    font-family: "Cera Pro Regular";
    font-size: 15px;
    line-height: 23px;
    color: #5f6f80;
    margin: 0;
}

/* ═══════════════════════════════════════════════════
   PLATFORM — белый фон
═══════════════════════════════════════════════════ */
.citadel__platform {
    padding: 92px 0 104px;
    background: #ffffff;
}
.citadel__platform__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 56px;
}
.citadel__platform__item {
    padding: 28px 24px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #dce8f2;
    box-shadow: 0 0 20px 5px #efefef;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.citadel__platform__item:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 82, 242, 0.32);
    box-shadow: 0 16px 40px rgba(124, 82, 242, 0.12);
}
.citadel__platform__icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: #eef2f4;
    border: 1.5px solid rgba(124, 82, 242, 0.2);
    color: #7C52F2;
    font-size: 20px;
    transition: background 0.25s, box-shadow 0.25s;
}
.citadel__platform__item:hover .citadel__platform__icon {
    background: rgba(124, 82, 242, 0.1);
    box-shadow: 0 0 16px rgba(124, 82, 242, 0.18);
}
.citadel__platform__item h3 {
    font-family: "Cera Pro Bold";
    font-size: 19px;
    line-height: 24px;
    margin: 0 0 10px;
    color: #111827;
}
.citadel__platform__item p {
    font-family: "Cera Pro Regular";
    font-size: 15px;
    line-height: 24px;
    color: #5f6f80;
    margin: 0;
}

/* Goals strip — акцентный тёмный баннер внутри белой секции */
.citadel__platform__goals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 44px;
    padding: 46px 52px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 80% 20%, rgba(124, 82, 242, 0.24), transparent 36%),
        radial-gradient(circle at 20% 80%, rgba(18, 168, 212, 0.18), transparent 30%),
        linear-gradient(135deg, #07091a 0%, #0d1526 100%);
    box-shadow: 0 0 0 1px rgba(124, 82, 242, 0.18), 0 20px 50px rgba(5, 8, 26, 0.16);
}
.citadel__platform__goals div {
    text-align: center;
    padding: 0 28px;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.citadel__platform__goals div:last-child { border-right: none; }
.citadel__platform__goals strong {
    display: block;
    font-family: "Cera Pro Bold";
    font-size: 36px;
    line-height: 42px;
    background: linear-gradient(135deg, #7C52F2 0%, #12A8D4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.citadel__platform__goals span {
    display: block;
    margin-top: 8px;
    color: rgba(255,255,255,0.65);
    font-family: "Cera Pro Regular";
    font-size: 15px;
    line-height: 22px;
}

/* ═══════════════════════════════════════════════════
   KNOWLEDGE — #eef2f4
═══════════════════════════════════════════════════ */
.citadel__knowledge {
    padding: 92px 0 104px;
    background: url(/i/index_box_bg.png) center top repeat;
    background-color: #eef2f4;
}
.citadel__knowledge__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 52px;
}
.citadel__knowledge__list { list-style: none; padding: 0; margin: 0; display: block; }
.citadel__knowledge__list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    color: #4f5b6b;
    font-family: "Cera Pro Regular";
    font-size: 17px;
    line-height: 26px;
}
.citadel__knowledge__list li i { color: #7C52F2; font-size: 17px; margin-top: 5px; flex-shrink: 0; }

.citadel__knowledge__departments {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}
.citadel__dept {
    padding: 18px 20px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #dce8f2;
    box-shadow: 0 0 12px rgba(0,0,0,0.04);
    color: #243244;
    font-family: "Cera Pro Medium";
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.citadel__dept:hover {
    border-color: rgba(124, 82, 242, 0.35);
    box-shadow: 0 8px 20px rgba(124, 82, 242, 0.12);
    transform: translateY(-2px);
}
.citadel__dept i { color: #7C52F2; font-size: 16px; flex-shrink: 0; }

.citadel__knowledge__prompt {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 58px;
    padding: 0 20px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #dce8f2;
    box-shadow: 0 0 12px rgba(0,0,0,0.04);
    color: #8a9aaa;
    font-family: "Cera Pro Regular";
    font-size: 15px;
    cursor: text;
}
.citadel__knowledge__prompt span { flex: 1; }
.citadel__knowledge__prompt i:first-child { color: #7C52F2; font-size: 18px; flex-shrink: 0; }
.citadel__knowledge__prompt i:last-child { font-size: 16px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════
   AI AGENTS — index_box_bg на белом
═══════════════════════════════════════════════════ */
.citadel__agents {
    padding: 92px 0 104px;
    background: url(/i/index_box_bg.png) center top repeat;
    background-color: #ffffff;
    color: #111827;
}
.citadel__agents .citadel__section__title { color: #111827; }
.citadel__agents .citadel__section__subtitle { color: #5c6878; }

.citadel__agents__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 56px;
    width: 100%;
}
.citadel__agent__card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce8f2;
    box-shadow: 0 0 20px 5px #efefef;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.citadel__agent__card:hover {
    transform: translateY(-8px);
    border-color: rgba(124, 82, 242, 0.38);
    box-shadow: 0 20px 44px rgba(124, 82, 242, 0.16);
}
.citadel__agent__card__top {
    position: relative;
    padding: 36px 24px 28px;
    background: #eef2f4;
    border-bottom: 1px solid #dce8f2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.citadel__agent__card__icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid rgba(124, 82, 242, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #7C52F2;
    box-shadow: 0 8px 22px rgba(124, 82, 242, 0.1);
    transition: box-shadow 0.3s, transform 0.3s, background 0.3s;
}
.citadel__agent__card:hover .citadel__agent__card__icon {
    background: rgba(124, 82, 242, 0.07);
    box-shadow: 0 0 28px rgba(124, 82, 242, 0.22);
    transform: scale(1.06);
}
.citadel__agent__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 12px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(124, 82, 242, 0.22);
    color: #7C52F2;
    font-family: "Cera Pro Medium";
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.citadel__agent__card__body {
    padding: 26px 28px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.citadel__agent__card__body h3 {
    font-family: "Cera Pro Bold";
    font-size: 21px;
    line-height: 27px;
    color: #111827;
    margin: 0 0 16px;
}
.citadel__agent__card__body ul { list-style: none; padding: 0; margin: 0; flex: 1; display: block; }
.citadel__agent__card__body ul li {
    position: relative;
    padding: 0 0 0 22px;
    margin-bottom: 11px;
    color: #5f6f80;
    font-family: "Cera Pro Regular";
    font-size: 15px;
    line-height: 23px;
    float: none;
}
.citadel__agent__card__body ul li:last-child { margin-bottom: 0; }
.citadel__agent__card__body ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C52F2 0%, #12A8D4 100%);
}

/* ═══════════════════════════════════════════════════
   IMPLEMENTATION — #eef2f4
═══════════════════════════════════════════════════ */
.citadel__impl {
    padding: 92px 0 104px;
    background: url(/i/index_box_bg.png) center top repeat;
    background-color: #eef2f4;
}
.citadel__impl__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 52px;
}
.citadel__impl__item {
    display: flex;
    gap: 26px;
    align-items: flex-start;
    padding: 38px 32px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #dce8f2;
    box-shadow: 0 0 20px 5px #efefef;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.citadel__impl__item:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 82, 242, 0.32);
    box-shadow: 0 16px 44px rgba(124, 82, 242, 0.12);
}
.citadel__impl__number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C52F2 0%, #12A8D4 100%);
    color: #fff;
    font-family: "Cera Pro Bold";
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(124, 82, 242, 0.3);
}
.citadel__impl__content h3 {
    font-family: "Cera Pro Bold";
    font-size: 22px;
    line-height: 28px;
    margin: 0 0 12px;
    color: #111827;
}
.citadel__impl__content p {
    font-family: "Cera Pro Regular";
    font-size: 16px;
    line-height: 26px;
    color: #5f6f80;
    margin: 0;
}

/* ═══════════════════════════════════════════════════
   CTA — акцентный блок в стиле сайта
═══════════════════════════════════════════════════ */
/* adk__fourth используется из adk.css + consult.css (глобально) */
/* index-manual — flex item, нужен width:100% чтобы заполнить adk__fourth */
.adk__fourth .index-manual { width: 100%; }
.citadel__cta__note a:hover { color: rgba(255,255,255,0.75); }

/* ═══════════════════════════════════════════════════
   DOC (future)
═══════════════════════════════════════════════════ */
.citadel__docs { padding: 86px 0 94px; background: #fff; }
.citadel__docs__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 42px;
}
.citadel__doc {
    min-height: 150px;
    display: grid;
    grid-template-columns: 68px 1fr 44px;
    align-items: center;
    gap: 22px;
    padding: 30px;
    border-radius: 20px;
    background: #f7fbff;
    border: 1px solid #dce8f2;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.citadel__doc:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(34,64,95,0.12);
    border-color: rgba(124,82,242,0.38);
    text-decoration: none;
}
.citadel__doc__icon {
    width: 68px; height: 68px;
    border-radius: 14px;
    background: #fff;
    color: #e03535;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: inset 0 0 0 1px #e6edf4;
}
.citadel__doc__content strong,
.citadel__doc__content small { display: block; }
.citadel__doc__content strong { color: #111827; font-family: "Cera Pro Bold"; font-size: 22px; line-height: 28px; }
.citadel__doc__content small { margin-top: 6px; color: #5f6f80; font-family: "Cera Pro Regular"; font-size: 16px; line-height: 22px; }
.citadel__doc__arrow {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7C52F2 0%, #12A8D4 100%);
    color: #fff;
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — 1280px
═══════════════════════════════════════════════════ */
@media only screen and (max-width: 1280px) {
    .citadel__first { padding-left: 7%; }
    .citadel__advantages__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — 1150px
═══════════════════════════════════════════════════ */
@media only screen and (max-width: 1150px) {
    .citadel__first__left__title { font-size: 64px; line-height: 72px; }
    .citadel__first__left__subtitle { font-size: 22px; line-height: 30px; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — 1023px
═══════════════════════════════════════════════════ */
@media only screen and (max-width: 1023px) {
    .citadel__first {
        display: block;
        min-height: auto;
        padding: 56px 20px 60px;
        text-align: center;
    }
    .citadel__first__left,
    .citadel__first__right { width: 100%; max-width: none; align-items: center; text-align: center; }
    .citadel__first__left { align-items: center; }
    .citadel__first__left__title { font-size: 52px; line-height: 58px; }
    .citadel__first__left__subtitle { font-size: 24px; line-height: 32px; }
    .citadel__first__left__description { font-size: 18px; line-height: 28px; margin-top: 18px; }
    .citadel__first__actions { width: 100%; justify-content: center; margin-top: 30px; }
    .citadel__first__left__button,
    .citadel__first__link { width: 100%; max-width: 320px; }
    .citadel__first__metrics { max-width: 520px; margin: 30px auto 0; }
    .citadel__hero__visual { min-height: 0; margin-top: 36px; }
    .citadel__product { max-width: 560px; min-height: 0; padding: 18px; }
    .citadel__product__search { height: auto; min-height: 48px; font-size: 12px; }
    .citadel__product__body { grid-template-columns: 1fr; }
    .citadel__product__sidebar { display: none; }
    .citadel__product__answer p { font-size: 12px; line-height: 19px; }
    .citadel__hero__panel { display: none; }
    .citadel__hero__shield { display: none; }

    .citadel__dark_section,
    .citadel__agents,
    .citadel__docs,
    .citadel__problems,
    .citadel__steps,
    .citadel__platform,
    .citadel__knowledge,
    .citadel__impl { padding: 58px 0 66px; }

    .citadel__section__title { font-size: 30px; line-height: 38px; }
    .citadel__section__subtitle { font-size: 17px; line-height: 26px; padding: 0 16px; }

    .citadel__trust { padding: 44px 0; }
    .citadel__trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
    .citadel__trust__item { border-right: none; border-bottom: 1px solid #e4ecf4; padding-bottom: 28px; }
    .citadel__trust__item:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }

    .citadel__advantages__grid { grid-template-columns: 1fr; gap: 16px; margin-top: 34px; }
    .citadel__advantage__item { min-height: auto; padding: 26px 22px; }
    .citadel__problems__grid { grid-template-columns: 1fr; gap: 16px; margin-top: 34px; }
    .citadel__steps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
    .citadel__steps__grid::before { display: none; }
    .citadel__platform__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
    .citadel__platform__goals {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        gap: 28px;
        margin-top: 28px;
    }
    .citadel__platform__goals div {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 0 0 24px;
    }
    .citadel__platform__goals div:last-child { border-bottom: none; padding-bottom: 0; }
    .citadel__platform__goals strong { font-size: 30px; line-height: 36px; }
    .citadel__knowledge__inner { grid-template-columns: 1fr; gap: 36px; margin-top: 36px; }
    .citadel__knowledge__list li { font-size: 16px; }
    .citadel__agents__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
    .citadel__impl__grid { grid-template-columns: 1fr; gap: 18px; margin-top: 34px; }
    .citadel__cta { padding: 66px 0 76px; }
    .citadel__cta__title { font-size: 38px; line-height: 46px; }
    .citadel__cta__subtitle { font-size: 17px; line-height: 26px; margin-bottom: 34px; }
    .citadel__docs__grid { grid-template-columns: 1fr; margin: 34px 20px 0; }
    .citadel__doc { grid-template-columns: 58px 1fr; gap: 16px; padding: 22px; }
    .citadel__doc__icon { width: 58px; height: 58px; font-size: 24px; }
    .citadel__doc__arrow { display: none; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — 767px  (container = 400px)
═══════════════════════════════════════════════════ */
@media only screen and (max-width: 767px) {
    /* Hero buttons — stack */
    .citadel__first__actions { gap: 12px; flex-direction: column; align-items: stretch; }
    .citadel__first__left__button,
    .citadel__first__link { max-width: none; width: 100%; justify-content: center; }
    .citadel__first__metrics { grid-template-columns: 1fr; gap: 12px; }

    /* Trust bar — 1 col */
    .citadel__trust__grid { grid-template-columns: 1fr; gap: 20px; }
    .citadel__trust__item { border-right: none; border-bottom: 1px solid #e4ecf4; padding-bottom: 20px; }
    .citadel__trust__item:nth-last-child(-n+2) { border-bottom: 1px solid #e4ecf4; padding-bottom: 20px; }
    .citadel__trust__item:last-child { border-bottom: none; padding-bottom: 0; }

    /* Grids — 2 cols at 400px = 190px each, too tight → 1 col */
    .citadel__steps__grid { grid-template-columns: 1fr; }
    .citadel__platform__grid { grid-template-columns: 1fr; }
    .citadel__platform__goals { width: 100%; }
    .citadel__knowledge__departments { grid-template-columns: 1fr; }
    .citadel__impl__item { flex-direction: column; gap: 18px; }
    .citadel__agents__grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — 560px
═══════════════════════════════════════════════════ */
@media only screen and (max-width: 560px) {
    .citadel__first { padding-top: 42px; }
    .citadel__first__left__title { font-size: 42px; line-height: 48px; }
    .citadel__first__left__subtitle { font-size: 20px; line-height: 28px; }
    .citadel__agent__card__icon { width: 76px; height: 76px; font-size: 28px; }
    .citadel__cta__title { font-size: 32px; line-height: 40px; }
    .citadel__cta__actions { flex-direction: column; align-items: stretch; }
    .citadel__cta__btn,
    .citadel__cta__wa { width: 100%; max-width: 360px; margin: 0 auto; justify-content: center; }
    .citadel__doc__content strong { font-size: 18px; line-height: 24px; }
}
@media only screen and (max-width: 374px) {
    .citadel__first__left__title { font-size: 32px; line-height: 40px; }
    .citadel__first__left__subtitle { font-size: 17px; line-height: 26px; }
    .citadel__cta__title { font-size: 26px; line-height: 34px; }
}
