* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #1f2933;
    background: #f5f6f7;
}

a {
    color: inherit;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.site-header {
    background: #111820;
    color: #fff;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
}

.hero {
    min-height: 760px;
    background:
        linear-gradient(120deg, rgba(9, 17, 26, .94), rgba(9, 17, 26, .72)),
        url('../images/hero-machinery.jpg') center/cover no-repeat;
    color: #fff;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 50px;
    align-items: center;
}

.eyebrow,
.section-label {
    display: inline-block;
    color: #f5b642;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.02;
    margin: 0 0 24px;
    max-width: 900px;
}

.hero p {
    font-size: 20px;
    line-height: 1.7;
    max-width: 720px;
    color: #e8edf2;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    padding: 16px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
}

.btn-primary {
    background: #f5b642;
    color: #111820;
}

.btn-secondary {
    border: 1px solid rgba(255,255,255,.4);
    color: #fff;
}

.hero-card {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 28px;
    padding: 34px;
    backdrop-filter: blur(10px);
}

.hero-card h3 {
    font-size: 28px;
    margin: 0 0 12px;
}

.section {
    padding: 100px 0;
}

.two-col,
.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 60px;
    align-items: start;
}

.section h2 {
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.1;
    margin: 0 0 24px;
}

.section p {
    font-size: 18px;
    line-height: 1.8;
}

.about {
    background: #fff;
}

.section-head {
    max-width: 760px;
    margin-bottom: 40px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.service-card {
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(17, 24, 32, .08);
    border: 1px solid #edf0f2;
}

.service-card h3 {
    font-size: 24px;
    margin: 0 0 12px;
}

.service-card p {
    font-size: 16px;
    margin: 0;
}

.fleet {
    background: #111820;
    color: #fff;
}

.section-head.light h2 {
    color: #fff;
}

.fleet-list {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.fleet-list span {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    padding: 15px 22px;
    border-radius: 999px;
    font-weight: 800;
}

.contacts {
    background: #fff;
}

.contact-box {
    background: #f5f6f7;
    border-radius: 28px;
    padding: 34px;
    border: 1px solid #e5e9ec;
}

.contact-box p {
    margin: 0 0 14px;
}

.site-footer {
    background: #111820;
    color: #fff;
    padding: 32px 0;
    text-align: center;
}

@media (max-width: 900px) {
    .hero {
        min-height: auto;
        padding: 100px 0;
    }

    .hero-grid,
    .two-col,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        display: none;
    }
}

.hero-stats {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 46px;
}

.hero-stats div {
    border-left: 1px solid rgba(255,255,255,.25);
    padding-left: 22px;
}

.hero-stats strong {
    display: block;
    font-size: 34px;
    color: #f5b642;
    line-height: 1;
}

.hero-stats span {
    display: block;
    margin-top: 8px;
    color: #e8edf2;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

.site-header {
    background: rgba(17, 24, 32, .92);
    backdrop-filter: blur(14px);
    color: #fff;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.admin-bar .site-header {
    top: 32px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    color: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-weight: 900;
    font-size: 26px;
    letter-spacing: .5px;
}

.logo small {
    color: #f5b642;
    font-size: 13px;
    letter-spacing: 3px;
    margin-top: 4px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.main-nav a {
    color: #eef2f5;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}

.main-nav a:hover {
    color: #f5b642;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-phone {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
}

.header-btn {
    background: #f5b642;
    color: #111820;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 900;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .main-nav {
        display: none;
    }

    .header-actions {
        display: none;
    }
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

.projects {
    background: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

.projects-grid img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 24px;
    transition: .3s;
}

.projects-grid img:hover {
    transform: translateY(-5px);
}

@media(max-width:900px){

    .projects-grid{
        grid-template-columns:1fr;
    }

    .projects-grid img{
        height:240px;
    }

}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    width: 290px;
    height: auto;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    color: #fff;
    font-size: 22px;
}

.logo-text span {
    color: #f5b642;
    font-size: 13px;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.06);
    border-radius: 12px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 5px auto;
    transition: .25s;
}

.mobile-menu {
    display: none;
    background: #111820;
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 18px 4%;
}

.mobile-menu a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 14px 0;
    font-weight: 800;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.mobile-menu .mobile-phone {
    color: #f5b642;
}

.site-header.menu-open .mobile-menu {
    display: block;
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 980px) {
    .menu-toggle {
        display: block;
    }
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 24px;
}

.contact-form,
.contact-map {
    background: #f5f6f7;
    border-radius: 28px;
    padding: 28px;
    border: 1px solid #e5e9ec;
}

.contact-map {
    padding: 0;
    overflow: hidden;
    min-height: 360px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #d8dee4;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    font-size: 15px;
}

.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-form input[type="submit"] {
    background: #f5b642;
    color: #111820;
    border: none;
    cursor: pointer;
    font-weight: 900;
}

@media (max-width: 1000px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-map {
        min-height: 300px;
    }
}

.site-footer {
    background: #0d141c;
    color: #fff;
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-grid h3,
.footer-grid h4 {
    margin-top: 0;
    color: #f5b642;
}

.footer-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-grid li {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 24px;
    text-align: center;
    color: #c8d0d7;
}

@media(max-width:900px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.floating-actions {
    position: fixed;
    right: 22px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.floating-actions a {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

.float-call {
    background: #f5b642;
    color: #111820;
}

.float-fb {
    background: #1877f2;
    color: #fff;
    font-size: 26px;
}

.small-hero {
    background:
        linear-gradient(120deg, rgba(9,17,26,.92), rgba(9,17,26,.72)),
        url('../images/hero-machinery.jpg') center/cover no-repeat;
    color: #fff;
    padding: 150px 0 100px;
}

.small-hero h1 {
    font-size: clamp(46px, 6vw, 82px);
    margin: 0 0 18px;
}

.small-hero p {
    font-size: 20px;
    max-width: 760px;
}

.about-page {
    background: #fff;
}

.values {
    background: #f5f6f7;
}

.machine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.machine-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

.machine-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.machine-card h3 {
    padding: 24px;
    margin: 0;
    text-align: center;
}

@media(max-width:900px){
    .machine-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {

    .logo img {
        width: 210px;
    }

}

@media (max-width: 576px) {

    .logo img {
        width: 175px;
    }

}

/* =========================================================
   WHITE HEADER - FINAL OVERRIDE
========================================================= */

.site-header {
    background: #ffffff;
    color: #1f2933;
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid #e6e9ec;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    backdrop-filter: none;
}

.admin-bar .site-header {
    top: 32px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    width: 290px;
    height: auto;
    max-width: 100%;
    display: block;
}

/* DESKTOP MENU */
.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.main-nav a {
    color: #202830;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: color .2s ease;
}

.main-nav a:hover {
    color: #e5a52f;
}

/* HEADER ACTIONS */
.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-phone {
    color: #202830;
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
    transition: color .2s ease;
}

.header-phone:hover {
    color: #e5a52f;
}

.header-btn {
    background: #f5b642;
    color: #111820;
    text-decoration: none;
    padding: 13px 21px;
    border-radius: 999px;
    font-weight: 900;
    white-space: nowrap;
    transition: .2s ease;
}

.header-btn:hover {
    background: #e5a52f;
    transform: translateY(-1px);
}

/* MOBILE HAMBURGER */
.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid #d9dee2;
    background: #f5f6f7;
    border-radius: 12px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #202830;
    margin: 5px auto;
    transition: .25s;
}

/* MOBILE MENU */
.mobile-menu {
    display: none;
    background: #ffffff;
    border-top: 1px solid #e6e9ec;
    padding: 18px 4%;
    box-shadow: 0 15px 25px rgba(0, 0, 0, .06);
}

.mobile-menu a {
    display: block;
    color: #202830;
    text-decoration: none;
    padding: 14px 0;
    font-weight: 800;
    border-bottom: 1px solid #edf0f2;
}

.mobile-menu a:hover {
    color: #e5a52f;
}

.mobile-menu .mobile-phone {
    color: #d9951c;
}

.site-header.menu-open .mobile-menu {
    display: block;
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* TABLET / MOBILE */
@media (max-width: 1100px) {

    .logo img {
        width: 235px;
    }

    .main-nav {
        gap: 18px;
    }

    .main-nav a {
        font-size: 14px;
    }
}

@media (max-width: 980px) {

    .main-nav,
    .header-actions {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .logo img {
        width: 210px;
    }
}

@media (max-width: 782px) {

    .admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 576px) {

    .site-header {
        padding: 11px 0;
    }

    .logo img {
        width: 175px;
    }

    .menu-toggle {
        width: 44px;
        height: 44px;
    }
}

/* ========================================
   PROJECTS GALLERY
======================================== */

.projects {
    background: #fff;
}

.projects-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.project-photo {
    position: relative;
    display: block;
    height: 240px;
    overflow: hidden;
    border-radius: 18px;
    background: #eef0f2;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.project-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .4s ease;
}

.project-photo:hover img {
    transform: scale(1.07);
}

.project-photo::after {
    content: "Виж снимката";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(10, 17, 24, .58);
    color: #fff;

    font-size: 15px;
    font-weight: 800;

    opacity: 0;
    transition: opacity .3s ease;
}

.project-photo:hover::after {
    opacity: 1;
}

/* TABLET */

@media (max-width: 1000px) {

    .projects-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

}

/* MOBILE */

@media (max-width: 700px) {

    .projects-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .project-photo {
        height: 170px;
        border-radius: 12px;
    }

    .project-photo::after {
        display: none;
    }

}

/* SMALL MOBILE */

@media (max-width: 420px) {

    .project-photo {
        height: 145px;
    }

}

/* ========================================
   PROJECT LIGHTBOX
======================================== */

.project-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 10, 15, .94);
    z-index: 99999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 40px 90px;
}

.project-lightbox.active {
    display: flex;
}

.project-lightbox img {
    max-width: 90vw;
    max-height: 88vh;
    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 14px;

    box-shadow: 0 30px 80px rgba(0,0,0,.5);
}

/* CLOSE */

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 30px;

    width: 50px;
    height: 50px;

    border: 0;
    border-radius: 50%;

    background: rgba(255,255,255,.12);
    color: #fff;

    font-size: 34px;
    line-height: 1;

    cursor: pointer;
}

/* ARROWS */

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 55px;
    height: 55px;

    border: 0;
    border-radius: 50%;

    background: rgba(255,255,255,.12);
    color: #fff;

    font-size: 30px;

    cursor: pointer;

    transition: .2s;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {
    background: #f5b642;
    color: #111820;
}

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}

/* COUNTER */

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);

    color: #fff;
    background: rgba(0,0,0,.45);

    padding: 8px 14px;

    border-radius: 999px;

    font-size: 14px;
    font-weight: 700;
}

/* MOBILE */

@media(max-width:700px) {

    .project-lightbox {
        padding: 70px 15px;
    }

    .project-lightbox img {
        max-width: 96vw;
        max-height: 75vh;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .lightbox-close {
        top: 14px;
        right: 14px;
    }

}

.project-hidden {
    display: none;
}

.projects-gallery.show-all .project-hidden {
    display: block;
}

.projects-more-wrap {
    text-align: center;
    margin-top: 36px;
}

.projects-more-btn {
    border: 0;
    background: #f5b642;
    color: #111820;
    padding: 16px 28px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    transition: .2s ease;
}

.projects-more-btn:hover {
    background: #e5a52f;
    transform: translateY(-2px);
}