:root {
        --bt-orange: #F39200;
        --bt-teal: #005A6A;
        --bt-black: #171a20;
        --bt-white: #ffffff;
        --bt-gray: #f9f9f9;
        --bt-text: #333333;
    }

    .bt-landing {
        font-family: 'Montserrat', sans-serif;
        background-color: var(--bt-white);
        color: var(--bt-text);
        line-height: 1.6;
        margin: 0; padding: 0;
    }

    .bt-hero { display: flex; flex-wrap: wrap; min-height: 550px; background: var(--bt-white); }
    .bt-hero-left { flex: 1; min-width: 320px; padding: 60px 5%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
    .bt-hero-left h1 { font-weight: 900; font-size: 2.8rem; line-height: 1.1; margin-bottom: 25px; color: var(--bt-black); text-transform: uppercase; }
    .bt-hero-left p { font-size: 1.2rem; margin-bottom: 35px; color: #555; max-width: 500px; border-left: 4px solid var(--bt-orange); padding-left: 20px; }
    .bt-hero-right { flex: 1; min-width: 320px; background: url('https://baikaltesla.com/wp-content/uploads/2026/03/Solar-in-manufacturing1.jpg') no-repeat center center/cover; min-height: 400px; }

    .bt-btn { background-color: var(--bt-orange); color: white; padding: 18px 45px; border-radius: 4px; text-decoration: none; font-weight: 700; text-transform: uppercase; transition: 0.3s; display: inline-block; border: 2px solid var(--bt-orange); cursor: pointer; }
    .bt-btn:hover { background-color: var(--bt-black); border-color: var(--bt-black); }

    .bt-section { padding: 30px 30px; max-width: 1200px; margin: 0 auto; }
    .bt-title { color: var(--bt-orange)!important; font-weight: 900; font-size: 2.2rem!important; text-align: center; margin-bottom: 50px; text-transform: uppercase; }

    .bt-tech-content { max-width: 900px; margin: 0 auto 50px; }

    /* ══ ГАЛЕРЕЯ ДЕСКТОП ══ */
    .bt-gallery-desktop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
    .bt-gallery-desktop .bt-gallery-img { width: 100%; height: 250px; border-radius: 10px; object-fit: cover; border-bottom: 4px solid var(--bt-orange); display: block; }

    /* ══ ГАЛЕРЕЯ МОБАЙЛ (слайдер) ══ */
    .bt-gallery-mobile { display: none; }
    .bt-gallery-mobile .bt-slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; scrollbar-width: none; padding-bottom: 12px; -webkit-overflow-scrolling: touch; }
    .bt-gallery-mobile .bt-slider-track::-webkit-scrollbar { display: none; }
    .bt-gallery-mobile .bt-slider-track img { flex: 0 0 88%; scroll-snap-align: start; height: 220px; border-radius: 10px; object-fit: cover; border-bottom: 4px solid var(--bt-orange); }
    .bt-gallery-mobile .bt-slider-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
    .bt-gallery-mobile .bt-slider-dots span { width: 8px; height: 8px; border-radius: 50%; background: #ddd; transition: background 0.3s; }
    .bt-gallery-mobile .bt-slider-dots span.active { background: var(--bt-orange); }

    .slider-wrapper { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; padding: 20px 0; scrollbar-width: none; }
    .slider-wrapper::-webkit-scrollbar { display: none; }
    .case-card { flex: 0 0 100%; scroll-snap-align: start; background: var(--bt-black); color: white; border-radius: 20px; padding: 40px; border-right: 8px solid var(--bt-orange); box-sizing: border-box; }
    @media (min-width: 992px) { .case-card { flex: 0 0 calc(50% - 10px); } }
    .case-data-list { list-style: none; padding: 0; margin: 20px 0; }
    .case-data-list li { display: flex; justify-content: space-between; border-bottom: 1px dashed #444; padding: 8px 0; font-size: 0.95rem; }
    .case-data-list li span { color: #aaa; }
    .payback-tag { background: rgba(243,146,0,0.1); border: 1px solid var(--bt-orange); color: var(--bt-orange); padding: 15px; border-radius: 10px; text-align: center; font-weight: 700; margin-top: 15px; }

    .bt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
    .bt-card { padding: 20px; border-radius: 8px; background: var(--bt-gray); border-top: 5px solid var(--bt-orange); position: relative; overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s; }
    .bt-card h3 { color: var(--bt-teal); margin-bottom: 15px; text-transform: uppercase; font-size: 1.2rem; }
    .bt-card:hover { border-color: #005A6A; box-shadow: 0 6px 28px rgba(0,90,106,0.12); transform: translateY(-3px); }
    .bt-card::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.65), transparent); transform: skewX(-15deg); opacity: 0; }
    .bt-card:hover::after { opacity: 1; animation: bt-shimmer 0.65s ease forwards; }
    @keyframes bt-shimmer { 0% { transform: translateX(-100%) skewX(-15deg); } 100% { transform: translateX(350%) skewX(-15deg); } }

    .bt-form-container { background: var(--bt-black); color: white; padding: 60px 40px; border-radius: 20px; text-align: center; margin-top: 40px; }
    .bt-form-placeholder { max-width: 600px; margin: 0 auto; }

    .faq-item { border-bottom: 1px solid #eee; padding: 20px 0; }
    .faq-item h4 { color: var(--bt-teal); margin-bottom: 10px; font-weight: 700; }

    .bt-stats { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 36px; }
    .bt-stat-item { flex: 1; min-width: 140px; background: #f5f5f0; border-radius: 12px; padding: 20px 24px; text-align: center; }
    .bt-stat-num { font-size: 32px; font-weight: 700; color: #005A6A; }
    .bt-stat-label { font-size: 14px; color: #555; margin-top: 4px; }

    .bt-how { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
    .bt-how-text { flex: 1; min-width: 260px; }
    .bt-how-img { flex: 2; min-width: 280px; }
    .bt-how-img img { width: 100%; height: auto; border-radius: 8px; }

    .bt-tariff { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
    .bt-tariff-img { flex: 1; min-width: 280px; }
    .bt-tariff-img img { width: 100%; height: auto; border-radius: 8px; }
    .bt-tariff-text { flex: 1; min-width: 260px; }

    .bt-services { display: flex; flex-wrap: wrap; gap: 24px; }
    .bt-services .bt-card { flex: 1; min-width: 220px; }

    /* ══ БЛОК ФОРМЫ (не уверены + AjaxForm) ══ */
    .lead-form-section { padding: 0;margin-top:50px; }
    .lead-form-wrap { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
    .form-left { background: #ffffff; padding: 44px 40px; height: 100%; display: flex; flex-direction: column; justify-content: center; }
    .form-left-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bt-orange); margin-bottom: 18px; }
    .form-left h2 { font-weight: 900; font-size: 1.7rem; line-height: 1.1; text-transform: uppercase; color: var(--bt-black); margin: 0 0 22px; }
    .form-left h2 span { color: var(--bt-orange); }
    .form-left-sub { font-size: 1rem; color: #555; margin-bottom: 28px; line-height: 1.6; }
    .form-left-list { list-style: none; padding: 0; margin: 0; }
    .form-left-list li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eee; color: #333; font-size: 0.95rem; line-height: 1.5; }
    .form-left-list li:last-child { border-bottom: none; }
    .form-left-list li::before { content: '✓'; color: var(--bt-orange); font-weight: 900; flex-shrink: 0; margin-top: 1px; }
    .form-left-note { margin-top: 28px; font-size: 0.82rem; color: #aaa; border-top: 1px solid #eee; padding-top: 18px; }
    .form-right { background: #ffffff; padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; border-radius: 12px; box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
    .form-right h3 { color: var(--bt-black); font-weight: 700; font-size: 1.5rem; text-align: center; text-transform: none; margin-bottom: 10px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
    .bt-form-field { margin-bottom: 16px; }
    .bt-form-field label { display: block; color: #999; font-size: 0.78rem; font-weight: 400; text-transform: none; letter-spacing: normal; margin-bottom: 4px; }
    .bt-form-field label .req { color: #e74c3c; }
    .bt-form-field input { width: 100%; padding: 14px 16px; border-radius: 6px; border: 1px solid #eee; background: #f7f7f7; color: #171a20; font-family: 'Montserrat', sans-serif; font-size: 0.95rem; }
    .bt-form-field input::placeholder { color: #aaa; }
    .bt-form-field input:focus { outline: none; border-color: var(--bt-orange); background: #fff; }
    .bt-form-consents { margin: 8px 0 20px; display: flex; flex-direction: column; gap: 12px; }
    .bt-consent-item { display: flex; align-items: flex-start; gap: 10px; }
    .bt-consent-item input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--bt-orange); cursor: pointer; }
    .bt-consent-item label { font-size: 0.8rem; color: #777; line-height: 1.5; cursor: pointer; }
    .bt-consent-item label a { color: #4a90d9; text-decoration: underline; }
    .bt-consent-item label .req { color: #e74c3c; }
    .bt-form-submit { width: 100%; box-sizing: border-box; font-size: 1rem; padding: 16px; }
    .bt-report-link { display: flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 0.82rem; color: #999; text-decoration: none; }
    .bt-report-link:hover { color: var(--bt-orange); }
    .bt-report-link .qmark { width: 15px; height: 15px; border-radius: 50%; border: 1px solid #ccc; display: inline-flex; align-items: center; justify-content: center; font-size: 0.68rem; color: #aaa; }

    /* ══ МОБИЛЬНАЯ АДАПТАЦИЯ ══ */
    @media (max-width: 768px) {

        .bt-hero { flex-direction: column-reverse; }
        .bt-hero-left { padding: 40px 20px; text-align: center; align-items: center; }
        .bt-hero-left h1 { font-size: 1.8rem; }
        .bt-hero-left p { font-size: 1rem; }
        .bt-hero-right { height: 260px; flex: none; width: 100%; min-width: unset; }

        .bt-section { padding: 24px 16px; }
        .bt-title { font-size: 1.4rem; margin-bottom: 30px; }
        .bt-btn { width: 100%; text-align: center; padding: 16px 20px; box-sizing: border-box; }

        /* Переключаем галерею */
        .bt-gallery-desktop { display: none; }
        .bt-gallery-mobile { display: block; margin-top: 24px; }

        .bt-how { flex-direction: column; gap: 20px; }
        .bt-how-text { min-width: unset; }
        .bt-how-img { min-width: unset; flex: none; width: 100%; }

        .bt-tariff { flex-direction: column; gap: 20px; }
        .bt-tariff-img { min-width: unset; width: 100%; }
        .bt-tariff-text { min-width: unset; }

        .bt-services { flex-direction: column; }
        .bt-services .bt-card { min-width: unset; }

        .bt-stats { gap: 12px; }
        .bt-stat-item { min-width: calc(50% - 6px); padding: 16px; }
        .bt-stat-num { font-size: 26px; }
        .bt-stat-label { font-size: 12px; }

        /* Для кого — 2 колонки */
        .bt-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
        .bt-card h3 { font-size: 0.9rem; }

        .case-card { padding: 24px 20px; border-right: none; border-bottom: 6px solid var(--bt-orange); }
        .case-data-list li { flex-direction: column; gap: 4px; }

        .bt-form-container { padding: 40px 20px; border-radius: 12px; }
        .faq-item h4 { font-size: 0.95rem; }

        .lead-form-wrap { grid-template-columns: 1fr; }
        .form-left, .form-right { padding: 32px 22px; }
    }

    @media (max-width: 400px) {
        .bt-hero-left h1 { font-size: 1.5rem; }
        .bt-stat-item { min-width: 100%; }
        .bt-title { font-size: 1.2rem; }
    }

.solar-widget { width: 100%; max-width: 1140px;margin:0 auto; }
.widget-container { background: var(--bt-white); border-radius: 16px; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08); overflow: hidden; }
.widget-header { padding: 24px 24px 16px; text-align: center; border-bottom: 1px solid #e8eef3; position: relative; }
.widget-header h3 { font-size: 18px; font-weight: 600; color: #1e293b; letter-spacing: -0.02em; }
.help-btn { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 2px solid #cbd5e1; background: #ffffff; color: #64748b; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; padding:0; }
.help-btn:hover { border-color: #FFA726; color: #FFA726; background: #fff8f0; }
.tooltip { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); display: none; justify-content: center; align-items: center; z-index: 1000; padding: 20px; }
.tooltip.active { display: flex; }
.tooltip-content { background: #ffffff; border-radius: 16px; padding: 24px; max-width: 400px; position: relative; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); }
.tooltip-close { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border: none; background: #f1f5f9; border-radius: 50%; font-size: 24px; color: #64748b; cursor: pointer; transition: all 0.3s ease; padding:0; }
.tooltip-close:hover { background: #e2e8f0; color: #1e293b; }
.tooltip-content h4 { font-size: 18px; color: #1e293b; margin-bottom: 16px; }
.tooltip-content ul { list-style: none; padding: 0; }
.tooltip-content li { padding: 8px 0; color: #64748b; font-size: 14px; line-height: 1.5; }
.tooltip-content strong { color: #1e293b; }
.settings-panel { padding: 20px 24px; background: #fafbfc; display: flex; flex-direction: column; gap: 20px; }
.setting-group { display: flex; flex-direction: column; gap: 8px; }
.setting-group label { font-size: 13px; font-weight: 500; color: #475569; display: flex; justify-content: space-between; align-items: center; }
.setting-group label span { color: #1e293b; font-weight: 600; }
.range-wrapper { position: relative; padding-bottom: 20px; }
.setting-group input[type="range"] { width: 100%; height: 6px; border-radius: 3px; background: #e2e8f0; outline: none; -webkit-appearance: none; border-color:rgba(0,0,0,0); }
.setting-group input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #FFA726; cursor: pointer; box-shadow: 0 2px 4px rgba(255, 167, 38, 0.3); transition: all 0.3s ease; }
.setting-group input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
.setting-group input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; cursor: pointer; border: none; }
.range-marks { display: flex; justify-content: space-between; padding: 0 2px; margin-top: 8px; }
.range-marks span { font-size: 10px; color: #94a3b8; font-weight: 500; }
.grid-background { position: absolute; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(255, 243, 224, 0.2) 0%, rgba(200, 230, 255, 0.2) 100%), repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(100, 116, 139, 0.06) 19px, rgba(100, 116, 139, 0.06) 20px), repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(100, 116, 139, 0.06) 19px, rgba(100, 116, 139, 0.06) 20px); border: 2px solid rgba(100, 116, 139, 0.1); border-radius: 12px; }
.panel-svg { width: 75px; }
.sun { position: absolute; width: 60px; height: 60px; cursor: grab; user-select: none; touch-action: none; left: 50%; top: 20%; transform: translate(-50%, -50%); z-index: 10; transition: filter 0.5s ease; }
.sun:active { cursor: grabbing; transform: translate(-50%, -50%) scale(1.05); }
.sun-core { position: absolute; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #FFF176 0%, #FFD54F 30%, #FFA726 60%, #FF6F00 100%); box-shadow: 0 0 20px rgba(255, 167, 38, 0.6), 0 0 40px rgba(255, 167, 38, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.3); animation: pulse-sun 4s ease-in-out infinite; }
@keyframes pulse-sun { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.sun-surface { position: absolute; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.sun-surface::before, .sun-surface::after { content: ''; position: absolute; width: 200%; height: 200%; top: -50%; left: -50%; background: radial-gradient(circle, rgba(255, 235, 59, 0.3) 20%, transparent 20%), radial-gradient(circle, rgba(255, 193, 7, 0.2) 20%, transparent 20%); background-size: 20px 20px; background-position: 0 0, 10px 10px; border-radius: 50%; animation: wave-surface 8s linear infinite; }
.sun-surface::after { animation-duration: 12s; animation-direction: reverse; opacity: 0.5; }
@keyframes wave-surface { 0% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(180deg) scale(1.1); } 100% { transform: rotate(360deg) scale(1); } }
.sun-rays { position: absolute; width: 100%; height: 100%; animation: rotate-rays 30s linear infinite; }
.ray { position: absolute; width: 3px; height: 15px; background: linear-gradient(to bottom, #FFA726, transparent); border-radius: 2px; top: 50%; left: 50%; transform-origin: center; opacity: 0.7; }
.ray:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) translateY(-35px); }
.ray:nth-child(2) { transform: translate(-50%, -50%) rotate(45deg) translateY(-35px); }
.ray:nth-child(3) { transform: translate(-50%, -50%) rotate(90deg) translateY(-35px); }
.ray:nth-child(4) { transform: translate(-50%, -50%) rotate(135deg) translateY(-35px); }
.ray:nth-child(5) { transform: translate(-50%, -50%) rotate(180deg) translateY(-35px); }
.ray:nth-child(6) { transform: translate(-50%, -50%) rotate(225deg) translateY(-35px); }
.ray:nth-child(7) { transform: translate(-50%, -50%) rotate(270deg) translateY(-35px); }
.ray:nth-child(8) { transform: translate(-50%, -50%) rotate(315deg) translateY(-35px); }
@keyframes rotate-rays { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.sun-glow { position: absolute; width: 120%; height: 120%; top: -10%; left: -10%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 167, 38, 0.3) 0%, transparent 70%); animation: glow-pulse 3s ease-in-out infinite; pointer-events: none; }
@keyframes glow-pulse { 0%, 100% { transform: scale(1); opacity: 0.6; } 50% { transform: scale(1.2); opacity: 0.9; } }
.sun-tooltip { position: absolute; left: 50%; top: -50px; transform: translateX(-50%); background: rgba(30, 41, 59, 0.95); color: #ffffff; padding: 8px 14px; border-radius: 10px; white-space: nowrap; pointer-events: none; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3); backdrop-filter: blur(8px); }
.sun-tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 8px solid transparent; border-top-color: rgba(30, 41, 59, 0.95); }
.sun-tooltip-time { font-size: 14px; font-weight: 700; text-align: center; letter-spacing: 0.5px; }
.sun-tooltip-month { font-size: 11px; opacity: 0.9; text-align: center; margin-top: 2px; font-weight: 500; }
.schema-container { position: relative; padding: 30px 20px; min-height: 180px; background: #fafbfc; display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; }
.energy-lines { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.line-base { stroke-linecap: round; stroke-linejoin: round; }
.component { display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 10; }
.component.solar-panel { grid-column: 1; grid-row: 1; }
.component.house { grid-column: 1; grid-row: 2; }
.component.grid { grid-column: 2; grid-row: 2; }
.component.energy-balance { grid-column: 2; grid-row: 1; padding: 16px; background: rgba(255, 255, 255, 0.6); border-radius: 12px; gap: 12px; }
.balance-title { font-size: 13px; font-weight: 600; color: #1e293b; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.balance-item { display: flex; gap: 20px; margin-bottom: 8px; width: 100%; justify-content: flex-end; }
.balance-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; color: #64748b; min-width: 15%; }
.balance-icon { font-size: 14px; }
.balance-bar-container { min-width: 65%; height: 18px; background: #e2e8f0; border-radius: 9px; overflow: hidden; position: relative; box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); }
.balance-bar { height: 100%; width: 0%; border-radius: 9px; transition: width 0.5s ease, background 0.3s ease; position: relative; }
.balance-bar::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent); animation: bt-shimmer2 2s infinite; }
@keyframes bt-shimmer2 { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.solar-bar { background: #FFA726; }
.grid-bar { background: #42A5F5; }
.grid-bar.selling { background: #10b981; }
.balance-value { font-size: 15px; font-weight: 600; color: #1e293b; text-align: right; min-width: 15%; }
.component-label { margin-top: 8px; font-size: 11px; font-weight: 500; color: #64748b; letter-spacing: 0.01em; }
.component-value { margin-top: 6px; font-size: 15px; font-weight: 600; color: #1e293b; background: rgba(255, 255, 255, 1); padding: 6px 12px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); display: inline-block; min-width: 70px; }
.component-value.solar { color: #FF6F00; }
.component-value.positive { color: #10b981; }
.component-value.negative { color: #ef4444; }
.autonomy-label { font-size: 12px; font-weight: 500; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.autonomy-bar-container { width: 100%; max-width: 180px; height: 24px; background: #e2e8f0; border-radius: 12px; overflow: hidden; position: relative; }
.autonomy-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #10b981 100%); border-radius: 12px; transition: width 0.5s ease, background 0.3s ease; position: relative; }
.autonomy-value { margin-top: 8px; font-size: 24px; font-weight: 700; color: #1e293b; }
.panel-icon { width: 80px; height: 10px; }
.panel-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 3px; padding: 6px; background: #37474f; border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
.panel-cell { background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%); border-radius: 2px; box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3); }
.house-icon { width: 70px; height: 60px; margin: 0 auto; }
.house-roof { width: 0; height: 0; border-left: 35px solid transparent; border-right: 35px solid transparent; border-bottom: 25px solid #5d4037; margin: 0 auto; }
.house-body { width: 60px; height: 35px; background: #8d6e63; margin: 0 auto; border-radius: 0 0 4px 4px; display: flex; gap: 8px; padding: 8px; justify-content: center; }
.house-window { width: 12px; height: 12px; background: #ffe082; border-radius: 2px; box-shadow: inset 0 0 4px rgba(255, 193, 7, 0.8); }
.grid-icon { width: 50px; height: 70px; margin: 0 auto; }
.grid-tower { width: 100%; height: 100%; position: relative; display: flex; flex-direction: column; justify-content: space-around; align-items: center; padding: 10px 0; }
.grid-tower::before { content: ''; position: absolute; width: 4px; height: 100%; background: linear-gradient(180deg, #78909c 0%, #546e7a 100%); left: 50%; transform: translateX(-50%); border-radius: 2px; }
.grid-line-icon { width: 100%; height: 2px; background: #1976D2; position: relative; z-index: 1; border-radius: 1px; }
.energy-particle { r: 5; opacity: 0; filter: url(#glow); transition: opacity 0.3s ease; }
.energy-particle.solar { fill: #FFA726; }
.energy-particle.grid-in { fill: #ef4444; }
.energy-particle.grid-out { fill: #10b981; }
.sun-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 20px 24px; background: #ffffff; overflow: visible; }
.axis-y { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 10px 0; }
.axis-x { grid-column: 2; grid-row: 2; display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.axis-label { font-size: 11px; font-weight: 500; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; }
.sun-area { grid-column: 2; height: 350px; grid-row: 1; position: relative; border-radius: 16px; overflow: visible; box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1); }
.landscape-scene { position: absolute; width: 100%; height: 100%; overflow: hidden; border-radius: 16px; }
.sky { position: absolute; width: 100%; height: 100%; background-color: #87CEEB; transition: background-color 0.5s linear; }
.clouds { position: absolute; width: 100%; height: 50%; top: 0; pointer-events: none; transition: opacity 1.5s ease-in-out; }
.cloud { position: absolute; background: rgba(255, 255, 255, 0.8); border-radius: 100px; opacity: 0.6; transition: opacity 1s ease-in-out; }
.cloud::before, .cloud::after { content: ''; position: absolute; background: rgba(255, 255, 255, 0.8); border-radius: 100px; }
.cloud-1 { width: 60px; height: 20px; top: 15%; left: 10%; animation: float-cloud-1 25s infinite ease-in-out; }
.cloud-1::before { width: 30px; height: 30px; top: -15px; left: 10px; }
.cloud-1::after { width: 35px; height: 25px; top: -10px; right: 10px; }
.cloud-2 { width: 50px; height: 18px; top: 25%; right: 20%; animation: float-cloud-2 30s infinite ease-in-out; }
.cloud-2::before { width: 25px; height: 25px; top: -12px; left: 8px; }
.cloud-2::after { width: 30px; height: 20px; top: -8px; right: 8px; }
.cloud-3 { width: 70px; height: 22px; top: 35%; left: 60%; animation: float-cloud-3 35s infinite ease-in-out; }
.cloud-3::before { width: 35px; height: 32px; top: -18px; left: 12px; }
.cloud-3::after { width: 40px; height: 28px; top: -12px; right: 12px; }
@keyframes float-cloud-1 { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(20px); } }
@keyframes float-cloud-2 { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-15px); } }
@keyframes float-cloud-3 { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(25px); } }
.stars { position: absolute; width: 100%; height: 60%; top: 0; opacity: 0; transition: opacity 2s ease-in-out; pointer-events: none; }
.stars.visible { opacity: 1; }
.star { position: absolute; width: 2px; height: 2px; background: white; border-radius: 50%; box-shadow: 0 0 4px 1px rgba(255, 255, 255, 0.8); animation: twinkle 3s infinite ease-in-out; }
.star:nth-child(2) { animation-delay: 0.5s; }
.star:nth-child(3) { animation-delay: 1s; }
.star:nth-child(4) { animation-delay: 1.5s; }
.star:nth-child(5) { animation-delay: 2s; }
.star:nth-child(6) { animation-delay: 2.5s; }
.star:nth-child(7) { animation-delay: 3s; }
@keyframes twinkle { 0%, 100% { opacity: 0.3; transform: scale(1); } 50% { opacity: 1; transform: scale(1.5); } }
.snow-overlay { position: absolute; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 2s ease-in-out; }
.snow-overlay.active { opacity: 1; }
.snowflake { position: absolute; width: 4px; height: 4px; background: white; border-radius: 50%; opacity: 0.8; animation: fall linear infinite; }
.snowflake:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 8s; }
.snowflake:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 10s; }
.snowflake:nth-child(3) { left: 35%; animation-delay: 4s; animation-duration: 12s; }
.snowflake:nth-child(4) { left: 50%; animation-delay: 6s; animation-duration: 9s; }
.snowflake:nth-child(5) { left: 65%; animation-delay: 3s; animation-duration: 11s; }
.snowflake:nth-child(6) { left: 80%; animation-delay: 1s; animation-duration: 10s; }
.snowflake:nth-child(7) { left: 25%; animation-delay: 5s; animation-duration: 9s; }
.snowflake:nth-child(8) { left: 90%; animation-delay: 7s; animation-duration: 11s; }
@keyframes fall { 0% { top: -10%; transform: translateX(0) rotate(0deg); } 100% { top: 110%; transform: translateX(30px) rotate(360deg); } }
.ground { position: absolute; bottom: 0; left: 0; right: 0; height: 45%; overflow: hidden; transition: opacity 0.5s ease; }
.hills { position: absolute; bottom: 0; width: 100%; height: 100%; }
.hill { transition: fill 1s ease; }
.hill-back { fill: #7CB342; opacity: 0.6; }
.hill-mid { fill: #8BC34A; opacity: 0.8; }
.hill-front { fill: #9CCC65; opacity: 1; }
.ground.winter .hill-back { fill: #B3E5FC; }
.ground.winter .hill-mid { fill: #E1F5FE; }
.ground.winter .hill-front { fill: #F0F9FF; }
.sky.night { background: linear-gradient(to bottom, rgb(10, 17, 40) 0%, rgb(30, 58, 95) 100%); }
.sky.dawn { background: linear-gradient(to bottom, rgb(255, 107, 107) 0%, rgb(255, 217, 61) 100%); }
.sky.day { background: linear-gradient(to bottom, rgb(135, 206, 235) 0%, rgb(224, 246, 255) 100%); }
.sky.dusk { background: linear-gradient(to bottom, rgb(255, 140, 66) 0%, rgb(74, 144, 226) 100%); }
.sun-hint-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); display: flex; justify-content: center; align-items: center; z-index: 11; opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s ease; backdrop-filter: blur(3px); border-radius: 16px; pointer-events: none; }
.sun-hint-overlay.active { opacity: 1; visibility: visible; pointer-events: all; }
.sun-hint-content { text-align: center; animation: hint-pulse 0.6s ease-out; padding: 20px; }
@keyframes hint-pulse { 0% { transform: scale(0.8); opacity: 0; } 50% { transform: scale(1.05); } 100% { transform: scale(1); opacity: 1; } }
.hint-text h4 { font-size: 28px; font-weight: 700; color: #ffffff; margin-bottom: 12px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); letter-spacing: -0.5px; }
.hint-text p { font-size: 16px; color: rgba(255, 255, 255, 0.9); line-height: 1.5; margin-bottom: 30px; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.hand-animation { display: flex; justify-content: center; align-items: center; gap: 20px; height: 80px; }
.hand { width: 56px; height: 56px; color: #FFA726; animation: hand-grab 2.5s ease-in-out infinite; transform-origin: center; filter: drop-shadow(0 4px 12px rgba(255, 167, 38, 0.5)); }
.hand svg { width: 100%; height: 100%; }
@keyframes hand-grab { 0%, 100% { transform: translateX(-15px) translateY(0) scale(1); } 15% { transform: translateX(-15px) translateY(0) scale(0.9); } 40% { transform: translateX(15px) translateY(-8px) scale(0.9); } 60% { transform: translateX(15px) translateY(-8px) scale(0.9); } 85% { transform: translateX(-15px) translateY(0) scale(1); } }
.drag-arrow { font-size: 36px; color: #FFA726; font-weight: bold; animation: arrow-move 2.5s ease-in-out infinite; filter: drop-shadow(0 2px 8px rgba(255, 167, 38, 0.5)); }
@keyframes arrow-move { 0%, 100% { transform: translateX(-8px); opacity: 0.6; } 40%, 60% { transform: translateX(8px); opacity: 1; } 85% { transform: translateX(-8px); opacity: 0.6; } }
.sun-hint-overlay.active::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 300px; height: 300px; background: radial-gradient(circle, rgba(255, 167, 38, 0.2) 0%, transparent 70%); border-radius: 50%; animation: hint-glow 2s ease-in-out infinite; pointer-events: none; }
@keyframes hint-glow { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; } 50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; } }
.label-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.solar-dot { background: #FFA726; box-shadow: 0 0 4px rgba(255, 167, 38, 0.5); }
.grid-dot { background: #42A5F5; box-shadow: 0 0 4px rgba(66, 165, 245, 0.5); }
.balance-legend { display: flex; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #e2e8f0; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #64748b; cursor: help; }
.legend-color { width: 12px; height: 12px; border-radius: 3px; }
.legend-color.solar { background: #FFA726; }
.legend-color.grid-buy { background: #42A5F5; }
.legend-color.grid-sell { background: #10b981; }
.legend-text { font-weight: 500; }

@media (max-width: 768px) {
    .hint-text h4 { font-size: 22px; }
    .component-value{ min-height:50px ; }
    .hint-text p { font-size: 14px; margin-bottom: 24px; }
    .hand-animation { height: 60px; gap: 16px; }
    .hand { width: 44px; height: 44px; }
    .drag-arrow { font-size: 28px; }
    .sun-hint-overlay.active::before { width: 200px; height: 200px; }
}
@media (max-width: 600px) {
    .sun-grid{ display: block; }
    .schema-container { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; gap: 30px; padding: 20px; }
    .sun-area{height:250px;}
    .component.solar-panel { grid-column: 1; grid-row: 1; }
    .component.energy-balance { grid-column: 1; grid-row: 2; }
    .component.house { grid-column: 1; grid-row: 3; }
    .component.grid { grid-column: 1; grid-row: 4; }
    .hint-text h4 { font-size: 20px; margin-bottom: 8px; }
    .hint-text p { font-size: 13px; margin-bottom: 20px; }
    .hand-animation { height: 50px; gap: 12px; }
    .hand { width: 36px; height: 36px; }
    .drag-arrow { font-size: 24px; }
    .balance-legend { gap: 8px; }
    .legend-item { font-size: 10px; }
}