html,
body {
    height: 100%;
    margin: 0;
}

:root {
    --layout-max-width: 1100px;
    --layout-gutter: 20px;
    --accent: #45bada;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-icon: #f3f4f6;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-optical-sizing: auto;
    background-image: linear-gradient(rgba(69, 186, 218, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 186, 218, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-header {
    border-bottom: 2px solid var(--accent);
    padding: 16px 0;
    background: #fff;
}

.navbar,
.container,
footer {
    width: min(var(--layout-max-width), calc(100% - (var(--layout-gutter) * 2)));
    margin: 0 auto;
    box-sizing: border-box;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.nav-right a {
    display: flex;
    align-items: center;
}

.logo {
    height: 56px;
    display: block;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--accent);
    background: #fff;
    color: var(--accent);
    border-radius: 6px;
    width: 42px;
    height: 36px;
    padding: 0;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.nav-link {
    text-decoration: none;
    color: #000;
    font-size: 18px;
    padding: 6px 2px;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent);
    font-weight: 700;
}

.content {
    flex: 1;
}

.container {
    padding: 40px 0;
}

/* Desktop/tablet: one section visible at a time. */
.js-enabled .page-section {
    display: none;
}

.js-enabled .page-section.section-active {
    display: block;
}

.page-section {
    margin-bottom: 42px;
    scroll-margin-top: 90px;
}

h1 {
    font-size: 38px;
    line-height: 1.2;
    margin: 0 0 20px;
}

h2 {
    font-size: 28px;
    color: var(--accent);
    line-height: 1.25;
    margin: 26px 0 12px;
}

h3 {
    font-size: 22px;
    line-height: 1.3;
    margin: 20px 0 8px;
}

p,
li {
    font-size: 18px;
    line-height: 1.6;
}

p {
    margin: 0 0 14px;
}

.btn {
    display: inline-block;
    padding: 10px 22px;
    border: 2px solid var(--accent);
    border-radius: 6px;
    text-decoration: none;
    color: var(--accent);
    font-weight: 700;
    text-align: center;
    transition: 0.3s;
}

.btn:hover {
    background: var(--accent);
    color: #fff;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    transition: transform 0.2s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.icon-box {
    font-size: 1.25rem;
    background: var(--bg-icon);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.details {
    display: flex;
    flex-direction: column;
}

.details label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.details a,
.details p {
    margin: 0;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1.1rem;
}

.details a:hover {
    color: #2563eb;
}

.map-container {
    flex: 1.2;
    min-width: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 350px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(0.2) contrast(1.1);
}

.calculator-section {
    margin-top: 40px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.calc-block {
    margin-top: 25px;
    padding: 15px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #eee;
}

.calc-block h3 {
    margin-top: 0;
    color: #333;
}

.calc-block label {
    display: block;
    margin-top: 10px;
    font-weight: 700;
}

.calc-block input,
.calc-block select {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    box-sizing: border-box;
}

.calc-block button {
    margin-top: 14px;
    padding: 8px 16px;
    border: 2px solid var(--accent);
    background: #fff;
    color: var(--accent);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}

.calc-block button:hover {
    background: var(--accent);
    color: #fff;
}

.calc-rezultat {
    margin-top: 10px;
    font-weight: 700;
    color: #333;
}

footer {
    margin-top: auto;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        gap: 12px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        order: 1;
        align-self: center;
    }

    .nav-left {
        display: none;
        width: 100%;
        order: 3;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-top: 8px;
    }

    .nav-left.open {
        display: flex;
    }

    .nav-right {
        order: 2;
        margin-left: auto;
    }

    .logo {
        height: 45px;
    }

    .container {
        padding: 30px 0;
    }

    .js-enabled .page-section,
    .js-enabled .page-section.section-active {
        display: block;
    }

    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    p,
    li {
        font-size: 16px;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-info {
        min-width: 0;
        order: 1;
    }

    .map-container {
        min-width: 0;
        order: 2;
        height: 300px;
    }
}
