/* B2B-лендинг: Промышленная роботизация — Группа Энергосервис */

.rb-landing {
    --rb-dark: #012B57;
    --rb-dark-mid: #024185;
    --rb-accent: #1F5CD3;
    --rb-accent-light: #3d7ae8;
    --rb-bg: #EFF1F5;
    --rb-bg-light: #F5F8FD;
    --rb-text: #2F3338;
    --rb-text-muted: rgba(47, 51, 56, 0.65);
    --rb-gradient: linear-gradient(262.43deg, #012B57 0%, #024185 100%);
    --rb-shadow: 0 20px 40px rgba(31, 92, 211, 0.12);
    --rb-shadow-hover: 0 24px 48px rgba(31, 92, 211, 0.22);
    --rb-radius: 4px;
    --rb-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
}

.rb-landing * {
    box-sizing: border-box;
}

.rb-section {
    padding: 90px 0;
    position: relative;
}

.rb-section--alt {
    background: var(--rb-bg);
}

.rb-section--dark {
    background: var(--rb-gradient);
    color: #fff;
}

.rb-section__label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rb-accent);
    margin-bottom: 16px;
}

.rb-section--dark .rb-section__label {
    color: rgba(255, 255, 255, 0.6);
}

.rb-section__title {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.2;
    margin: 0 0 20px;
    color: #333;
}

.rb-section--dark .rb-section__title {
    color: #fff;
}

.rb-section__subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--rb-text-muted);
    max-width: 720px;
    margin: 0 0 50px;
}

.rb-section--dark .rb-section__subtitle {
    color: rgba(255, 255, 255, 0.75);
}

/* Scroll reveal */
.rb-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s var(--rb-transition), transform 0.7s var(--rb-transition);
}

.rb-reveal.rb-visible {
    opacity: 1;
    transform: translateY(0);
}

.rb-reveal-delay-1 { transition-delay: 0.1s; }
.rb-reveal-delay-2 { transition-delay: 0.2s; }
.rb-reveal-delay-3 { transition-delay: 0.3s; }
.rb-reveal-delay-4 { transition-delay: 0.4s; }

.rb-hero .rb-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HERO ===== */
.rb-hero {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    background: var(--rb-gradient);
    overflow: hidden;
    padding: 60px 0 80px;
}

.rb-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(31, 92, 211, 0.35) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.rb-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent 80%);
}

.rb-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.rb-hero__content {
    flex: 1;
    min-width: 300px;
    color: #fff;
}

.rb-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}

.rb-hero__badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: rb-pulse 2s infinite;
}

@keyframes rb-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.rb-hero__title {
    font-weight: 700;
    font-size: 48px;
    line-height: 1.15;
    margin: 0 0 24px;
    color: #fff;
}

.rb-hero__title span {
    color: #7eb3ff;
}

.rb-hero__text {
    font-size: 18px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 32px;
    max-width: 560px;
}

.rb-hero__checks {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}

.rb-hero__checks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.rb-hero__checks li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--rb-accent);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.rb-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.rb-hero__actions .but {
    min-width: 240px;
    justify-content: center;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.rb-hero__actions .but-mod {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}

.rb-hero__actions .but-mod:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.rb-hero__visual {
    flex: 1;
    min-width: 320px;
    position: relative;
}

.rb-hero__image-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
}

.rb-hero__image-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(1, 43, 87, 0.2) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.rb-hero__image-wrap img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 420px;
    object-fit: cover;
}

.rb-hero__stat-float {
    position: absolute;
    bottom: -20px;
    left: -30px;
    background: #fff;
    padding: 20px 28px;
    border-radius: var(--rb-radius);
    box-shadow: var(--rb-shadow);
    z-index: 3;
}

.rb-hero__stat-float strong {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--rb-accent);
    line-height: 1;
}

.rb-hero__stat-float span {
    font-size: 13px;
    color: var(--rb-text-muted);
}

/* ===== PROBLEMS ===== */
.rb-problems__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rb-problem-card {
    background: #fff;
    border: 1px solid rgba(47, 51, 56, 0.08);
    padding: 32px 28px;
    border-radius: var(--rb-radius);
    transition: var(--rb-transition);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.rb-problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--rb-accent);
    transition: height var(--rb-transition);
}

.rb-problem-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--rb-shadow-hover);
    border-color: rgba(31, 92, 211, 0.2);
}

.rb-problem-card:hover::before {
    height: 100%;
}

.rb-problem-card__icon {
    width: 52px;
    height: 52px;
    background: var(--rb-bg-light);
    border-radius: var(--rb-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--rb-transition);
}

.rb-problem-card:hover .rb-problem-card__icon {
    background: var(--rb-accent);
}

.rb-problem-card__icon img {
    width: 28px;
    height: 28px;
    transition: var(--rb-transition);
}

.rb-problem-card:hover .rb-problem-card__icon img {
    filter: brightness(0) invert(1);
}

.rb-problem-card h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: var(--rb-text);
}

/* ===== EFFECT AREAS ===== */
.rb-effect__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.rb-effect-card {
    position: relative;
    height: 280px;
    border-radius: var(--rb-radius);
    overflow: hidden;
    cursor: pointer;
}

.rb-effect-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.rb-effect-card:hover img {
    transform: scale(1.08);
}

.rb-effect-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(1, 43, 87, 0.95) 0%, rgba(1, 43, 87, 0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    transition: var(--rb-transition);
}

.rb-effect-card:hover .rb-effect-card__overlay {
    background: linear-gradient(to top, rgba(1, 43, 87, 0.98) 0%, rgba(31, 92, 211, 0.7) 100%);
}

.rb-effect-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px;
    transform: translateY(0);
    transition: var(--rb-transition);
}

.rb-effect-card__desc {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0);
    max-height: 0;
    overflow: hidden;
    margin: 0;
    transition: var(--rb-transition);
}

.rb-effect-card:hover .rb-effect-card__desc {
    color: rgba(255, 255, 255, 0.85);
    max-height: 120px;
    margin-top: 4px;
}

/* ===== SERVICES ===== */
.rb-services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rb-service-card {
    background: #fff;
    border: 1px solid rgba(47, 51, 56, 0.08);
    padding: 36px 30px;
    border-radius: var(--rb-radius);
    display: flex;
    flex-direction: column;
    transition: var(--rb-transition);
    position: relative;
}

.rb-service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--rb-gradient);
    transform: scaleX(0);
    transition: transform var(--rb-transition);
}

.rb-service-card:hover {
    box-shadow: var(--rb-shadow-hover);
    transform: translateY(-4px);
}

.rb-service-card:hover::after {
    transform: scaleX(1);
}

.rb-service-card__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
}

.rb-service-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 14px;
    color: var(--rb-text);
}

.rb-service-card p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--rb-text-muted);
    margin: 0 0 24px;
    flex-grow: 1;
}

.rb-service-card .but-mod {
    align-self: flex-start;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.06em;
}

/* ===== TIMELINE ===== */
.rb-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 0;
    padding: 40px 0 20px;
}

.rb-timeline::before {
    content: '';
    position: absolute;
    top: 56px;
    left: 8%;
    right: 8%;
    height: 3px;
    background: linear-gradient(90deg, var(--rb-accent) 0%, var(--rb-dark-mid) 100%);
    z-index: 0;
}

.rb-timeline__step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 10px;
}

.rb-timeline__num {
    width: 56px;
    height: 56px;
    background: var(--rb-gradient);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(31, 92, 211, 0.35);
    transition: var(--rb-transition);
}

.rb-timeline__step:hover .rb-timeline__num {
    transform: scale(1.12);
    box-shadow: 0 12px 32px rgba(31, 92, 211, 0.5);
}

.rb-timeline__step h3 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: var(--rb-text);
}

/* ===== CASES ===== */
.rb-cases__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.rb-case-card {
    background: #fff;
    border-radius: var(--rb-radius);
    overflow: hidden;
    box-shadow: var(--rb-shadow);
    transition: var(--rb-transition);
}

.rb-case-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--rb-shadow-hover);
}

.rb-case-card__image {
    height: 260px;
    overflow: hidden;
    position: relative;
}

.rb-case-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.rb-case-card:hover .rb-case-card__image img {
    transform: scale(1.05);
}

.rb-case-card__body {
    padding: 28px 32px 32px;
}

.rb-case-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--rb-text);
}

.rb-case-card__result {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px 20px;
    background: var(--rb-bg-light);
    border-left: 3px solid var(--rb-accent);
    border-radius: 0 var(--rb-radius) var(--rb-radius) 0;
}

.rb-case-card__result strong {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rb-accent);
    white-space: nowrap;
}

.rb-case-card__result p {
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
    color: var(--rb-text-muted);
}

/* ===== STATS ===== */
.rb-stats {
    padding: 100px 0;
}

.rb-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.rb-stat-item {
    padding: 20px;
}

.rb-stat-item__num {
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    margin-bottom: 12px;
}

.rb-stat-item__num span {
    color: #7eb3ff;
}

.rb-stat-item p {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ===== BENEFITS ===== */
.rb-benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rb-benefit-card {
    background: #fff;
    padding: 36px 30px;
    border-radius: var(--rb-radius);
    border: 1px solid rgba(47, 51, 56, 0.06);
    position: relative;
    overflow: hidden;
    transition: var(--rb-transition);
}

.rb-benefit-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(31, 92, 211, 0.06) 0%, transparent 70%);
    transition: var(--rb-transition);
}

.rb-benefit-card:hover {
    box-shadow: var(--rb-shadow-hover);
    transform: translateY(-4px);
    border-color: rgba(31, 92, 211, 0.15);
}

.rb-benefit-card:hover::before {
    top: -20%;
    right: -20%;
}

.rb-benefit-card__num {
    font-size: 48px;
    font-weight: 700;
    color: rgba(31, 92, 211, 0.12);
    line-height: 1;
    margin-bottom: 16px;
}

.rb-benefit-card h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: var(--rb-text);
    position: relative;
}

/* ===== LEAD FORM ===== */
.rb-form-section {
    background: var(--rb-bg);
}

.rb-form-wrap {
    display: flex;
    gap: 60px;
    align-items: stretch;
    flex-wrap: wrap;
}

.rb-form-info {
    flex: 1;
    min-width: 280px;
}

.rb-form-box {
    flex: 1.2;
    min-width: 320px;
    background: #fff;
    padding: 40px;
    border-radius: var(--rb-radius);
    box-shadow: var(--rb-shadow);
}

.rb-form-box .input {
    width: 100%;
    margin-bottom: 16px;
}

.rb-form-box .file-label {
    margin-bottom: 16px;
}

.rb-form-box .but {
    width: 100%;
    justify-content: center;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 8px;
}

.rb-form-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 32px;
}

.rb-form-trust span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--rb-text-muted);
}

.rb-form-trust span::before {
    content: '✓';
    color: var(--rb-accent);
    font-weight: 700;
}

/* ===== FINAL CTA ===== */
.rb-cta-final {
    padding: 80px 0;
    background: var(--rb-gradient);
    position: relative;
    overflow: hidden;
}

.rb-cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(31, 92, 211, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.rb-cta-final__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    color: #fff;
}

.rb-cta-final h2 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #fff;
}

.rb-cta-final p {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 36px;
}

.rb-cta-final .but {
    min-width: 280px;
    justify-content: center;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1199px) {
    .rb-effect__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rb-timeline {
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
    }

    .rb-timeline::before {
        display: none;
    }

    .rb-timeline__step {
        flex: 0 0 calc(33.333% - 20px);
    }
}

@media screen and (max-width: 991px) {
    .rb-hero__title {
        font-size: 36px;
    }

    .rb-problems__grid,
    .rb-services__grid,
    .rb-benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rb-stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .rb-cases__grid {
        grid-template-columns: 1fr;
    }

    .rb-hero__stat-float {
        left: 10px;
        bottom: 10px;
    }
}

@media screen and (max-width: 768px) {
    .rb-section {
        padding: 60px 0;
    }

    .rb-hero {
        min-height: auto;
        padding: 40px 0 60px;
    }

    .rb-hero__title {
        font-size: 30px;
    }

    .rb-hero__checks {
        grid-template-columns: 1fr;
    }

    .rb-hero__actions .but {
        min-width: 100%;
    }

    .rb-section__title {
        font-size: 28px;
    }

    .rb-problems__grid,
    .rb-effect__grid,
    .rb-services__grid,
    .rb-benefits__grid {
        grid-template-columns: 1fr;
    }

    .rb-timeline__step {
        flex: 0 0 100%;
    }

    .rb-stat-item__num {
        font-size: 42px;
    }

    .rb-form-wrap {
        flex-direction: column;
    }

    .rb-form-box {
        padding: 28px 20px;
    }

    .rb-cta-final h2 {
        font-size: 28px;
    }
}
