/* Основни стилове, адаптивен дизайн и компоненти за сайта за електро услуги. */

:root {
    --navy: #10263c;
    --navy-deep: #081827;
    --blue: #1f79bc;
    --blue-light: #e9f4fc;
    --yellow: #f5b400;
    --ink: #1e2b36;
    --muted: #64717d;
    --line: #dce5ec;
    --soft: #f5f8fb;
    --white: #ffffff;
    --shadow: 0 14px 34px rgba(16, 38, 60, 0.09);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

body.no-scroll {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--navy);
    line-height: 1.14;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 4.7rem);
    letter-spacing: -0.045em;
}

h2 {
    font-size: clamp(1.8rem, 3.4vw, 3rem);
    letter-spacing: -0.035em;
}

h3 {
    font-size: 1.25rem;
}

.content-wrap {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
}

.full-bleed {
    width: 100%;
}

.eyebrow {
    margin-bottom: 13px;
    color: var(--blue);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 23px;
    border: 2px solid transparent;
    border-radius: 3px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: var(--navy-deep);
    background: var(--yellow);
}

.button-primary:hover {
    background: #ffc21f;
}

.button-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.75);
}

.button-outline:hover {
    background: var(--white);
    color: var(--navy);
}

.button-light {
    color: var(--navy);
    background: var(--white);
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 14px rgba(8, 24, 39, 0.07);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1280px, calc(100% - 40px));
    min-height: 78px;
    margin-inline: auto;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--navy);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    white-space: nowrap;
}

.brand strong {
    color: var(--blue);
}

.brand-mark {
    display: grid;
    width: 31px;
    height: 37px;
    place-items: center;
    color: var(--navy);
    background: var(--yellow);
    clip-path: polygon(45% 0, 100% 0, 64% 40%, 100% 40%, 16% 100%, 38% 53%, 0 53%);
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.main-nav a {
    position: relative;
    color: #3e4d58;
    font-size: 0.92rem;
    font-weight: 700;
}

.main-nav a::after {
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 2px;
    content: '';
    background: var(--yellow);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current='page'] {
    color: var(--navy);
}

.main-nav a:hover::after,
.main-nav a[aria-current='page']::after {
    transform: scaleX(1);
}

.header-phone {
    padding: 9px 13px;
    color: var(--navy);
    background: #fff7dd;
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
}

.header-phone span {
    color: var(--blue);
}

.menu-toggle {
    display: none;
    padding: 9px;
    border: 0;
    background: transparent;
}

.menu-toggle span:not(.sr-only) {
    display: block;
    width: 27px;
    height: 3px;
    margin: 5px;
    background: var(--navy);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero {
    display: grid;
    min-height: 640px;
    align-items: center;
    color: var(--white);
    background: linear-gradient(90deg, rgba(8, 24, 39, 0.92) 0%, rgba(8, 24, 39, 0.74) 44%, rgba(8, 24, 39, 0.18) 100%), url('../images/hero-elektrouslugi.jpg') center / cover no-repeat;
}

.hero-content {
    padding-top: 96px;
    padding-bottom: 96px;
}

.hero h1 {
    max-width: 790px;
    margin-bottom: 24px;
    color: var(--white);
}

.hero .eyebrow {
    color: var(--yellow);
}

.hero-text {
    max-width: 650px;
    margin-bottom: 33px;
    font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.trust-strip {
    color: var(--white);
    background: var(--navy);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-block: 21px;
}

.trust-grid p {
    margin: 0;
    font-weight: 700;
    text-align: center;
}

.trust-grid span {
    margin-right: 8px;
    color: var(--yellow);
}

.section {
    padding-block: 96px;
}

.section-heading {
    max-width: 745px;
    margin-bottom: 46px;
}

.section-heading h2 {
    margin-bottom: 17px;
}

.section-heading > p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.service-card {
    padding: 32px 27px 29px;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 7px 24px rgba(16, 38, 60, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.service-card h3 {
    margin: 18px 0 13px;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.service-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--navy);
    background: #fff1bf;
    font-size: 1.75rem;
    font-weight: 800;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 620px;
    background: var(--soft);
}

.split-image {
    min-height: 420px;
    background: url('../images/elektrichesko-tablo.jpg') center / cover no-repeat;
}

.split-content {
    max-width: 680px;
    padding: 88px max(42px, calc((100vw - 1160px) / 2));
    padding-right: 8vw;
}

.split-content h2 {
    margin-bottom: 20px;
}

.split-content > p:not(.eyebrow) {
    color: var(--muted);
}

.check-list {
    padding: 0;
    margin: 25px 0 27px;
    list-style: none;
}

.check-list li {
    position: relative;
    padding: 8px 0 8px 27px;
    font-weight: 700;
}

.check-list li::before {
    position: absolute;
    left: 0;
    color: var(--blue);
    content: '✓';
}

.text-link {
    color: var(--blue);
    font-weight: 800;
}

.text-link span {
    margin-left: 5px;
    font-size: 1.2rem;
}

.center-heading {
    margin-inline: auto;
    text-align: center;
}

.process-section {
    padding-bottom: 105px;
}

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

.process-grid article {
    position: relative;
}

.process-grid article:not(:last-child)::after {
    position: absolute;
    top: 23px;
    right: -34px;
    width: 30px;
    height: 1px;
    content: '';
    background: var(--line);
}

.process-grid span,
.values-grid span {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--yellow);
    font-size: 1.8rem;
    font-weight: 900;
}

.process-grid h3 {
    margin-bottom: 10px;
}

.process-grid p {
    margin: 0;
    color: var(--muted);
}

.cta {
    color: var(--white);
    background: var(--blue);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 236px;
    padding-block: 48px;
}

.cta .eyebrow {
    color: #bfe4ff;
}

.cta h2 {
    margin: 0;
    color: var(--white);
}

.page-hero {
    padding-block: 86px;
    background: linear-gradient(110deg, var(--navy-deep), var(--navy));
}

.page-hero h1,
.page-hero p:not(.eyebrow) {
    max-width: 760px;
    color: var(--white);
}

.page-hero p:not(.eyebrow) {
    margin-bottom: 0;
    font-size: 1.08rem;
    opacity: 0.85;
}

.page-hero .eyebrow {
    color: var(--yellow);
}

.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 70px;
    align-items: start;
}

.about-grid h2 {
    margin-bottom: 20px;
}

.about-grid p {
    color: var(--muted);
}

.about-note,
.contact-card {
    padding: 40px;
    color: var(--white);
    background: var(--navy);
    box-shadow: var(--shadow);
}

.about-note span {
    color: var(--yellow);
    font-size: 3.2rem;
    font-weight: 900;
}

.about-note h2,
.about-note p {
    color: var(--white);
}

.about-note p {
    margin-bottom: 0;
    opacity: 0.8;
}

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

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 52px;
}

.values-grid h2 {
    margin-bottom: 12px;
    font-size: 1.45rem;
}

.values-grid p {
    margin: 0;
    color: var(--muted);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: var(--navy);
    color: var(--white);
    text-align: left;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.gallery-item:hover img {
    opacity: 0.72;
    transform: scale(1.045);
}

.gallery-item span {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 32px 24px 21px;
    background: linear-gradient(transparent, rgba(8, 24, 39, 0.88));
    font-weight: 800;
}

.lightbox {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(1, 11, 20, 0.91);
}

.lightbox.is-open {
    display: flex;
}

.lightbox figure {
    max-width: min(1050px, 100%);
    margin: 0;
}

.lightbox img {
    max-height: calc(100vh - 110px);
    object-fit: contain;
}

.lightbox figcaption {
    padding-top: 13px;
    color: var(--white);
    font-weight: 700;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 17px;
    right: 24px;
    width: 46px;
    height: 46px;
    border: 0;
    color: var(--white);
    background: transparent;
    font-size: 2.6rem;
    line-height: 1;
}

.contact-card .eyebrow {
    color: var(--yellow);
}

.contact-phone {
    display: block;
    margin-bottom: 16px;
    color: var(--white);
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.contact-card p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.78);
}

.contact-form {
    padding: 37px;
    border: 1px solid var(--line);
    background: var(--white);
}

.contact-form h2 {
    margin-bottom: 9px;
}

.contact-form > p {
    color: var(--muted);
    font-size: 0.92rem;
}

.contact-form label {
    display: block;
    margin-top: 17px;
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 12px;
    border: 1px solid #bfccd5;
    border-radius: 2px;
    color: var(--ink);
    background: var(--white);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .button {
    margin-top: 22px;
}

.site-footer {
    width: 100%;
    color: rgba(255, 255, 255, 0.8);
    background: var(--navy-deep);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 0.8fr;
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
    gap: 54px;
    padding-block: 63px 48px;
}

.footer-brand {
    color: var(--white);
}

.footer-brand strong {
    color: var(--yellow);
}

.site-footer p {
    max-width: 350px;
    margin-top: 15px;
    margin-bottom: 0;
    font-size: 0.93rem;
}

.site-footer h2 {
    margin-bottom: 17px;
    color: var(--white);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--yellow);
}

.footer-contact a {
    display: block;
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 800;
}

.footer-contact p {
    margin-top: 8px;
}

.footer-bottom {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
    padding-block: 19px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
}

.floating-call {
    position: fixed;
    z-index: 19;
    right: 22px;
    bottom: 22px;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 3px solid var(--white);
    border-radius: 50%;
    color: var(--navy);
    background: var(--yellow);
    box-shadow: 0 7px 21px rgba(8, 24, 39, 0.25);
    font-size: 1.45rem;
    transition: transform 0.2s ease;
}

.floating-call:hover {
    transform: scale(1.08);
}

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

    .main-nav {
        gap: 15px;
    }

    .header-phone {
        font-size: 0.78rem;
    }

    .split-content {
        padding-right: 40px;
    }

    .about-grid,
    .contact-grid {
        gap: 38px;
    }
}

@media (max-width: 760px) {
    .content-wrap,
    .header-inner,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 32px, 1160px);
    }

    .header-inner {
        min-height: 68px;
    }

    .brand {
        font-size: 0.88rem;
    }

    .brand-mark {
        width: 25px;
        height: 31px;
        font-size: 1.45rem;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav {
        position: absolute;
        top: 68px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 16px 14px;
        background: var(--white);
        box-shadow: 0 9px 16px rgba(8, 24, 39, 0.08);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 10px 0;
    }

    .main-nav a::after {
        display: none;
    }

    .header-phone {
        display: none;
    }

    .hero {
        min-height: 585px;
        background-position: 58% center;
    }

    .hero-content {
        padding-top: 77px;
        padding-bottom: 77px;
    }

    .trust-grid,
    .services-grid,
    .process-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid {
        gap: 9px;
        padding-block: 17px;
    }

    .section {
        padding-block: 66px;
    }

    .section-heading {
        margin-bottom: 33px;
    }

    .services-grid {
        gap: 14px;
    }

    .split-section {
        grid-template-columns: 1fr;
    }

    .split-image {
        min-height: 300px;
    }

    .split-content {
        padding: 61px 16px;
    }

    .process-grid {
        gap: 28px;
    }

    .process-grid article:not(:last-child)::after {
        display: none;
    }

    .cta-inner {
        display: block;
        min-height: 0;
        padding-block: 55px;
    }

    .cta .button {
        margin-top: 23px;
    }

    .page-hero {
        padding-block: 65px;
    }

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

    .about-grid,
    .contact-grid {
        gap: 27px;
    }

    .values-grid {
        gap: 32px;
    }

    .gallery-grid {
        gap: 15px;
    }

    .contact-card,
    .contact-form {
        padding: 29px 23px;
    }

    .footer-inner {
        gap: 31px;
        padding-block: 47px 36px;
    }

    .floating-call {
        right: 15px;
        bottom: 15px;
        width: 53px;
        height: 53px;
    }
}
