.nav__submenu-link--active {
    color: var(--color-primary-dark);
    background: var(--color-primary-bg);
    border-left-color: var(--color-primary);
    font-weight: 500;
}

.res-hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.res-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.res-hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a1f0e 0%, #0d2818 25%, #0a2a1a 50%, #0c1f2e 75%, #0a1a2e 100%);
}

.res-hero__particles {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.res-hero__content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 100px 300px;
}

.res-hero__text {
    color: white;
}

.res-hero__badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(46, 204, 113, 0.15);
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    border: 1px solid rgba(46, 204, 113, 0.3);
    letter-spacing: 1px;
}

.res-hero__title {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.res-hero__title--highlight {
    background: linear-gradient(135deg, var(--color-primary), #f1c40f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.res-hero__desc {
    font-size: 17px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 28px;
    max-width: 540px;
}

.res-hero__targets {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.res-hero__target {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition);
}

.res-hero__target:hover {
    background: rgba(46, 204, 113, 0.15);
    border-color: rgba(46, 204, 113, 0.3);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.res-hero__target svg {
    flex-shrink: 0;
    color: var(--color-primary);
    opacity: 0.8;
}

.res-hero__values {
    display: flex;
    gap: 20px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.res-hero__value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.res-hero__value svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.res-hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.res-hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.res-hero__image-wrapper {
    position: relative;
    width: 100%;
}

.res-hero__illustration {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 40px rgba(46, 204, 113, 0.2));
    animation: resFloat 4s ease-in-out infinite;
}

@keyframes resFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.res-hero__scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    animation: bounceDown 2s ease-in-out infinite;
}

.res-install__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.res-install-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.res-install-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.res-install-card__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--color-primary-bg);
    transition: all var(--transition);
}

.res-install-card:hover .res-install-card__icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

.res-install-card:hover .res-install-card__icon svg circle,
.res-install-card:hover .res-install-card__icon svg rect,
.res-install-card:hover .res-install-card__icon svg path,
.res-install-card:hover .res-install-card__icon svg line,
.res-install-card:hover .res-install-card__icon svg text {
    stroke: white;
    fill: white;
}

.res-install-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
}

.res-install-card__desc {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.8;
}

.res-install__steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.res-install__step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
    max-width: 260px;
}

.res-install__step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    font-size: 18px;
    font-weight: 700;
    box-shadow: var(--shadow-primary);
}

.res-install__step-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.res-install__step-content p {
    font-size: 13px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.res-install__step-connector {
    flex-shrink: 0;
    width: 48px;
    height: 2px;
    background: var(--color-primary-light);
    margin-top: 22px;
    position: relative;
}

.res-install__step-connector::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid var(--color-primary-light);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.res-switch__diagram {
    max-width: 900px;
    margin: 0 auto;
}

.res-switch__flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 40px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    margin-bottom: 32px;
}

.res-switch__node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.res-switch__node-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.res-switch__node-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-light);
    text-align: center;
    line-height: 1.4;
}

.res-switch__arrow {
    display: flex;
    align-items: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.res-switch__decision {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.res-switch__decision-icon {
    animation: resPulse 2s ease-in-out infinite;
}

@keyframes resPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.res-switch__branches {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.res-switch__branch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.res-switch__branch-label {
    font-size: 13px;
    font-weight: 700;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.res-switch__branch-label--yes {
    background: #e8f5e9;
    color: #27ae60;
}

.res-switch__branch-label--no {
    background: #fce4ec;
    color: #e74c3c;
}

.res-switch__node--on-grid,
.res-switch__node--off-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.res-switch__highlight {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.res-switch__highlight-item {
    text-align: center;
}

.res-switch__highlight-value {
    display: block;
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.res-switch__highlight-label {
    font-size: 14px;
    color: var(--color-text-light);
}

.res-app__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.res-app__mockup {
    display: flex;
    justify-content: center;
}

.res-app__phone {
    width: 280px;
    height: 500px;
    background: #1a1a2e;
    border-radius: 28px;
    padding: 10px;
    box-shadow: var(--shadow-lg), inset 0 0 2px rgba(255,255,255,0.1);
    position: relative;
}

.res-app__phone-notch {
    width: 80px;
    height: 24px;
    background: #1a1a2e;
    border-radius: 0 0 14px 14px;
    margin: 0 auto 8px;
}

.res-app__screen {
    background: #16213e;
    border-radius: 20px;
    height: calc(100% - 32px);
    overflow: hidden;
}

.res-app__screen-header {
    padding: 16px 16px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.res-app__screen-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-align: center;
    display: block;
}

.res-app__screen-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.res-app__card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
}

.res-app__card-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.res-app__card-info {
    display: flex;
    flex-direction: column;
}

.res-app__card-value {
    font-size: 20px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    line-height: 1.1;
}

.res-app__card-unit {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.6;
}

.res-app__card-label {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}

.res-app__chart {
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 12px;
}

.res-app__chart-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.res-app__chart-labels span:last-child {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
}

.res-app__savings {
    display: flex;
    gap: 8px;
}

.res-app__savings-item {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    background: rgba(46,204,113,0.08);
    border-radius: 10px;
}

.res-app__savings-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
}

.res-app__savings-label {
    font-size: 10px;
    color: rgba(255,255,255,0.35);
}

.res-app__features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.res-app__feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.res-app__feature svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.res-app__feature h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.res-app__feature p {
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.7;
}

.res-economy__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 40px;
}

.res-economy__chart-bars {
    display: flex;
    justify-content: center;
    gap: 32px;
    align-items: flex-end;
    height: 260px;
    padding: 0 24px;
}

.res-economy__bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    max-width: 72px;
}

.res-economy__bar {
    width: 100%;
    border-radius: 6px 6px 0 0;
    transition: height 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.res-economy__bar--solar {
    background: linear-gradient(180deg, #f1c40f, #e67e22);
}

.res-economy__bar--grid {
    background: linear-gradient(180deg, #bdc3c7, #95a5a6);
}

.res-economy__bar--discharge {
    background: linear-gradient(180deg, #2ecc71, #27ae60);
}

.res-economy__bar-label {
    font-size: 12px;
    color: var(--color-text-light);
    font-weight: 500;
    margin-top: 4px;
}

.res-economy__legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.res-economy__legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-light);
}

.res-economy__legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.res-economy__compare {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.res-economy__compare-arrow {
    flex-shrink: 0;
    color: var(--color-primary);
}

.res-economy__compare-card {
    flex: 1;
    max-width: 200px;
    padding: 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--color-border);
}

.res-economy__compare-card--before {
    background: #fff5f5;
}

.res-economy__compare-card--after {
    background: #e8f8f0;
}

.res-economy__compare-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.res-economy__compare-card--before h4 { color: var(--color-accent-red); }
.res-economy__compare-card--after h4 { color: var(--color-primary-dark); }

.res-economy__compare-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.res-economy__compare-label {
    font-size: 13px;
    color: var(--color-text-light);
}

.res-economy__compare-value {
    font-size: 18px;
    font-weight: 700;
}

.res-economy__compare-value--high {
    color: var(--color-accent-red);
}

.res-economy__compare-value--low {
    color: var(--color-primary-dark);
}

.res-economy__summary {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 32px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.res-economy__summary-item {
    text-align: center;
}

.res-economy__summary-value {
    display: block;
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.res-economy__summary-label {
    font-size: 14px;
    color: var(--color-text-light);
}

.res-backup__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.res-backup__subtitle {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-primary-light);
}

.res-backup__loads-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.res-backup__load {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.res-backup__load:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: var(--color-primary-light);
}

.res-backup__load-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-primary-bg);
}

.res-backup__load-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
}

.res-backup__load-power {
    font-size: 11px;
    color: var(--color-text-lighter);
}

.res-backup__capacity-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.res-backup__capacity-card {
    padding: 16px 20px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.res-backup__capacity-bar {
    height: 6px;
    background: var(--color-bg-alt);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.res-backup__capacity-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.res-backup__capacity-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.res-backup__capacity-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.res-backup__capacity-hours {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.res-backup__capacity-hours span {
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text-light);
    margin-left: 2px;
}

.res-backup__capacity-desc {
    font-size: 12px;
    color: var(--color-text-light);
}

.res-backup__note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 16px;
    background: #fff8e1;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: #8d6e00;
    line-height: 1.6;
}

.res-backup__note svg {
    flex-shrink: 0;
    margin-top: 1px;
}

@media (max-width: 1024px) {
    .res-hero__content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 80px 24px;
    }

    .res-hero__desc {
        margin-left: auto;
        margin-right: auto;
    }

    .res-hero__targets {
        justify-content: center;
    }

    .res-hero__values {
        justify-content: center;
    }

    .res-hero__actions {
        justify-content: center;
    }

    .res-hero__visual {
        display: none;
    }

    .res-hero__title {
        font-size: 42px;
    }

    .res-install__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .res-install__steps {
        flex-wrap: wrap;
        gap: 24px;
    }

    .res-app__layout {
        grid-template-columns: 1fr;
    }

    .res-app__mockup {
        order: 1;
    }

    .res-app__features {
        order: 0;
    }

    .res-economy__layout {
        grid-template-columns: 1fr;
    }

    .res-economy__compare {
        order: -1;
    }

    .res-backup__layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .res-hero__content {
        padding: 60px 24px;
    }

    .res-hero__title {
        font-size: 32px;
    }

    .res-hero__desc {
        font-size: 15px;
    }

    .res-hero__scroll-indicator {
        display: none;
    }

    .res-install__grid {
        grid-template-columns: 1fr;
    }

    .res-install__steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .res-install__step {
        max-width: none;
    }

    .res-install__step-connector {
        width: 2px;
        height: 24px;
        margin: 0 0 0 22px;
    }

    .res-install__step-connector::after {
        right: 50%;
        top: auto;
        bottom: 0;
        transform: translate(50%, 50%);
        border-left: 4px solid transparent;
        border-right: 4px solid transparent;
        border-top: 6px solid var(--color-primary-light);
        border-bottom: none;
    }

    .res-switch__flow {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }

    .res-switch__branches {
        flex-direction: row;
        gap: 24px;
    }

    .res-switch__highlight {
        gap: 24px;
    }

    .res-switch__highlight-value {
        font-size: 26px;
    }

    .res-economy__chart-bars {
        gap: 16px;
        height: 200px;
    }

    .res-economy__compare {
        flex-direction: column;
    }

    .res-economy__compare-card {
        max-width: none;
        width: 100%;
    }

    .res-economy__compare-arrow {
        transform: rotate(90deg);
    }

    .res-economy__summary {
        flex-direction: column;
        gap: 24px;
    }

    .res-backup__loads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .res-hero__title {
        font-size: 26px;
    }

    .res-hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .res-hero__targets {
        flex-direction: column;
        align-items: center;
    }

    .res-hero__values {
        flex-direction: column;
        align-items: center;
    }

    .res-backup__loads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
