:root {
    --brand-blue: #123b78;
    --brand-gold: #d9a92f;
    --ink: #172033;
    --muted: #667085;
    --soft: #f5f7fb;
}

body {
    color: var(--ink);
    display: flex;
    flex-direction: column;
    font-family: Raleway, Arial, sans-serif;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

.top-strip {
    background: var(--brand-blue);
    color: #fff;
}

.navbar-brand img {
    max-width: 78px;
    object-fit: contain;
}

.navbar-brand span {
    white-space: nowrap;
}

.navbar-nav {
    align-items: center;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    padding-left: 7px !important;
    padding-right: 7px !important;
    white-space: nowrap;
}

.nav-link.active,
.nav-link:hover {
    color: var(--brand-blue) !important;
}

.dropdown-menu {
    border-radius: 0;
    border: 0;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .12);
    font-size: 14px;
    margin-top: 0;
}

.dropdown-item {
    font-weight: 600;
    padding: 9px 18px;
}

.dropdown-item:hover {
    background: #f3f5f8;
    color: var(--brand-blue);
}

@media (min-width: 1200px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
    }
}

.flag-link {
    align-items: center;
    display: inline-flex;
    height: 18px;
    line-height: 1;
    opacity: .72;
    padding: 1px;
}

.flag-link img {
    border: 1px solid #d0d5dd;
    display: block;
    height: 13px;
    width: 20px;
}

.flag-link.active,
.flag-link:hover {
    opacity: 1;
}

.lang-switcher {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-left: 12px;
    white-space: nowrap;
}

.hero {
    min-height: 620px;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
}

.home-section {
    padding: 42px 0;
}

.home-intro {
    padding-top: 56px;
}

.home-intro p,
.home-section p {
    color: #111;
    font-size: 16px;
    line-height: 1.72;
}

.home-intro p {
    margin-left: auto;
    margin-right: auto;
    max-width: 1080px;
    text-align: center;
}

.home-split {
    align-items: center;
    display: grid;
    gap: 44px;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
}

.home-split img {
    border-radius: 2px;
    height: auto;
    width: 100%;
}

.home-products {
    text-align: center;
}

.home-products h2 {
    color: #111;
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 18px;
}

.home-products > .container > p {
    margin: 0 auto 30px;
    max-width: 980px;
}

.home-product-grid {
    display: grid;
    gap: 18px 28px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 960px;
}

.home-product-grid a {
    background: #81d742;
    box-shadow: 0 2px 16px rgba(0,0,0,.1);
    color: #fff;
    display: block;
    font-weight: 700;
    min-height: 54px;
    padding: 15px 18px;
    text-decoration: none;
}

.home-product-grid a:hover {
    background: #70c934;
}

.home-partners {
    text-align: center;
}

.home-partners img {
    height: auto;
    max-height: 180px;
    max-width: 100%;
    object-fit: contain;
}

.home-contact-line {
    color: #111;
    font-size: 15px;
    line-height: 1.75;
    margin-top: 38px;
    text-align: center;
}

.hero-content {
    max-width: 720px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 800;
    letter-spacing: 0;
}

.hero p {
    font-size: clamp(18px, 2.2vw, 26px);
    margin: 18px 0 30px;
}

.btn-brand {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    color: #111827;
    font-weight: 700;
}

.btn-brand:hover {
    background: #c7971d;
    border-color: #c7971d;
}

.section {
    padding: 72px 0;
}

.section-soft {
    background: var(--soft);
}

.section-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-head a {
    color: var(--brand-blue);
    font-weight: 700;
}

.info-card,
.news-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.info-card {
    padding: 26px;
}

.info-card:hover,
.news-card:hover {
    box-shadow: 0 12px 30px rgba(16, 24, 40, .09);
    transform: translateY(-2px);
}

.info-card h3,
.news-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.news-card img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    width: 100%;
}

.news-card a {
    color: var(--ink);
    text-decoration: none;
}

.news-card time,
.article-wrap time {
    color: var(--muted);
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}

.page-title {
    background: #fff;
    color: var(--ink);
    padding: 46px 0 0;
}

.page-title h1 {
    font-size: 0;
    margin: 0;
}

.content-text {
    font-size: 18px;
    line-height: 1.8;
}

.page-copy {
    color: #000;
    max-width: 1100px;
}

.old-theme-content h1 {
    color: #000;
    font-size: 34px;
    font-weight: 800;
    margin: 0 0 28px;
    text-align: center;
    text-transform: uppercase;
}

.old-theme-content h3 {
    color: #111;
    font-size: 24px;
    font-weight: 700;
    margin: 26px 0 12px;
}

.old-theme-content h3 span {
    font-size: 18px;
    font-weight: 500;
}

.old-theme-content p {
    color: #111;
    margin-bottom: 18px;
}

.old-text-image {
    align-items: center;
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
    margin-top: 34px;
}

.old-product-layout {
    align-items: center;
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
}

.old-product-layout img {
    border-radius: 2px;
    width: 100%;
}

.old-product-layout ul {
    margin-bottom: 18px;
}

.power-plant-theme {
    max-width: 1180px;
}

.power-intro {
    color: #333;
    font-size: 17px;
    line-height: 1.55;
    margin: 0 auto 44px;
    max-width: 1110px;
    text-align: center;
}

.power-grid {
    display: grid;
    gap: 48px 40px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.power-card {
    align-items: center;
    background-position: center;
    background-size: cover;
    display: flex;
    height: 220px;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
    position: relative;
}

.power-card::before {
    background: rgba(0, 0, 0, .38);
    content: "";
    inset: 0;
    position: absolute;
    transition: background .2s ease;
}

.power-card::after {
    border: 1px solid rgba(255, 255, 255, .45);
    content: "";
    inset: 10px;
    position: absolute;
}

.power-card:hover::before {
    background: rgba(0, 0, 0, .55);
}

.power-card span {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.45;
    position: relative;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,.45);
    text-transform: uppercase;
    z-index: 1;
}

.old-text-image img {
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .12);
    height: auto;
    width: 100%;
}

.old-button-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 28px 0;
}

.old-button-grid span {
    background: #81d742;
    border-radius: 2px;
    box-shadow: 0 2px 16px rgba(0,0,0,.1);
    color: #fff;
    display: block;
    font-weight: 700;
    min-height: 54px;
    padding: 15px 18px;
    text-align: center;
}

.catalog-link {
    background: #81d742;
    color: #fff;
    display: inline-block;
    font-weight: 700;
    padding: 14px 28px;
    text-decoration: none;
}

.catalog-link:hover {
    color: #fff;
    background: #6fc934;
}

.contact-theme {
    max-width: 1000px;
}

.theme-contact-form .form-control {
    border-color: #ddd;
    border-radius: 0;
    min-height: 44px;
}

.theme-contact-form textarea.form-control {
    min-height: 180px;
}

.donations-theme {
    max-width: 1160px;
}

.donation-intro {
    color: #444;
    font-size: 16px;
    line-height: 1.55;
    margin: 0 auto 30px;
    max-width: 1100px;
    text-align: center;
}

.donation-heading {
    color: #333;
    font-size: 16px;
    margin-bottom: 46px;
    text-align: center;
}

.donation-grid {
    display: grid;
    gap: 42px 38px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.donation-grid figure {
    margin: 0;
    text-align: center;
}

.donation-grid img {
    height: 324px;
    object-fit: cover;
    width: 100%;
}

.donation-grid figcaption {
    color: #6c6c6c;
    font-size: 16px;
    line-height: 1.35;
    margin-top: 4px;
}

.certificates-theme {
    max-width: 1120px;
}

.cert-license-lines {
    margin: 0 auto 160px;
    max-width: 1060px;
    text-align: center;
}

.cert-license-lines h2 {
    color: #1a1a1a;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.25;
    margin: 0 0 34px;
}

.cert-license-lines strong {
    font-weight: 800;
}

.certificate-image-wrap {
    margin: 0 auto 54px;
    max-width: 696px;
    text-align: center;
}

.certificate-image-wrap img {
    height: auto;
    width: 100%;
}

.certificate-copy {
    color: #111;
}

.certificate-copy h2 {
    font-size: 27px;
    font-weight: 800;
    line-height: 1.35;
    margin: 32px 0 22px;
}

.certificate-copy h2 span {
    display: block;
    font-size: 30px;
    letter-spacing: 1px;
}

.certificate-copy p,
.certificate-copy li {
    font-size: 16px;
    line-height: 1.7;
}

.certificate-copy ul {
    margin-bottom: 34px;
    padding-left: 20px;
}

.gallery-img {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    object-fit: cover;
    width: 100%;
}

.article-wrap {
    max-width: 920px;
}

.article-img {
    border-radius: 8px;
    margin-bottom: 24px;
    max-height: 520px;
    object-fit: cover;
    width: 100%;
}

.theme-footer {
    flex-shrink: 0;
    margin-top: 48px;
}

.theme-sub-footer {
    background: #111;
    color: #fff;
    font-size: 12px;
}

.footer-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 48px;
}

.footer-menu {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.footer-menu a {
    color: #fff;
    font-size: 12px;
    line-height: 48px;
    padding-right: 22px;
    text-decoration: none;
}

.footer-menu a:hover {
    color: #d9a92f;
}

.footer-copy {
    color: #fff;
    line-height: 48px;
    white-space: nowrap;
}

.whatsapp-float {
    align-items: center;
    background: #25d366;
    border-radius: 50%;
    bottom: 22px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
    color: #fff;
    display: flex;
    font-size: 28px;
    height: 58px;
    justify-content: center;
    position: fixed;
    right: 22px;
    text-decoration: none;
    width: 58px;
    z-index: 999;
}

@media (max-width: 767px) {
    .hero {
        min-height: 520px;
    }

    .section {
        padding: 46px 0;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .navbar-brand img {
        max-width: 58px;
    }

    .navbar-brand span {
        font-size: 18px;
    }

    .navbar-nav {
        align-items: flex-start;
        padding-top: 12px;
    }

    .nav-link {
        padding-left: 0 !important;
        white-space: normal;
    }

    .lang-switcher {
        margin-left: 0;
        padding: 8px 0;
    }

    .home-section {
        padding: 34px 0;
    }

    .home-split,
    .home-product-grid {
        grid-template-columns: 1fr;
    }

    .old-text-image {
        grid-template-columns: 1fr;
    }

    .old-product-layout,
    .power-grid,
    .donation-grid {
        grid-template-columns: 1fr;
    }

    .donation-grid img {
        height: auto;
    }

    .cert-license-lines {
        margin-bottom: 64px;
    }

    .cert-license-lines h2 {
        font-size: 22px;
    }

    .power-card {
        height: 190px;
    }

    .old-button-grid {
        grid-template-columns: 1fr;
    }

    .footer-row {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px 0;
    }

    .footer-menu a,
    .footer-copy {
        line-height: 28px;
    }

    .footer-copy {
        white-space: normal;
    }
}
