.ai-legacy-home {
    display: none !important;
}

.ai-redesign-hero {
    position: relative;
    min-height: calc(100vh - 72px);
    background: #090b10;
    color: #fff;
    overflow: hidden;
}

.ai-slider {
    position: relative;
    min-height: calc(100vh - 72px);
}

.ai-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: start;
    background-image: var(--ai-bg);
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    transform: scale(1.015);
    transition: opacity 0.7s ease, transform 1.2s ease;
}

.ai-slide.is-active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
    transform: scale(1);
}

.ai-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 7, 12, 0.94) 0%, rgba(7, 10, 17, 0.78) 34%, rgba(8, 11, 17, 0.32) 68%, rgba(5, 7, 12, 0.62) 100%),
        linear-gradient(180deg, rgba(5, 7, 12, 0.1) 0%, rgba(5, 7, 12, 0.72) 100%);
    z-index: 1;
}

.ai-slide-shade {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(5, 7, 12, 0.82), transparent);
    z-index: 2;
}

.ai-slide-inner {
    position: relative;
    z-index: 3;
    width: min(680px, calc(100% - 40px));
    margin-left: clamp(20px, 7vw, 104px);
    padding: clamp(74px, 9vh, 96px) 0 228px;
}

.ai-kicker {
    margin: 0 0 18px;
    color: #f04444;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ai-slide h1,
.ai-slide h2 {
    margin: 0;
    max-width: 670px;
    color: #fff;
    font-family: Inter, system-ui, sans-serif;
    font-size: clamp(2.25rem, 3.9vw, 4.45rem);
    line-height: 1.01;
    font-weight: 850;
    letter-spacing: 0;
}

.ai-lead {
    max-width: 610px;
    margin: 20px 0 0;
    color: rgba(245, 247, 251, 0.82);
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    line-height: 1.7;
}

.ai-route-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.ai-route-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    font-weight: 750;
    text-decoration: none;
    backdrop-filter: blur(12px);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ai-route-links a:hover {
    background: #f04444;
    border-color: #f04444;
    transform: translateY(-2px);
}

.ai-hero-panel {
    position: absolute;
    z-index: 6;
    left: clamp(20px, 7vw, 104px);
    right: clamp(20px, 7vw, 104px);
    bottom: 26px;
    display: grid;
    grid-template-columns: minmax(150px, 0.5fr) minmax(320px, 1fr) minmax(390px, 0.85fr);
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(8, 11, 17, 0.76);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(22px);
}

.ai-panel-top {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.ai-panel-mark {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 850;
}

.ai-panel-note,
.ai-disclaimer {
    color: rgba(229, 235, 245, 0.66);
    font-size: 0.8rem;
    line-height: 1.45;
}

.ai-search {
    max-width: none;
    width: 100%;
    margin: 0;
    z-index: 20;
}

.ai-search input {
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
}

.ai-search .hero-search-dropdown {
    top: auto;
    bottom: calc(100% + 8px);
    margin-top: 0;
    border-radius: 8px;
    max-height: 330px;
    text-align: left;
}

.ai-slider-controls {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 10px;
}

.ai-arrow,
.ai-tabs button {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    font-family: Inter, system-ui, sans-serif;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ai-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.55rem;
    line-height: 1;
}

.ai-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.ai-tabs button {
    min-height: 42px;
    padding: 8px 6px;
    font-size: 0.75rem;
    font-weight: 780;
    white-space: nowrap;
}

.ai-arrow:hover,
.ai-tabs button:hover,
.ai-tabs button.is-active {
    background: #f04444;
    border-color: #f04444;
}

.ai-disclaimer {
    grid-column: 1 / -1;
    margin: -4px 0 0;
}

.site-main {
    background:
        radial-gradient(circle at 84% 10%, rgba(47, 111, 159, 0.22), transparent 28%),
        linear-gradient(180deg, #090b10 0%, #101620 42%, #0d121a 100%);
}

.home-section {
    position: relative;
}

.home-section:first-child {
    padding-top: 64px;
}

.home-section-title {
    color: #f8fafc !important;
    letter-spacing: 0;
}

.home-section-title span {
    color: #f04444 !important;
}

.home-section-subtitle {
    color: rgba(226, 232, 240, 0.7) !important;
}

.featured-card {
    position: relative;
    border-radius: 8px !important;
    background:
        linear-gradient(90deg, rgba(7, 10, 16, 0.92), rgba(7, 10, 16, 0.68)),
        url("/static/img/redesign/section-diagnostics.jpg") center/cover !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.featured-visual {
    background:
        radial-gradient(circle at 50% 50%, rgba(240, 68, 68, 0.32), transparent 52%),
        rgba(255, 255, 255, 0.05) !important;
}

.intro-block,
.trust-block {
    position: relative;
    max-width: none !important;
    padding: 34px clamp(18px, 4vw, 48px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    overflow: hidden;
    text-align: left !important;
}

.intro-block::before,
.trust-block::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 10, 16, 0.94), rgba(7, 10, 16, 0.74)),
        url("/static/img/redesign/section-workshop.jpg") center/cover;
    z-index: -1;
}

.intro-block p,
.trust-block p {
    max-width: 820px;
    margin: 0;
    color: rgba(245, 247, 251, 0.86) !important;
}

.category-card,
.article-home-card,
.team-card,
.cta-banner,
.trust-item {
    border-radius: 8px !important;
}

.category-card,
.article-home-card,
.recent-card,
.team-card {
    background: linear-gradient(180deg, rgba(20, 27, 38, 0.96), rgba(12, 17, 25, 0.98)) !important;
    border-color: rgba(255, 255, 255, 0.09) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.category-icon,
.article-home-tag,
.recent-badge,
.recent-cat,
.featured-badge {
    color: #f04444 !important;
}

.category-name,
.article-home-title,
.recent-title {
    color: #f8fafc !important;
}

.category-count,
.article-home-desc,
.team-card p,
.team-card .role {
    color: rgba(226, 232, 240, 0.68) !important;
}

.team-card h3 {
    color: #f8fafc !important;
}

.recent-card:hover,
.category-card:hover,
.article-home-card:hover,
.team-card:hover {
    background: linear-gradient(180deg, rgba(28, 37, 51, 0.98), rgba(14, 20, 30, 0.98)) !important;
}

.category-card:hover,
.article-home-card:hover {
    border-color: rgba(240, 68, 68, 0.28) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
}

.category-card::before {
    background: linear-gradient(90deg, #f04444, #2f6f9f) !important;
}

.recent-scroll {
    scrollbar-color: #f04444 #d9e1ea;
}

.team-card {
    overflow: hidden;
}

.team-card::before {
    content: "";
    display: block;
    height: 4px;
    margin: -1px -1px 18px;
    background: linear-gradient(90deg, #f04444, #2f6f9f);
}

.cta-banner {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(7, 10, 16, 0.94), rgba(7, 10, 16, 0.64)),
        url("/static/img/redesign/section-diagnostics.jpg") center/cover !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cta-banner h2,
.cta-banner p {
    position: relative;
    z-index: 1;
}

@media (max-width: 1180px) {
    .ai-redesign-hero,
    .ai-slider {
        min-height: 820px;
    }

    .ai-slide-inner {
        padding: 72px 0 330px;
    }

    .ai-hero-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .ai-redesign-hero,
    .ai-slider {
        min-height: 790px;
    }

    .ai-slide::before {
        background:
            linear-gradient(90deg, rgba(5, 7, 12, 0.95), rgba(7, 10, 17, 0.64)),
            linear-gradient(180deg, rgba(5, 7, 12, 0.2), rgba(5, 7, 12, 0.86));
    }

    .ai-slide-inner {
        width: calc(100% - 32px);
        margin-left: 16px;
        padding: 48px 0 360px;
    }

    .ai-slide h1,
    .ai-slide h2 {
        font-size: 2.2rem;
        line-height: 1.04;
    }

    .ai-lead {
        font-size: 0.98rem;
        line-height: 1.58;
    }

    .ai-route-links {
        gap: 8px;
    }

    .ai-route-links a {
        min-height: 36px;
        padding: 8px 12px;
        font-size: 0.88rem;
    }

    .ai-hero-panel {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 12px;
        gap: 12px;
    }

    .ai-slider-controls {
        grid-template-columns: 38px 1fr 38px;
        gap: 8px;
    }

    .ai-arrow {
        width: 38px;
        height: 38px;
    }

    .ai-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ai-tabs button {
        min-height: 38px;
        font-size: 0.76rem;
    }

    .ai-search input {
        height: 50px;
        font-size: 0.92rem;
        padding-right: 12px;
    }

    .intro-block,
    .trust-block {
        padding: 24px 18px !important;
    }
}

@media (max-width: 420px) {
    .ai-redesign-hero,
    .ai-slider {
        min-height: 790px;
    }

    .ai-slide-inner {
        padding-bottom: 382px;
    }
}
