/* =========================================================
   SOLARS — СТОРІНКА «ДЛЯ ДОМУ»
   Підключається після css/style.css
   ========================================================= */

:root {
    --home-dark: #01050A;
    --home-dark-soft: #07110A;
    --home-green: #316E3D;
    --home-green-dark: #24552E;
    --home-gold: #F2B455;
    --home-text: #121713;
    --home-muted: #667069;
    --home-line: #E1E6E2;
    --home-light: #F5F7F5;
    --home-white: #FFFFFF;
}

.home-page {
    background: var(--home-white);
    color: var(--home-text);
}

.home-page main {
    overflow: hidden;
}

.home-page .navbar-nav .nav-link {
    white-space: nowrap;
}

.home-section,
.home-hero {
    scroll-margin-top: 90px;
}

.home-section {
    position: relative;
    padding: 110px 0;
}

.home-section-heading {
    max-width: 820px;
    margin-bottom: 55px;
}

.home-section-kicker,
.home-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--home-green);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 2px;
}

.home-section-kicker span,
.home-eyebrow span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 24px;
    border: 1px solid rgba(49, 110, 61, .35);
    color: var(--home-green);
    font-size: 11px;
    letter-spacing: 0;
}

.home-section-heading h2,
.home-why-intro h2,
.home-calculation-copy h2 {
    margin: 0;
    color: var(--home-dark);
    font-family: "Roboto", sans-serif;
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -1.2px;
}

.home-section-heading > p,
.home-why-intro > p,
.home-calculation-copy > p {
    max-width: 680px;
    margin: 20px 0 0;
    color: var(--home-muted);
    font-size: 16px;
    line-height: 1.75;
}

/* HERO */

.home-hero {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: stretch;
    background: var(--home-dark);
    color: var(--home-white);
    overflow: hidden;
}

.home-hero-image,
.home-hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-hero-image {
    object-fit: cover;
    object-position: center;
}

.home-hero-overlay {
    background:
        linear-gradient(90deg, rgba(1, 5, 10, .96) 0%, rgba(1, 5, 10, .84) 43%, rgba(1, 5, 10, .38) 76%, rgba(1, 5, 10, .18) 100%),
        linear-gradient(0deg, rgba(1, 5, 10, .42), rgba(1, 5, 10, 0) 48%);
}

.home-hero::after {
    content: "";
    position: absolute;
    right: -230px;
    top: -330px;
    width: 700px;
    height: 700px;
    border: 1px solid rgba(242, 180, 85, .22);
    border-radius: 50%;
    pointer-events: none;
}

.home-hero-inner {
    position: relative;
    z-index: 2;
    min-height: 760px;
    display: flex;
    align-items: center;
    padding-top: 76px;
    padding-bottom: 76px;
}

.home-hero-content {
    max-width: 830px;
}

.home-hero .solars-context-switcher {
    margin-bottom: 30px;
}

.home-eyebrow {
    color: var(--home-gold);
}

.home-eyebrow span {
    border-color: rgba(242, 180, 85, .42);
    color: var(--home-gold);
}

.home-hero h1 {
    margin: 0;
    color: var(--home-white);
    font-family: "Roboto", sans-serif;
    font-size: clamp(45px, 6vw, 76px);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -2px;
}

.home-hero h1 strong {
    color: var(--home-green);
    font-weight: 900;
}

.home-hero-content > p {
    max-width: 700px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, .76);
    font-size: 18px;
    line-height: 1.7;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.home-btn {
    min-height: 56px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 1px solid transparent;
    color: var(--home-white);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .3px;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.home-btn-primary {
    background: var(--home-green);
    border-color: var(--home-green);
}

.home-btn-primary:hover {
    background: var(--home-gold);
    border-color: var(--home-gold);
    color: var(--home-dark);
    transform: translateY(-2px);
}

.home-btn-outline {
    border-color: rgba(255, 255, 255, .34);
    background: rgba(1, 5, 10, .20);
}

.home-btn-outline:hover {
    border-color: var(--home-white);
    background: var(--home-white);
    color: var(--home-dark);
}

.home-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 30px;
    margin-top: 35px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .13);
}

.home-hero-points span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, .67);
    font-size: 14px;
}

.home-hero-points i {
    color: var(--home-gold);
    font-size: 11px;
}

/* GOALS */

.home-goals {
    background: var(--home-white);
}

.home-goals-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--home-line);
    background: var(--home-line);
}

.home-goal-card {
    position: relative;
    min-height: 390px;
    padding: 38px;
    display: flex;
    flex-direction: column;
    background: var(--home-white);
    transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.home-goal-card:hover {
    z-index: 2;
    background: var(--home-light);
    box-shadow: 0 18px 45px rgba(1, 5, 10, .08);
    transform: translateY(-3px);
}

.home-card-number {
    position: absolute;
    top: 30px;
    right: 34px;
    color: #B5BCB7;
    font-size: 13px;
    font-weight: 800;
}

.home-goal-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(49, 110, 61, .10);
    color: var(--home-green);
    font-size: 18px;
}

.home-goal-card h3 {
    max-width: 470px;
    margin: 0 0 15px;
    color: var(--home-dark);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
}

.home-goal-card p {
    max-width: 530px;
    margin: 0 0 25px;
    color: var(--home-muted);
    font-size: 15px;
    line-height: 1.75;
}

.home-goal-system {
    margin-top: auto;
    padding: 15px 0;
    border-top: 1px solid var(--home-line);
    color: var(--home-green);
    font-size: 14px;
    font-weight: 800;
}

.home-text-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-top: 8px;
    color: var(--home-dark);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.home-text-link i {
    color: var(--home-gold);
    font-size: 11px;
    transition: transform .2s ease;
}

.home-text-link:hover {
    color: var(--home-green);
}

.home-text-link:hover i {
    transform: translateX(4px);
}

/* SOLUTIONS */

.home-solutions {
    background: var(--home-dark);
    color: var(--home-white);
    overflow: hidden;
}

.home-solutions::before,
.home-solutions::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.home-solutions::before {
    width: 650px;
    height: 650px;
    right: -330px;
    top: -300px;
    border: 1px solid rgba(49, 110, 61, .22);
}

.home-solutions::after {
    width: 420px;
    height: 420px;
    right: -210px;
    top: -190px;
    border: 1px solid rgba(242, 180, 85, .11);
}

.home-solutions .container {
    position: relative;
    z-index: 2;
}

.home-section-heading-light h2 {
    color: var(--home-white);
}

.home-section-heading-light > p {
    color: rgba(255, 255, 255, .60);
}

.home-section-heading-light .home-section-kicker {
    color: var(--home-gold);
}

.home-packages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.home-package-card {
    position: relative;
    padding: 36px 30px 30px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, .13);
    background: #07100A;
}

.home-package-featured {
    border-color: var(--home-green);
    background: #09150D;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}

.home-package-badge {
    position: absolute;
    left: -1px;
    top: -31px;
    padding: 8px 14px;
    background: var(--home-green);
    color: var(--home-white);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .7px;
}

.home-package-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.home-package-label {
    color: var(--home-gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
}

.home-package-index {
    color: rgba(255, 255, 255, .26);
    font-size: 13px;
    font-weight: 800;
}

.home-package-card h3 {
    margin: 0 0 14px;
    color: var(--home-white);
    font-size: 25px;
    font-weight: 800;
    line-height: 1.25;
}

.home-package-card > p {
    min-height: 78px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, .58);
    font-size: 15px;
    line-height: 1.7;
}

.home-package-needs {
    min-height: 105px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .10);
    border-bottom: 1px solid rgba(255, 255, 255, .10);
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
    line-height: 1.6;
}

.home-package-needs span {
    display: block;
    margin-bottom: 6px;
    color: var(--home-white);
    font-size: 13px;
    font-weight: 800;
}

.home-package-specs {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.home-package-specs li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.home-package-specs span {
    color: rgba(255, 255, 255, .43);
    font-size: 13px;
}

.home-package-specs strong {
    color: var(--home-white);
    font-size: 16px;
}

.home-package-price {
    margin-top: auto;
    padding: 24px 0 22px;
}

.home-package-price span {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, .42);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home-package-price strong {
    display: block;
    color: var(--home-gold);
    font-size: 15px;
    line-height: 1.45;
}

.home-package-btn {
    min-height: 54px;
    padding: 12px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    color: var(--home-white);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    text-decoration: none;
}

.home-package-btn:hover {
    border-color: var(--home-green);
    background: var(--home-green);
    color: var(--home-white);
}

.home-package-btn i {
    color: var(--home-gold);
    font-size: 11px;
}

.home-package-btn:hover i {
    color: var(--home-white);
}

.home-solutions-cta {
    margin-top: 28px;
    padding: 32px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    background: var(--home-white);
    color: var(--home-dark);
}

.home-solutions-cta > div {
    max-width: 690px;
}

.home-solutions-cta span {
    color: var(--home-green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.home-solutions-cta h3 {
    margin: 8px 0 5px;
    color: var(--home-dark);
    font-size: 25px;
    font-weight: 800;
}

.home-solutions-cta p {
    margin: 0;
    color: var(--home-muted);
    font-size: 14px;
}

/* WHY */

.home-why {
    background: var(--home-dark);
    color: var(--home-white);
}

.home-why-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 90px;
    align-items: start;
}

.home-why-intro {
    position: sticky;
    top: 125px;
}

.home-why-intro .home-section-kicker {
    color: var(--home-gold);
}

.home-why-intro h2 {
    color: var(--home-white);
}

.home-why-intro > p {
    color: rgba(255, 255, 255, .60);
}

.home-process-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, .13);
}

.home-process-list li {
    min-height: 72px;
    padding: 16px 4px;
    display: grid;
    grid-template-columns: 52px 1fr 30px;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.home-process-list span {
    color: rgba(255, 255, 255, .32);
    font-size: 12px;
    font-weight: 800;
}

.home-process-list strong {
    color: var(--home-white);
    font-size: 17px;
    font-weight: 700;
}

.home-process-list i {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(49, 110, 61, .18);
    color: var(--home-green);
    font-size: 11px;
}

/* CALCULATION FORM */

.home-calculation {
    background: var(--home-light);
}

.home-calculation-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 70px;
    align-items: start;
}

.home-calculation-copy {
    padding-top: 25px;
}

.home-form-card {
    position: relative;
    padding: 42px;
    border: 1px solid var(--home-line);
    background: var(--home-white);
    box-shadow: 0 24px 65px rgba(1, 5, 10, .10);
}

.home-form-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--home-green);
}

.home-form-heading {
    margin-bottom: 28px;
}

.home-form-heading > span {
    display: block;
    margin-bottom: 8px;
    color: var(--home-gold);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.6px;
}

.home-form-heading h3 {
    margin: 0 0 10px;
    color: var(--home-dark);
    font-size: 29px;
    font-weight: 900;
}

.home-form-heading p {
    margin: 0;
    color: var(--home-muted);
    font-size: 14px;
    line-height: 1.6;
}

.home-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.home-field {
    margin-bottom: 18px;
}

.home-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--home-dark);
    font-size: 13px;
    font-weight: 800;
}

.home-field input,
.home-field textarea,
.home-field select {
    width: 100%;
    display: block;
    border: 1px solid var(--home-line);
    border-radius: 0;
    outline: none;
    background: #F8FAF8;
    color: var(--home-dark);
    font: inherit;
    font-size: 15px;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.home-field input,
.home-field select {
    height: 50px;
    padding: 0 14px;
}

.home-field textarea {
    min-height: 118px;
    padding: 13px 14px;
    resize: vertical;
    line-height: 1.55;
}

.home-field input::placeholder,
.home-field textarea::placeholder {
    color: #959D97;
}

.home-field input:focus,
.home-field textarea:focus,
.home-field select:focus {
    border-color: var(--home-green);
    background: var(--home-white);
    box-shadow: 0 0 0 3px rgba(49, 110, 61, .09);
}

.home-form-submit {
    width: 100%;
    min-height: 56px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    background: var(--home-green);
    color: var(--home-white);
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.home-form-submit:hover:not(:disabled) {
    background: var(--home-gold);
    color: var(--home-dark);
    transform: translateY(-2px);
}

.home-form-submit:disabled {
    opacity: .66;
    cursor: wait;
}

.home-form-status {
    display: none;
    margin-top: 16px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.55;
}

.home-form-status.is-visible {
    display: block;
}

.home-form-status.is-success {
    border: 1px solid rgba(49, 110, 61, .35);
    background: rgba(49, 110, 61, .09);
    color: var(--home-green-dark);
}

.home-form-status.is-error {
    border: 1px solid rgba(176, 54, 54, .28);
    background: rgba(176, 54, 54, .07);
    color: #8B2F2F;
}

.home-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* RESPONSIVE */

@media (max-width: 1199.98px) {
    .home-packages {
        gap: 12px;
    }

    .home-package-card {
        padding: 34px 24px 26px;
    }

    .home-calculation-grid {
        gap: 45px;
    }
}

@media (max-width: 991.98px) {
    .home-section {
        padding: 85px 0;
    }

    .home-hero,
    .home-hero-inner {
        min-height: 700px;
    }

    .home-hero-overlay {
        background: linear-gradient(90deg, rgba(1, 5, 10, .94), rgba(1, 5, 10, .60));
    }

    .home-packages {
        grid-template-columns: 1fr;
    }

    .home-package-card > p,
    .home-package-needs {
        min-height: 0;
    }

    .home-package-featured {
        margin-top: 26px;
    }

    .home-why-grid,
    .home-calculation-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .home-why-intro {
        position: static;
    }

}

@media (max-width: 767.98px) {
    .home-section {
        padding: 72px 0;
    }

    .home-section-heading {
        margin-bottom: 38px;
    }

    .home-hero,
    .home-hero-inner {
        min-height: 650px;
    }

    .home-hero-image {
        object-position: 62% center;
    }

    .home-hero-overlay {
        background: linear-gradient(90deg, rgba(1, 5, 10, .96), rgba(1, 5, 10, .70));
    }

    .home-hero-inner {
        padding-top: 62px;
        padding-bottom: 62px;
    }

    .home-hero h1 {
        letter-spacing: -1px;
    }

    .home-hero-content > p {
        font-size: 16px;
    }

    .home-goals-grid {
        grid-template-columns: 1fr;
    }

    .home-goal-card {
        min-height: 0;
        padding: 30px 25px;
    }

    .home-solutions-cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 28px 24px;
    }

    .home-form-card {
        padding: 32px 24px;
    }
}

@media (max-width: 575.98px) {
    .home-section {
        padding: 62px 0;
    }

    .home-section-heading h2,
    .home-why-intro h2,
    .home-calculation-copy h2 {
        font-size: 33px;
        letter-spacing: -.6px;
    }

    .home-hero,
    .home-hero-inner {
        min-height: 690px;
    }

    .home-hero-image {
        object-position: 66% center;
    }

    .home-hero-overlay {
        background: linear-gradient(90deg, rgba(1, 5, 10, .96), rgba(1, 5, 10, .78));
    }

    .home-hero h1 {
        font-size: 42px;
    }

    .home-hero-actions,
    .home-hero-actions .home-btn,
    .home-solutions-cta .home-btn {
        width: 100%;
    }

    .home-btn {
        padding: 12px 16px;
        text-align: center;
    }

    .home-hero-points {
        flex-direction: column;
        gap: 12px;
    }

    .home-package-card {
        padding: 31px 21px 23px;
    }

    .home-package-badge {
        font-size: 10px;
    }

    .home-solutions-cta h3 {
        font-size: 22px;
    }

    .home-process-list li {
        grid-template-columns: 38px 1fr 28px;
        gap: 10px;
    }

    .home-process-list strong {
        font-size: 15px;
    }

    .home-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .home-form-card {
        padding: 28px 19px;
    }

    .home-form-heading h3 {
        font-size: 25px;
    }

}
