*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #0b2545;
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(11, 37, 69, 0.08);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(1180px, calc(100% - 36px));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
}

.brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    gap: 26px;
    margin-left: auto;
}

.main-nav a {
    text-decoration: none;
    font-weight: 700;
}

.header-cta {
    padding: 12px 18px;
    border-radius: 10px;
    background: #16824b;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
}

.hero {
    overflow: hidden;
    background:
        radial-gradient(circle at 75% 30%, rgba(25, 164, 93, 0.2), transparent 28%),
        linear-gradient(135deg, #eef8f3 0%, #ffffff 52%, #eef5fb 100%);
}

.hero-inner {
    width: min(1180px, calc(100% - 36px));
    min-height: 650px;
    margin: 0 auto;
    padding: 90px 0;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 70px;
}

.hero-kicker,
.section-kicker {
    margin: 0 0 12px;
    color: #16824b;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(48px, 6vw, 78px);
    line-height: 1.02;
    letter-spacing: -2px;
}

.hero-text {
    max-width: 650px;
    margin: 26px 0 0;
    font-size: 21px;
    line-height: 1.65;
    color: #3f5368;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
}

.button-primary {
    background: #16824b;
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(22, 130, 75, 0.24);
}

.button-secondary {
    border: 1px solid #bfd0dc;
    background: #ffffff;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-highlights span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #315068;
    font-size: 14px;
    font-weight: 700;
}

.hero-visual {
    position: relative;
    min-height: 430px;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 25px;
    border-radius: 42% 58% 62% 38% / 45% 40% 60% 55%;
    background: linear-gradient(135deg, #dff5e9, #dfeef8);
}

.energy-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(340px, 82%);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 50px rgba(13, 51, 78, 0.12);
    backdrop-filter: blur(10px);
}

.energy-card strong,
.energy-card span {
    display: block;
}

.energy-card strong {
    margin-bottom: 5px;
    font-size: 20px;
}

.energy-card span {
    color: #52687b;
    line-height: 1.4;
}

.energy-card__icon {
    font-size: 36px;
}

.energy-card-main {
    top: 50px;
    left: 30px;
}

.energy-card-battery {
    top: 180px;
    right: 0;
}

.energy-card-ev {
    bottom: 25px;
    left: 70px;
}

.section {
    padding: 90px 0;
}

.section-inner {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.section h2 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.12;
    letter-spacing: -1px;
}

.services-section {
    background: #ffffff;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 44px;
}

.service-card {
    padding: 28px;
    border: 1px solid #e1e9ee;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(13, 47, 72, 0.07);
}

.service-icon {
    margin-bottom: 18px;
    font-size: 34px;
}

.service-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
}

.service-card p {
    margin: 0;
    color: #52687b;
    line-height: 1.65;
}

.about-section {
    background: #0b2545;
    color: #ffffff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
}

.about-grid p {
    margin-top: 0;
    color: #d9e6ef;
    font-size: 18px;
    line-height: 1.75;
}

.faq-section {
    background: #f4f8f6;
}

.faq-inner {
    max-width: 920px;
}

.faq-list {
    display: grid;
    gap: 14px;
    margin-top: 36px;
}

.faq-list details {
    padding: 0 22px;
    border: 1px solid #dce6e1;
    border-radius: 14px;
    background: #ffffff;
}

.faq-list summary {
    padding: 20px 0;
    cursor: pointer;
    font-size: 18px;
    font-weight: 800;
}

.faq-list p {
    margin: 0;
    padding: 0 0 22px;
    color: #52687b;
    line-height: 1.65;
}

.contact-section {
    background: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 70px;
    align-items: center;
}

.contact-card {
    display: grid;
    gap: 14px;
    padding: 30px;
    border-radius: 20px;
    background: #eef7f2;
}

.contact-card > a:not(.button) {
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
}

.site-footer {
    padding: 28px 0;
    background: #081d36;
    color: #dbe7ef;
}

.footer-inner {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-links a {
    color: #ffffff;
}

.floating-whatsapp {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 900;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #20c76a;
    color: #ffffff;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 900px) {
    .main-nav {
        display: none;
    }

    .header-cta {
        margin-left: auto;
    }

    .hero-inner,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        min-height: 0;
        padding: 68px 0;
        gap: 40px;
    }

    .hero-visual {
        min-height: 360px;
    }

    .service-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .header-inner {
        width: calc(100% - 24px);
        min-height: 68px;
    }

    .brand img {
        width: 46px;
        height: 46px;
    }

    .brand span {
        font-size: 16px;
    }

    .header-cta {
        display: none;
    }

    .hero-inner,
    .section-inner,
    .footer-inner {
        width: calc(100% - 28px);
    }

    .hero-inner {
        padding: 52px 0 44px;
    }

    .hero h1 {
        font-size: 44px;
        letter-spacing: -1px;
    }

    .hero-text {
        font-size: 18px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    .hero-visual {
        min-height: 390px;
    }

    .energy-card {
        width: 90%;
    }

    .energy-card-main {
        top: 20px;
        left: 0;
    }

    .energy-card-battery {
        top: 145px;
        right: 0;
    }

    .energy-card-ev {
        bottom: 20px;
        left: 0;
    }

    .section {
        padding: 64px 0;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 24px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .floating-whatsapp {
        width: 54px;
        height: 54px;
        right: 12px;
        bottom: 12px;
    }
}

/* SOLAR_VISUAL_DETAILS_START */

.hero {
    position: relative;
    isolation: isolate;
}

/* Меко слънце */
.hero::before {
    content: "";
    position: absolute;
    top: 42px;
    right: 8%;
    z-index: -1;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(255, 207, 64, 0.68) 0%,
            rgba(255, 207, 64, 0.30) 38%,
            rgba(255, 207, 64, 0.08) 62%,
            transparent 72%
        );
    box-shadow:
        0 0 55px rgba(255, 198, 42, 0.24),
        0 0 110px rgba(255, 198, 42, 0.12);
}

/* Фини слънчеви лъчи */
.hero::after {
    content: "";
    position: absolute;
    top: -80px;
    right: -60px;
    z-index: -2;
    width: 470px;
    height: 470px;
    border-radius: 50%;
    opacity: 0.28;
    background:
        repeating-conic-gradient(
            from 0deg,
            rgba(255, 202, 52, 0.24) 0deg 3deg,
            transparent 3deg 14deg
        );
    mask-image: radial-gradient(
        circle,
        transparent 0 31%,
        #000 32% 100%
    );
    -webkit-mask-image: radial-gradient(
        circle,
        transparent 0 31%,
        #000 32% 100%
    );
}

/* Соларен панел зад информационните карти */
.hero-visual::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 45px;
    z-index: 0;
    width: 360px;
    max-width: 88%;
    aspect-ratio: 1.55 / 1;
    transform:
        translateX(-50%)
        perspective(700px)
        rotateX(61deg)
        rotateZ(-8deg);

    border: 8px solid #d5e3ea;
    border-radius: 8px;

    background:
        repeating-linear-gradient(
            to right,
            transparent 0,
            transparent calc(25% - 2px),
            rgba(225, 242, 251, 0.72) calc(25% - 2px),
            rgba(225, 242, 251, 0.72) 25%
        ),
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent calc(33.333% - 2px),
            rgba(225, 242, 251, 0.72) calc(33.333% - 2px),
            rgba(225, 242, 251, 0.72) 33.333%
        ),
        linear-gradient(
            145deg,
            #153d68 0%,
            #0f3158 48%,
            #1e5484 100%
        );

    box-shadow:
        0 26px 45px rgba(9, 42, 72, 0.26),
        inset 0 0 28px rgba(90, 183, 229, 0.2);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.energy-card {
    z-index: 3;
}

/* Малки светлинни отблясъци върху панела */
.hero-visual {
    isolation: isolate;
}

@media (max-width: 900px) {
    .hero::before {
        top: auto;
        right: -15px;
        bottom: 220px;
        width: 145px;
        height: 145px;
    }

    .hero::after {
        top: auto;
        right: -120px;
        bottom: 70px;
        width: 360px;
        height: 360px;
    }

    .hero-visual::after {
        bottom: 38px;
        width: 330px;
    }
}

@media (max-width: 600px) {
    .hero::before {
        right: -18px;
        bottom: 245px;
        width: 125px;
        height: 125px;
    }

    .hero::after {
        right: -150px;
        bottom: 120px;
        opacity: 0.18;
    }

    .hero-visual::after {
        bottom: 42px;
        width: 285px;
        border-width: 6px;
    }
}

/* SOLAR_VISUAL_DETAILS_END */

/* LANGUAGE_SWITCH_START */
.language-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid #b8c8d2;
    border-radius: 10px;
    background: #ffffff;
    color: #0b2545;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.language-switch:hover {
    border-color: #16824b;
    background: #eef8f3;
    color: #116b3d;
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .language-switch {
        margin-left: auto;
        min-width: 40px;
        height: 38px;
        padding: 0 8px;
    }
}
/* LANGUAGE_SWITCH_END */

/* FINAL_VISUAL_POLISH_START */

/* По-силен и по-реалистичен соларен панел */
.hero-visual::after {
    width: 390px;
    border-color: #b9ccd8;
    background:
        linear-gradient(
            120deg,
            transparent 0 28%,
            rgba(255, 255, 255, 0.20) 32%,
            transparent 37% 100%
        ),
        repeating-linear-gradient(
            to right,
            transparent 0,
            transparent calc(25% - 2px),
            rgba(220, 239, 249, 0.82) calc(25% - 2px),
            rgba(220, 239, 249, 0.82) 25%
        ),
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent calc(33.333% - 2px),
            rgba(220, 239, 249, 0.82) calc(33.333% - 2px),
            rgba(220, 239, 249, 0.82) 33.333%
        ),
        linear-gradient(
            145deg,
            #0b2f56 0%,
            #164e7d 48%,
            #0b355f 100%
        );

    box-shadow:
        0 34px 55px rgba(7, 38, 68, 0.32),
        inset 0 0 32px rgba(97, 198, 246, 0.25),
        inset 0 0 0 2px rgba(255, 255, 255, 0.10);
}

/* По-ясни и четливи текстове */
.hero-text,
.service-card p,
.faq-list p {
    color: #3d5367;
}

.hero-text {
    font-weight: 500;
}

.energy-card span {
    color: #41596e;
}

.section-kicker,
.hero-kicker {
    color: #117542;
}

/* Малко повече характер на картите */
.service-card,
.energy-card,
.contact-card,
.faq-list details {
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #bdd8c9;
    box-shadow: 0 18px 38px rgba(13, 47, 72, 0.11);
}

.energy-card:hover {
    transform: translateY(-3px);
}

/* По-компактен езиков бутон */
.language-switch {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 12px;
}

.header-cta {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .hero-visual::after {
        width: 350px;
    }
}

@media (max-width: 600px) {
    .language-switch {
        min-width: 36px;
        height: 36px;
        margin-left: auto;
    }

    .hero-visual::after {
        width: 300px;
    }

    .service-card:hover,
    .energy-card:hover {
        transform: none;
    }
}

/* FINAL_VISUAL_POLISH_END */

/* MOBILE_MENU_START */

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid #cbd8df;
    border-radius: 9px;
    background: #ffffff;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    border-radius: 2px;
    background: #0b2545;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.mobile-menu-button.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
    .mobile-menu-button {
        display: block;
        margin-left: auto;
    }

    .header-cta {
        margin-left: 0;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        display: none;
        padding: 14px 18px 20px;
        border-bottom: 1px solid #dce5eb;
        background: #ffffff;
        box-shadow: 0 15px 30px rgba(11, 37, 69, 0.12);
    }

    .main-nav.is-open {
        display: grid;
        gap: 6px;
    }

    .main-nav a {
        display: block;
        padding: 13px 14px;
        border-radius: 9px;
    }

    .main-nav a:hover {
        background: #eef8f3;
        color: #116b3d;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }
}

@media (max-width: 600px) {
    .header-inner {
        gap: 10px;
    }

    .language-switch {
        margin-left: 0;
    }

    .mobile-menu-button {
        margin-left: auto;
    }
}

/* MOBILE_MENU_END */


/* Clickable battery cards */
.energy-card-clickable,
.service-card-clickable {
    cursor: pointer;
}

.energy-card-clickable:hover,
.service-card-clickable:hover {
    transform: translateY(-4px);
}

/* COMMERCIAL_STORAGE_START */

.commercial-storage-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(37, 99, 235, 0.10),
            transparent 34%
        ),
        linear-gradient(180deg, #f3faf6 0%, #ffffff 100%);
}

.commercial-storage-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        #15803d 0%,
        #22c55e 55%,
        #2563eb 100%
    );
}

.commercial-storage-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 48px;
    align-items: end;
    margin-bottom: 42px;
}

.commercial-storage-heading h2 {
    max-width: 760px;
    margin-bottom: 0;
}

.commercial-storage-intro {
    margin: 0;
    color: #526775;
    font-size: 1.05rem;
    line-height: 1.8;
}

.commercial-storage-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.commercial-storage-card {
    position: relative;
    min-width: 0;
    padding: 28px 24px;
    border: 1px solid #dbe7e1;
    border-top: 4px solid #15803d;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(11, 37, 69, 0.07);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.commercial-storage-card:hover {
    transform: translateY(-6px);
    border-color: #9acdb1;
    box-shadow: 0 22px 44px rgba(11, 37, 69, 0.13);
}

.commercial-storage-card-featured {
    border-top-color: #2563eb;
    background:
        linear-gradient(
            145deg,
            rgba(239, 246, 255, 0.94),
            rgba(255, 255, 255, 0.98)
        );
}

.commercial-storage-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    place-items: center;
    border-radius: 14px;
    background: #e9f7ef;
    font-size: 25px;
}

.commercial-storage-card-featured .commercial-storage-icon {
    background: #e7f0ff;
}

.commercial-storage-label {
    margin-bottom: 9px;
    color: #15803d;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.commercial-storage-card-featured .commercial-storage-label {
    color: #2563eb;
}

.commercial-storage-card h3 {
    margin: 0 0 13px;
    color: #0b2545;
    font-size: 1.24rem;
}

.commercial-storage-card p {
    margin: 0 0 18px;
    color: #596d78;
    line-height: 1.7;
}

.commercial-storage-card ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.commercial-storage-card li {
    position: relative;
    padding-left: 22px;
    color: #294253;
    font-size: 0.94rem;
    line-height: 1.5;
}

.commercial-storage-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #15803d;
    font-weight: 800;
}

.commercial-storage-cta {
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    padding: 25px 28px;
    border: 1px solid #cfe5d8;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(11, 37, 69, 0.06);
}

.commercial-storage-cta div {
    display: grid;
    gap: 6px;
}

.commercial-storage-cta strong {
    color: #0b2545;
    font-size: 1.05rem;
}

.commercial-storage-cta span {
    color: #617580;
    line-height: 1.6;
}

.commercial-storage-cta .button {
    flex: 0 0 auto;
}

.commercial-partners {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #dce8e2;
}

.commercial-partners-title {
    color: #617580;
    font-size: 0.92rem;
    font-weight: 600;
}

.commercial-partner-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.commercial-partner-list span {
    padding: 9px 16px;
    border: 1px solid #d4e2dc;
    border-radius: 999px;
    background: #ffffff;
    color: #0b2545;
    font-weight: 800;
    letter-spacing: 0.03em;
}

@media (max-width: 1100px) {
    .commercial-storage-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .commercial-storage-heading {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 30px;
    }

    .commercial-storage-grid {
        grid-template-columns: 1fr;
    }

    .commercial-storage-card {
        padding: 24px 21px;
    }

    .commercial-storage-cta {
        align-items: stretch;
        flex-direction: column;
        padding: 22px;
    }

    .commercial-storage-cta .button {
        width: 100%;
        text-align: center;
    }

    .commercial-partners {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .commercial-storage-card {
        transition: none;
    }
}

/* COMMERCIAL_STORAGE_END */
