/* =====================================================
   ROOT / VARIABLES
===================================================== */

:root {
    --bg-dark: #171717;
    --bg-darker: #111111;
    --bg-light: #f4f4f4;

    --white: #ffffff;

    --text: #1a1a1a;
    --text-light: #6f6f6f;

    --yellow: #f5b800;
    --yellow-dark: #d9a200;

    --messenger: #168aff;
    --messenger-dark: #0876df;

    --border: #e5e5e5;

    --radius: 18px;

    --shadow:
        0 20px 50px rgba(0, 0, 0, 0.08);
}


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.6;
}

img {
    width: 100%;
    display: block;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}


/* =====================================================
   GENERAL
===================================================== */

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.section-label {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--yellow);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 50px;
}

.section-heading.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-heading h2 {
    margin-bottom: 18px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
}

.section-heading p {
    color: var(--text-light);
    font-size: 18px;
}


/* =====================================================
   BUTTONS
===================================================== */

.button {
    min-height: 54px;
    padding: 0 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border: 0;
    border-radius: 10px;

    text-decoration: none;
    font-weight: 800;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button i,
.header-phone i,
.mobile-contact-bar i,
.footer-contact-links i {
    font-size: 14px;
}

.button-primary {
    background: var(--yellow);
    color: #111;
}

.button-primary:hover {
    background: var(--yellow-dark);
}

.button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
    color: white;
    backdrop-filter: blur(10px);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.button-dark {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #292929;
    color: white;
}

.button-dark:hover {
    background: #353535;
}

.button-messenger {
    background: var(--messenger);
    color: white;
}

.button-messenger:hover {
    background: var(--messenger-dark);
}


/* =====================================================
   HEADER
===================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;

    z-index: 1000;

    width: 100%;

    background: rgba(10, 10, 10, 0.72);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    transition: 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.96);
}

.header-inner {
    min-height: 82px;

    display: flex;
    align-items: center;

    gap: 30px;
}


/* =====================================================
   LOGO
===================================================== */

.logo {
    display: flex;
    flex-direction: column;

    flex-shrink: 0;

    line-height: 1;

    text-decoration: none;
}

.logo-main {
    color: white;

    font-size: 19px;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo-sub {
    margin-top: 6px;

    color: var(--yellow);

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.2px;

    white-space: nowrap;
}


/* =====================================================
   NAVIGATION
===================================================== */

.nav {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 26px;
}

.nav a {
    color: #ddd;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition: 0.2s;
}

.nav a:hover,
.nav a.active {
    color: var(--yellow);
}


/* =====================================================
   HEADER PHONE
===================================================== */

.header-phone {
    padding: 12px 16px;

    display: inline-flex;
    align-items: center;

    gap: 8px;

    border-radius: 10px;

    background: var(--yellow);
    color: #111;

    text-decoration: none;

    font-size: 14px;
    font-weight: 800;

    white-space: nowrap;
}


/* =====================================================
   MOBILE MENU
===================================================== */

.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    margin-left: auto;

    border: 0;
    background: transparent;
}

.mobile-menu-button span {
    display: block;

    width: 24px;
    height: 2px;

    margin: 5px auto;

    background: white;
}


/* =====================================================
   HERO
===================================================== */

.hero {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;

    overflow: hidden;

    background-image: url("/images/hero.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;

    color: white;
}


/* =====================================================
   HERO OVERLAY
===================================================== */

.hero-overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.92) 0%,
            rgba(0, 0, 0, 0.78) 25%,
            rgba(0, 0, 0, 0.42) 52%,
            rgba(0, 0, 0, 0.05) 78%
        ),
        linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.35) 0%,
            rgba(0, 0, 0, 0) 40%
        );
}


/* =====================================================
   HERO CONTENT
===================================================== */

.hero-content {
    position: relative;

    z-index: 2;

    min-height: 100vh;

    padding-top: 150px;
    padding-bottom: 70px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-main {
    width: min(650px, 100%);
}


/* =====================================================
   HERO BRAND
===================================================== */

.hero-brand {
    width: fit-content;

    margin-bottom: 45px;
}

.hero-brand-main {
    display: flex;
    align-items: center;

    gap: 18px;

    line-height: 0.9;

    font-size: clamp(52px, 6vw, 82px);
    font-weight: 900;

    letter-spacing: -4px;

    font-style: italic;

    text-transform: uppercase;

    text-shadow:
        0 5px 20px rgba(0, 0, 0, 0.3);
}

.hero-brand-vida {
    color: white;
}

.hero-brand-bence {
    color: var(--yellow);
}

.hero-brand-sub {
    margin-top: 12px;

    display: grid;
    grid-template-columns: 85px auto 85px;

    align-items: center;

    gap: 15px;

    padding-left: 4px;
}

.hero-brand-sub span {
    height: 4px;

    background: var(--yellow);

    transform: skewX(-35deg);
}

.hero-brand-sub strong {
    color: white;

    font-size: 22px;
    font-style: italic;
    font-weight: 800;

    letter-spacing: 11px;

    line-height: 1;

    white-space: nowrap;
}


/* =====================================================
   HERO SLOGAN
===================================================== */

.hero-slogan {
    margin-bottom: 35px;

    font-size: clamp(20px, 2vw, 27px);

    line-height: 1.25;
}

.hero-slogan p {
    color: #f4f4f4;
}

.hero-slogan strong {
    display: block;

    color: var(--yellow);

    font-weight: 800;
}


/* =====================================================
   HERO BUTTON
===================================================== */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;
}

.hero-contact-button {
    min-height: 58px;

    padding: 0 26px;

    border-radius: 9px;

    font-size: 14px;
    font-weight: 900;

    box-shadow:
        0 10px 35px rgba(245, 184, 0, 0.18);
}

.hero-contact-button i {
    font-size: 18px;
}


/* =====================================================
   HERO INFO BAR
===================================================== */

.hero-info-bar {
    width: min(820px, 100%);

    margin-top: 90px;

    padding: 22px 30px;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 30px;

    border:
        1px solid
        rgba(255, 255, 255, 0.15);

    border-radius: 50px;

    background:
        rgba(10, 10, 10, 0.72);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    box-shadow:
        0 15px 50px
        rgba(0, 0, 0, 0.25);
}

.hero-info-item {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 15px;
}

.hero-info-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: var(--yellow);

    font-size: 30px;
}

.hero-info-item > div:last-child {
    min-width: 0;
}

.hero-info-item strong {
    display: block;

    color: white;

    font-size: 14px;
    font-weight: 900;

    line-height: 1.2;

    white-space: nowrap;
}

.hero-info-item span {
    display: block;

    margin-top: 3px;

    color: #dedede;

    font-size: 12px;

    white-space: nowrap;
}


/* =====================================================
   SCROLL DOWN
===================================================== */

.scroll-down {
    position: absolute;

    bottom: 28px;
    right: 40px;

    z-index: 4;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(255, 255, 255, 0.2);

    border-radius: 50%;

    background:
        rgba(0, 0, 0, 0.35);

    color: white;

    text-decoration: none;

    font-size: 15px;

    backdrop-filter:
        blur(5px);

    animation:
        scrollBounce 2s infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(6px);
    }

}


/* =====================================================
   SERVICES
===================================================== */

.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}

.service-card {
    position: relative;

    padding: 28px;

    overflow: hidden;

    border-radius: var(--radius);

    background: white;

    box-shadow: var(--shadow);

    transition:
        transform 0.25s ease;
}

.service-card:hover {
    transform: translateY(-7px);
}

.service-number {
    position: absolute;

    top: 16px;
    right: 20px;

    color: #f0f0f0;

    font-size: 54px;
    font-weight: 900;

    line-height: 1;
}

.service-icon {
    margin-bottom: 18px;

    font-size: 38px;
}

.service-card h3 {
    margin-bottom: 14px;

    font-size: 23px;
}

.service-card p {
    margin-bottom: 20px;

    color: var(--text-light);
}

.service-card ul {
    display: grid;

    gap: 9px;

    list-style: none;
}

.service-card li::before {
    content: "•";

    margin-right: 10px;

    color: var(--yellow);

    font-weight: 900;
}


/* =====================================================
   MACHINE PARK
===================================================== */

.machine-park {
    background: var(--bg-dark);

    color: white;
}

.machine-park .section-heading h2 {
    color: white;
}

.machine-park .section-heading p {
    color: #bdbdbd;
}


/* =====================================================
   MACHINE CARDS
===================================================== */

.machine-cards {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(260px, 1fr)
        );

    gap: 16px;

    margin-bottom: 30px;
}

.machine-card {
    position: relative;

    min-width: 0;

    aspect-ratio: 4 / 3;

    padding: 0;

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 16px;

    background: #111;

    text-align: left;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.machine-card img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    filter:
        grayscale(100%)
        brightness(0.72);

    transform: scale(1);

    transition:
        filter 0.4s ease,
        transform 0.45s ease;
}

.machine-card:hover {
    transform: translateY(-6px);

    border-color:
        rgba(245, 184, 0, 0.5);
}

.machine-card:hover img {
    filter:
        grayscale(0%)
        brightness(0.9);

    transform: scale(1.05);
}

.machine-card.active {
    border-color: var(--yellow);

    box-shadow:
        0 0 0 1px var(--yellow),
        0 18px 50px rgba(0, 0, 0, 0.3);
}

.machine-card.active img {
    filter:
        grayscale(0%)
        brightness(0.88);
}


/* =====================================================
   MACHINE CARD OVERLAY
===================================================== */

.machine-card-overlay {
    position: absolute;

    inset: 0;

    z-index: 2;

    padding: 22px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.05) 20%,
            rgba(0, 0, 0, 0.82) 100%
        );
}

.machine-card-number {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(0, 0, 0, 0.65);

    color: var(--yellow);

    font-size: 11px;
    font-weight: 900;
}

.machine-card h3 {
    margin-bottom: 5px;

    color: white;

    font-size: 25px;

    line-height: 1.1;
}

.machine-card-link {
    color: #ddd;

    font-size: 12px;
    font-weight: 700;
}


/* =====================================================
   MACHINE DETAILS
===================================================== */

.machine-details {
    position: relative;

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.035);
}

.machine-detail {
    display: none;

    padding: 50px 55px;

    animation:
        machineFadeIn 0.35s ease;
}

.machine-detail.active {
    display: block;
}

@keyframes machineFadeIn {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.machine-detail-content {
    max-width: 760px;
}

.machine-detail h2 {
    margin-bottom: 22px;

    color: white;

    font-size:
        clamp(36px, 5vw, 62px);

    line-height: 1.02;
}

.machine-detail h2 span {
    color: var(--yellow);
}

.machine-detail p {
    margin-bottom: 17px;

    color: #cfcfcf;
}

.machine-detail .machine-lead {
    font-size: 19px;
}


/* =====================================================
   MACHINE STATS
===================================================== */

.machine-stats {
    margin: 30px 0;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 12px;
}

.machine-stats div {
    padding: 16px;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.04);
}

.machine-stats strong {
    display: block;

    color: var(--yellow);

    font-size: 24px;

    line-height: 1.2;
}

.machine-stats span {
    color: #bbb;

    font-size: 13px;
}


/* =====================================================
   MACHINE CONTACT
===================================================== */

.text-link {
    margin-top: 4px;

    padding: 12px 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border:
        1px solid
        rgba(245, 184, 0, 0.45);

    border-radius: 10px;

    background:
        rgba(245, 184, 0, 0.07);

    color: white;

    text-decoration: none;

    font-size: 14px;
    font-weight: 800;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.text-link span {
    color: var(--yellow);

    font-size: 18px;

    line-height: 1;
}

.text-link:hover {
    border-color: var(--yellow);

    background: var(--yellow);

    color: #111;

    transform: translateY(-2px);

    box-shadow:
        0 8px 22px
        rgba(245, 184, 0, 0.16);
}

.text-link:hover span {
    color: #111;
}


/* =====================================================
   TASKS
===================================================== */

.tasks {
    background: white;
}

.tasks-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 12px;
}

.task-item {
    padding: 18px;

    display: flex;
    align-items: center;

    gap: 14px;

    border:
        1px solid
        var(--border);

    border-radius: 12px;

    font-weight: 700;
}

.task-item span {
    color: var(--yellow);

    font-size: 12px;
    font-weight: 900;
}


/* =====================================================
   WORKS
===================================================== */

.works {
    background: var(--bg-light);
}

.works-heading {
    margin-bottom: 40px;

    display: flex;
    align-items: end;

    justify-content:
        space-between;

    gap: 30px;
}

.works-heading h2 {
    margin-bottom: 12px;

    font-size:
        clamp(34px, 5vw, 56px);
}

.works-heading p {
    color: var(--text-light);
}


/* =====================================================
   WORK FILTERS
===================================================== */

.work-filters {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.work-filter {
    padding: 10px 15px;

    border:
        1px solid #d8d8d8;

    border-radius: 999px;

    background: white;

    font-weight: 700;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.work-filter.active,
.work-filter:hover {
    border-color: var(--yellow);

    background: var(--yellow);
}


/* =====================================================
   WORK GRID
===================================================== */

.works-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.work-card {
    overflow: hidden;

    border-radius:
        var(--radius);

    background: white;

    box-shadow:
        var(--shadow);

    transition:
        transform 0.25s ease;
}

.work-card:hover {
    transform: translateY(-6px);
}

.work-image {
    position: relative;

    aspect-ratio:
        16 / 10;

    overflow: hidden;

    background: #e9e9e9;
}

.work-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.35s ease;
}

.work-card:hover
.work-image img {
    transform: scale(1.045);
}


/* =====================================================
   WORK CATEGORY BADGES
===================================================== */

.work-category-list {
    position: absolute;

    left: 16px;
    right: 16px;
    bottom: 16px;

    z-index: 5;

    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    pointer-events: none;
}

.work-category {
    width: auto;
    max-width: max-content;

    padding: 5px 9px;

    display: inline-flex;
    align-items: center;

    border-radius: 999px;

    background: var(--yellow);

    color: #111;

    font-size: 10px;
    font-weight: 800;

    line-height: 1.2;

    white-space: nowrap;

    box-shadow:
        0 3px 8px
        rgba(0, 0, 0, 0.16);
}


/* =====================================================
   WORK CONTENT
===================================================== */

.work-content {
    padding: 22px;
}

.work-meta {
    margin-bottom: 8px;

    color: var(--text-light);

    font-size: 12px;
}

.work-content h3 {
    margin-bottom: 10px;

    font-size: 22px;

    line-height: 1.2;
}

.work-details-button {
    margin-top: 18px;

    padding: 10px 16px;

    display: inline-flex;
    align-items: center;

    gap: 8px;

    border: 0;
    border-radius: 8px;

    background: #171717;
    color: white;

    font-size: 13px;
    font-weight: 800;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.work-details-button:hover {
    background: var(--yellow);

    color: #111;

    transform: translateY(-2px);
}


/* =====================================================
   WORK STATES
===================================================== */

.works-loading,
.works-empty {
    grid-column:
        1 / -1;

    padding: 50px 20px;

    border-radius: 14px;

    background: white;

    color: var(--text-light);

    text-align: center;
}


/* =====================================================
   WORK PAGINATION
===================================================== */

.works-pagination {
    margin-top: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 7px;
}

.works-page-button {
    min-width: 40px;
    height: 40px;

    padding: 0 11px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid #d8d8d8;

    border-radius: 9px;

    background: white;
    color: #222;

    font-size: 13px;
    font-weight: 800;
}

.works-page-button:hover:not(:disabled),
.works-page-button.active {
    border-color: var(--yellow);

    background: var(--yellow);

    color: #111;
}

.works-page-button:disabled {
    opacity: 0.35;

    cursor: not-allowed;
}


/* =====================================================
   ABOUT
===================================================== */

.about {
    background: var(--bg-dark);

    color: white;
}

.about-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    align-items: center;

    gap: 70px;
}

.about-content h2 {
    margin-bottom: 20px;

    font-size:
        clamp(38px, 5vw, 64px);

    line-height: 1.05;
}

.about-content h2 span {
    color: var(--yellow);
}

.about-content p {
    margin-bottom: 28px;

    color: #cfcfcf;

    font-size: 18px;
}

.about-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}

.advantages {
    display: grid;

    gap: 14px;
}

.advantage {
    padding: 20px;

    display: flex;

    gap: 18px;

    border:
        1px solid
        rgba(255, 255, 255, 0.1);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.035);
}

.advantage-icon {
    width: 46px;

    flex-shrink: 0;

    font-size: 28px;
}

.advantage h3 {
    margin-bottom: 4px;
}

.advantage p {
    margin: 0;

    color: #bbb;

    font-size: 15px;
}


/* =====================================================
   PROCESS
===================================================== */

.process {
    background: white;
}

.process-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}

.process-item {
    padding: 26px;

    border-top:
        3px solid
        var(--yellow);

    border-radius:
        0 0 14px 14px;

    background: #fafafa;
}

.process-number {
    margin-bottom: 16px;

    color: var(--yellow);

    font-size: 13px;
    font-weight: 900;
}

.process-item h3 {
    margin-bottom: 10px;

    font-size: 21px;
}

.process-item p {
    color: var(--text-light);
}


/* =====================================================
   CONTACT
===================================================== */

.contact {
    background: var(--bg-light);
}

.contact-box {
    padding: 45px;

    display: flex;
    align-items: center;

    justify-content:
        space-between;

    gap: 40px;

    border-radius: 22px;

    background: white;

    box-shadow:
        var(--shadow);
}

.contact-content {
    max-width: 650px;
}

.contact-box h2 {
    margin-bottom: 12px;

    font-size:
        clamp(32px, 4vw, 50px);
}

.contact-box p {
    max-width: 600px;

    color: var(--text-light);

    font-size: 17px;
}

.contact-actions {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 12px;
}

.contact-phone {
    padding: 12px 15px;

    display: flex;
    align-items: center;

    gap: 12px;

    border-radius: 12px;

    background: #f7f7f7;

    text-decoration: none;
}

.contact-phone-icon {
    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--yellow);

    color: #111;

    font-size: 14px;
}

.contact-phone div {
    display: flex;
    flex-direction: column;
}

.contact-phone small {
    color: var(--text-light);
}

.contact-phone strong {
    font-size: 18px;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
    padding-top: 50px;

    background: #0d0d0d;

    color: white;
}

.footer-inner {
    display: grid;

    grid-template-columns:
        1fr auto auto;

    align-items: center;

    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand strong {
    font-size: 20px;
}

.footer-brand span {
    color: var(--yellow);

    font-size: 11px;

    letter-spacing: 2.5px;
}

.footer-links {
    display: flex;

    flex-wrap: wrap;

    gap: 18px;
}

.footer-links a,
.footer-phone,
.footer-messenger {
    color: #ccc;

    text-decoration: none;
}

.footer-phone,
.footer-messenger {
    display: inline-flex;
    align-items: center;

    gap: 7px;
}

.footer-links a:hover,
.footer-phone:hover,
.footer-messenger:hover {
    color: var(--yellow);
}

.footer-contact-links {
    display: flex;
    flex-direction: column;

    gap: 5px;

    text-align: right;
}

.footer-bottom {
    margin-top: 38px;

    padding: 18px 0 22px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.08);

    color: #888;

    font-size: 13px;
}


/* =====================================================
   MOBILE CONTACT BAR
===================================================== */

.mobile-contact-bar {
    display: none;
}


/* =====================================================
   WORK MODAL
===================================================== */

.work-modal {
    position: fixed;

    inset: 0;

    z-index: 3000;

    padding: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    visibility: hidden;
    opacity: 0;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.work-modal.open {
    visibility: visible;
    opacity: 1;
}

.work-modal-overlay {
    position: absolute;

    inset: 0;

    background:
        rgba(0, 0, 0, 0.8);

    backdrop-filter:
        blur(5px);
}

.work-modal-box {
    position: relative;

    z-index: 2;

    width:
        min(1000px, 100%);

    max-height: 88vh;

    overflow-y: auto;

    display: grid;

    grid-template-columns:
        1.15fr 0.85fr;

    border-radius: 18px;

    background: white;

    box-shadow:
        0 30px 90px
        rgba(0, 0, 0, 0.4);
}

.work-modal-close {
    position: absolute;

    top: 14px;
    right: 14px;

    z-index: 10;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background:
        rgba(0, 0, 0, 0.75);

    color: white;

    font-size: 27px;
}

.work-modal-close:hover {
    background: var(--yellow);

    color: #111;
}


/* =====================================================
   MODAL GALLERY
===================================================== */

.work-modal-gallery {
    background: #111;
}

.work-modal-main-image {
    aspect-ratio:
        4 / 3;

    overflow: hidden;

    background: #111;
}

.work-modal-main-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.work-modal-thumbnails {
    padding: 10px;

    display: flex;

    gap: 8px;

    overflow-x: auto;
}

.work-modal-thumbnail {
    width: 80px;
    height: 62px;

    flex-shrink: 0;

    padding: 0;

    overflow: hidden;

    border:
        2px solid transparent;

    border-radius: 7px;

    background: transparent;
}

.work-modal-thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.work-modal-thumbnail.active {
    border-color: var(--yellow);
}


/* =====================================================
   MODAL CONTENT
===================================================== */

.work-modal-content {
    padding: 46px 35px;
}

.work-modal-category {
    margin-bottom: 14px;

    padding: 7px 11px;

    display: inline-block;

    border-radius: 100px;

    background: var(--yellow);

    color: #111;

    font-size: 11px;
    font-weight: 900;
}

.work-modal-content h2 {
    margin-bottom: 10px;

    font-size:
        clamp(29px, 4vw, 42px);

    line-height: 1.08;
}

.work-modal-location,
.work-modal-date {
    color: var(--text-light);

    font-size: 13px;
}

.work-modal-location {
    margin-bottom: 3px;
}

.work-modal-date {
    margin-top: 3px;
}

.work-modal-description {
    margin:
        23px 0 28px;

    color: #555;

    line-height: 1.8;

    white-space: pre-line;
}

.work-modal-actions {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 10px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1050px) {

    .nav {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .header-phone {
        margin-left: auto;
    }

    .services-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .tasks-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .works-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns:
            1fr;
    }

    .contact-box {
        flex-direction: column;

        align-items: flex-start;
    }

    .hero-brand-main {
        font-size:
            clamp(50px, 8vw, 74px);
    }

    .hero-info-bar {
        width:
            min(760px, 100%);
    }

}


/* =====================================================
   MOBILE MENU OPEN
===================================================== */

@media (max-width: 1050px) {

    .nav.open {
        position: absolute;

        top: 82px;
        left: 0;

        width: 100%;

        padding:
            10px 20px 20px;

        display: flex;
        flex-direction: column;

        align-items: flex-start;

        gap: 0;

        border-top:
            1px solid
            rgba(255, 255, 255, 0.08);

        background: #111;
    }

    .nav.open a {
        width: 100%;

        padding: 14px 0;

        border-bottom:
            1px solid
            rgba(255, 255, 255, 0.08);
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 700px) {

    .container {
        width:
            min(
                100% - 26px,
                1180px
            );
    }

    .section {
        padding: 72px 0;
    }


    /* =================================================
       HEADER
    ================================================= */

    .header-inner {
        min-height: 72px;
    }

    .header-phone {
        display: none;
    }


    /* =================================================
       MOBILE HERO
    ================================================= */

    .hero {
        min-height: 100svh;

        align-items: flex-end;

        background-image:
            url("/images/hero2.jpg");

        background-position:
            center center;

        background-size:
            cover;
    }


    .hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.08) 0%,
                rgba(0, 0, 0, 0.10) 30%,
                rgba(0, 0, 0, 0.48) 68%,
                rgba(0, 0, 0, 0.92) 100%
            );
    }


    .hero-content {
        min-height: 100svh;

        padding-top: 100px;
        padding-bottom: 28px;

        justify-content: flex-end;
    }


    .hero-main {
        width: 100%;
    }


    /* =================================================
       MOBILE BRAND
    ================================================= */

    .hero-brand {
        width: 100%;

        margin-bottom: 18px;
    }


    .hero-brand-main {
        gap: 10px;

        font-size:
            clamp(
                45px,
                14vw,
                64px
            );

        letter-spacing: -3px;
    }


    .hero-brand-sub {
        width: 100%;

        margin-top: 8px;

        grid-template-columns:
            minmax(25px, 1fr)
            auto
            minmax(25px, 1fr);

        gap: 9px;

        padding-left: 2px;
    }


    .hero-brand-sub span {
        height: 3px;
    }


    .hero-brand-sub strong {
        font-size: 14px;

        letter-spacing: 7px;
    }


    /* =================================================
       MOBILE SLOGAN
    ================================================= */

    .hero-slogan {
        margin-bottom: 0;

        font-size: 18px;
    }


    /* =================================================
       MOBILE HERO BUTTON
       MOBILON NEM JELENIK MEG
    ================================================= */

    .hero-buttons {
        display: none;
    }


    /* =================================================
       MOBILE INFO BAR
    ================================================= */

    .hero-info-bar {
        width: 100%;

        margin-top: 18px;

        padding: 8px 10px;

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 0;

        border-radius: 14px;

        background:
            rgba(8, 8, 8, 0.68);

        backdrop-filter:
            blur(9px);

        -webkit-backdrop-filter:
            blur(9px);
    }


    .hero-info-item {
        min-width: 0;

        padding: 6px 4px;

        flex-direction: column;

        align-items: center;
        justify-content: flex-start;

        gap: 3px;

        text-align: center;
    }


    .hero-info-item:not(:last-child) {
        border-right:
            1px solid
            rgba(255, 255, 255, 0.12);
    }


    .hero-info-icon {
        width: 28px;
        height: 28px;

        font-size: 17px;
    }


    .hero-info-item > div:last-child {
        min-width: 0;

        width: 100%;
    }


    .hero-info-item strong {
        width: 100%;

        font-size: 8px;

        line-height: 1.15;

        white-space: normal;
    }


    .hero-info-item span {
        width: 100%;

        margin-top: 1px;

        font-size: 7px;

        line-height: 1.15;

        white-space: normal;
    }


    .scroll-down {
        display: none;
    }


    /* =================================================
       MAIN GRIDS
    ================================================= */

    .services-grid,
    .tasks-grid,
    .works-grid,
    .process-grid {
        grid-template-columns:
            1fr;
    }


    /* =================================================
       MACHINE
    ================================================= */

    .machine-cards {
        grid-template-columns:
            1fr;
    }

    .machine-card {
        aspect-ratio:
            16 / 10;
    }

    .machine-detail {
        padding:
            30px 22px;
    }

    .machine-stats {
        grid-template-columns:
            1fr;
    }

    .machine-card h3 {
        font-size: 22px;
    }

    .text-link {
        width: 100%;
    }


    /* =================================================
       WORKS
    ================================================= */

    .works-heading {
        flex-direction: column;

        align-items: flex-start;
    }

    .work-filters {
        width: 100%;

        overflow-x: auto;

        flex-wrap: nowrap;

        padding-bottom: 5px;
    }

    .work-filter {
        white-space: nowrap;
    }

    .work-category-list {
        left: 10px;
        right: 10px;
        bottom: 10px;

        gap: 5px;
    }

    .work-category {
        padding: 5px 8px;

        font-size: 9px;
    }


    /* =================================================
       ABOUT
    ================================================= */

    .about-buttons {
        flex-direction: column;
    }

    .about-buttons .button {
        width: 100%;
    }


    /* =================================================
       CONTACT
    ================================================= */

    .contact-box {
        padding:
            30px 22px;
    }

    .contact-actions {
        width: 100%;
    }

    .contact-phone,
    .contact-actions .button {
        width: 100%;
    }


    /* =================================================
       FOOTER
    ================================================= */

    .footer-inner {
        grid-template-columns:
            1fr;

        align-items: flex-start;
    }

    .footer-links {
        flex-direction: column;

        gap: 9px;
    }

    .footer-contact-links {
        text-align: left;
    }


    /* =================================================
       MODAL
    ================================================= */

    .work-modal {
        padding: 12px;
    }

    .work-modal-box {
        grid-template-columns:
            1fr;

        max-height: 92vh;
    }

    .work-modal-main-image {
        aspect-ratio:
            16 / 10;
    }

    .work-modal-content {
        padding:
            25px 20px 30px;
    }

    .work-modal-close {
        width: 38px;
        height: 38px;

        top: 10px;
        right: 10px;
    }

    .work-modal-actions {
        grid-template-columns:
            1fr;
    }


    /* =================================================
       MOBILE CONTACT
    ================================================= */

    .mobile-contact-bar {
        position: fixed;

        bottom: 0;
        left: 0;

        z-index: 999;

        width: 100%;

        display: grid;

        grid-template-columns:
            1fr 1fr;

        box-shadow:
            0 -6px 22px
            rgba(0, 0, 0, 0.18);
    }

    .mobile-contact-bar a {
        padding: 15px 10px;

        display: flex;
        align-items: center;
        justify-content: center;

        gap: 8px;

        text-align: center;
        text-decoration: none;

        font-weight: 900;
    }

    .mobile-contact-bar a:first-child {
        background: #111;
        color: white;
    }

    .mobile-contact-bar a:last-child {
        background: var(--messenger);
        color: white;
    }

    body {
        padding-bottom: 52px;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 420px) {

    .logo-main {
        font-size: 16px;
    }


    .hero-content {
        padding-bottom: 22px;
    }


    .hero-brand-main {
        font-size:
            clamp(
                39px,
                13.5vw,
                55px
            );

        gap: 7px;
    }


    .hero-brand-sub strong {
        font-size: 12px;

        letter-spacing: 5px;
    }


    .hero-slogan {
        font-size: 16px;
    }


    .hero-info-bar {
        margin-top: 14px;

        padding: 7px 6px;
    }


    .hero-info-item {
        padding: 5px 2px;
    }


    .hero-info-icon {
        width: 25px;
        height: 25px;

        font-size: 15px;
    }


    .hero-info-item strong {
        font-size: 7px;
    }


    .hero-info-item span {
        font-size: 6px;
    }


    .service-card {
        padding: 22px;
    }


    .contact-box h2 {
        font-size: 34px;
    }


    .work-content {
        padding: 18px;
    }


    .work-content h3 {
        font-size: 20px;
    }


    .works-page-button {
        min-width: 36px;
        height: 36px;

        padding: 0 9px;
    }

}