:root {
    --ink: #1f2933;
    --muted: #667085;
    --line: #d7dde4;
    --paper: #ffffff;
    --soft: #f4f7f5;
    --accent: #0f766e;
    --accent-dark: #115e59;
    --gold: #d79922;
    --charcoal: #151a1f;
    --shadow: 0 18px 45px rgba(21, 26, 31, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    padding: 0 clamp(18px, 4vw, 64px);
    color: #fff;
    transition: background .25s ease, box-shadow .25s ease, color .25s ease;
}

.is-inner .site-header,
.site-header.is-scrolled {
    color: var(--ink);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 30px rgba(21, 26, 31, .08);
    backdrop-filter: blur(12px);
}

.is-home .site-header:not(.is-scrolled) {
    color: #fff;
    background: transparent;
    box-shadow: none;
}

.is-home .site-header.has-open-menu,
.is-home .site-header.is-scrolled {
    color: var(--ink);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 30px rgba(21, 26, 31, .08);
    backdrop-filter: blur(12px);
}

.site-header.is-scrolled .nav-dropdown-menu,
.is-inner .site-header .nav-dropdown-menu {
    color: var(--ink);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
}

.brand-logo,
.footer-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-weight: 700;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: -12px;
    right: -12px;
    height: 12px;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.nav-dropdown-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    z-index: 25;
    display: grid;
    min-width: 220px;
    padding: 8px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity .18s ease, transform .18s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.nav-dropdown-menu a {
    padding: 10px 12px;
    border-radius: 7px;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    color: #fff;
    background: var(--accent);
}

.nav-cta,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 800;
}

.nav-cta,
.btn.primary {
    color: #fff;
    background: var(--accent);
}

.btn.ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .12);
}

.btn.ghost.dark {
    color: var(--accent-dark);
    border-color: var(--accent);
    background: transparent;
}

.btn.call {
    color: var(--charcoal);
    border-color: rgba(255, 255, 255, .7);
    background: #fff;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 7px;
    background: currentColor;
}

.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: center;
    overflow: hidden;
}

.legacy-hero {
    display: none;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.1s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

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

.hero-slide img {
    object-fit: cover;
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(10, 15, 18, .82), rgba(10, 15, 18, .44) 48%, rgba(10, 15, 18, .1));
}

.hero-content {
    position: relative;
    width: min(720px, calc(100% - 36px));
    margin-left: clamp(18px, 7vw, 96px);
    padding-top: 80px;
    color: #fff;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--gold);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

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

h1 {
    max-width: 820px;
    margin-bottom: 18px;
    font-size: clamp(2.2rem, 5.2vw, 5rem);
    line-height: 1.05;
}

h2 {
    font-size: clamp(1.65rem, 3vw, 2.8rem);
    line-height: 1.15;
}

h3 {
    font-size: 1.18rem;
    line-height: 1.25;
}

.hero p,
.page-hero p {
    max-width: 640px;
    color: rgba(255, 255, 255, .84);
    font-size: 1.12rem;
}

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

.hero-dots {
    position: absolute;
    left: clamp(18px, 7vw, 96px);
    bottom: 118px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 34px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .38);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.hero-dots button.is-active {
    width: 48px;
    background: #fff;
}

.quick-contact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: min(1120px, calc(100% - 36px));
    margin: -46px auto 0;
    position: relative;
    z-index: 4;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.quick-contact a {
    padding: 24px;
    border-right: 1px solid var(--line);
}

.quick-contact a:last-child {
    border-right: 0;
}

.quick-contact strong,
.quick-contact span {
    display: block;
}

.quick-contact strong {
    color: var(--accent-dark);
}

.quick-contact span {
    color: var(--muted);
}

.section,
.split-section,
.districts,
.faq-contact,
.contact-layout {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
    padding: 86px 0;
}

.muted {
    width: 100%;
    max-width: none;
    padding-inline: max(18px, calc((100% - 1120px) / 2));
    background: var(--soft);
}

.section-head {
    max-width: 760px;
    margin-bottom: 34px;
}

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

.service-card,
.reference-card {
    min-height: 250px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.service-card {
    display: flex;
    flex-direction: column;
}

.service-card a {
    margin-top: auto;
    color: var(--accent-dark);
    font-weight: 900;
}

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

.seo-columns article {
    min-height: 210px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.seo-columns h3 {
    color: var(--accent-dark);
}

.faq-list {
    padding-top: 46px;
}

.faq-list details,
.faq-contact details {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.faq-list summary,
.faq-contact summary {
    cursor: pointer;
    color: var(--ink);
    font-weight: 900;
}

.service-visual,
.detail-visual,
.photo-placeholder {
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(15, 118, 110, .75), rgba(215, 153, 34, .68)),
        url("../uploads/sliders/hero-mobilya-montaj.png") center/cover;
}

.service-visual {
    height: 132px;
    margin-bottom: 20px;
}

.service-image {
    width: 100%;
    height: 132px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #e8edf1;
}

.split-section,
.faq-contact,
.contact-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 56px;
    align-items: start;
}

.text-link {
    color: var(--accent-dark);
    font-weight: 900;
}

.reference-card span,
.reference-card small {
    color: var(--accent-dark);
    font-weight: 900;
}

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

.photo-grid figure {
    margin: 0;
}

.work-item {
    position: relative;
    cursor: pointer;
}

.work-preview {
    position: relative;
}

.work-item img,
.work-preview img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.photo-count {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(21, 26, 31, .78);
    font-size: .82rem;
    font-weight: 900;
}

.work-item:focus {
    outline: 3px solid rgba(15, 118, 110, .35);
    outline-offset: 4px;
}

.work-item:hover img {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.photo-placeholder {
    aspect-ratio: 4 / 3;
    margin-bottom: 12px;
}

figcaption {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-weight: 800;
}

figcaption span {
    color: var(--muted);
    font-weight: 400;
}

.districts {
    text-align: center;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.pill-list span,
.pill-list a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-weight: 800;
}

.pill-list a:hover {
    color: #fff;
    border-color: var(--accent);
    background: var(--accent);
}

.district-list:not(.is-expanded) .is-extra {
    display: none;
}

.district-more {
    margin-top: 22px;
}

details {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

summary {
    cursor: pointer;
    font-weight: 900;
}

.page-hero {
    padding: 150px max(18px, calc((100% - 1120px) / 2)) 76px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(21, 26, 31, .9), rgba(21, 26, 31, .64)),
        url("../uploads/sliders/hero-mobilya-montaj.png") center/cover;
}

.inner-actions .btn.ghost {
    color: #fff;
}

.detail-visual {
    min-height: 360px;
}

.contact-form {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.contact-form label {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
    color: var(--muted);
    font-weight: 800;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--ink);
    font: inherit;
}

textarea {
    resize: vertical;
}

.hp {
    position: absolute;
    left: -9999px;
}

.notice {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 800;
}

.notice.success {
    background: #dcfce7;
    color: #166534;
}

.notice.error {
    background: #fee2e2;
    color: #991b1b;
}

.contact-info {
    padding: 28px;
    border-radius: 8px;
    color: #fff;
    background: var(--charcoal);
}

.contact-info a {
    display: block;
    margin-bottom: 14px;
    color: #fff;
    font-weight: 900;
}

.cookie-banner {
    position: fixed;
    left: 24px;
    right: auto;
    bottom: 24px;
    z-index: 76;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    width: min(620px, calc(100% - 48px));
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner strong,
.cookie-banner p {
    margin: 0;
}

.cookie-banner strong {
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
}

.cookie-banner p {
    color: var(--muted);
    font-size: .94rem;
    line-height: 1.45;
}

.cookie-banner a {
    display: inline-flex;
    margin-top: 8px;
    color: var(--accent-dark);
    font-weight: 900;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.floating-actions {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
}

.floating-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 54px;
    border-radius: 8px;
    box-shadow: 0 14px 32px rgba(21, 26, 31, .2);
    font-weight: 900;
}

.floating-btn.whatsapp {
    width: 58px;
    min-height: 58px;
    color: #fff;
    background: #18a957;
    border-radius: 50%;
}

.floating-btn.quote {
    padding: 0 18px;
    color: #fff;
    background: var(--accent);
}

.floating-btn.call {
    background: var(--gold);
}

.wa-icon {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

.work-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.work-modal.is-open {
    display: flex;
}

.work-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 18, .78);
    backdrop-filter: blur(8px);
}

.work-modal-dialog {
    position: relative;
    width: min(980px, 100%);
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .32);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: rgba(21, 26, 31, .68);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.modal-media {
    position: relative;
    display: grid;
    place-items: center;
    background: #101820;
}

.modal-media img {
    width: 100%;
    max-height: 68vh;
    aspect-ratio: 16 / 9;
    object-fit: contain;
}

.modal-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 56px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: rgba(21, 26, 31, .68);
    font-size: 38px;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
}

.modal-nav.prev {
    left: 14px;
}

.modal-nav.next {
    right: 14px;
}

.modal-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
}

.modal-caption h2 {
    margin-bottom: 2px;
    font-size: 1.2rem;
}

.modal-caption p,
.modal-caption span {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.site-footer {
    padding: 56px max(18px, calc((100% - 1120px) / 2)) 24px;
    color: #d7dde4;
    background: var(--charcoal);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 900;
}

.site-footer h2 {
    color: #fff;
    font-size: 1rem;
}

.site-footer a,
.site-footer span {
    display: block;
    margin-bottom: 8px;
}

.copyright {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #98a2b3;
}

@media (max-width: 860px) {
    .site-header {
        min-height: 68px;
    }

    .site-header.is-scrolled,
    .site-header.has-open-menu {
        color: var(--ink);
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 10px 30px rgba(21, 26, 31, .08);
        backdrop-filter: blur(12px);
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 68px;
        left: 18px;
        right: 18px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        color: var(--ink);
        background: #fff;
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

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

    .main-nav a {
        padding: 12px;
    }

    .nav-dropdown {
        display: grid;
    }

    .nav-dropdown::after {
        display: none;
    }

    .nav-dropdown-toggle {
        justify-content: space-between;
        width: 100%;
        padding: 12px;
        border: 1px solid transparent;
        border-radius: 8px;
    }

    .nav-dropdown-menu {
        position: static;
        display: none;
        min-width: 0;
        width: 100%;
        margin: 0 0 8px;
        padding: 6px 0 6px 12px;
        border: 0;
        border-left: 2px solid var(--line);
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        transform: none;
    }

    .nav-dropdown:not(.is-open) .nav-dropdown-menu {
        display: none;
        opacity: 0;
        pointer-events: none;
    }

    .nav-dropdown.is-open .nav-dropdown-menu {
        display: grid;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .nav-dropdown.is-open .nav-dropdown-toggle {
        border-color: var(--line);
        background: var(--soft);
    }

    .nav-dropdown-menu a {
        padding: 8px 12px;
        white-space: normal;
    }

    .hero {
        min-height: 760px;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-actions {
        gap: 8px;
        margin-top: 20px;
    }

    .hero-actions .btn {
        min-height: 42px;
        padding: 0 13px;
        font-size: .92rem;
    }

    .quick-contact,
    .card-grid,
    .seo-columns,
    .photo-grid,
    .split-section,
    .faq-contact,
    .contact-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .quick-contact a {
        padding: 14px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .quick-contact {
        grid-template-columns: 1fr 1fr;
        margin-top: -24px;
    }

    .quick-contact a:first-child {
        grid-column: 1 / -1;
        color: #fff;
        background: var(--accent);
    }

    .quick-contact a:first-child strong,
    .quick-contact a:first-child span {
        color: #fff;
    }

    .section,
    .split-section,
    .districts,
    .faq-contact,
    .contact-layout {
        padding: 58px 0;
    }

    .page-hero {
        padding-top: 118px;
    }

    .floating-actions {
        right: 14px;
        bottom: 14px;
    }

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 78px;
        grid-template-columns: 1fr;
        width: auto;
        padding: 14px;
    }

    .cookie-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .floating-btn {
        min-height: 50px;
    }

    .floating-btn.whatsapp {
        width: 52px;
        min-height: 52px;
    }

    .floating-btn.quote {
        padding-inline: 14px;
    }

    .work-modal {
        padding: 12px;
    }

    .modal-caption {
        align-items: flex-start;
        flex-direction: column;
    }

    .modal-nav {
        width: 42px;
        height: 50px;
    }
}
