/* Theme tokens */
:root {
    --ink: #172b3c;
    --muted: #667987;
    --navy: #102f46;
    --blue: #174f70;
    --teal: #18a999;
    --canvas: #f2f6f7;
    --line: #e0e9eb;
}

/* Base styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: clamp(12px, 3vw, 42px);
    color: var(--ink);
    background: radial-gradient(ellipse at 12% 0%, #b8d8d4 0, transparent 48%),
    radial-gradient(ellipse at 96% 12%, #bdcfe3 0, transparent 46%),
    #eaf0f2;
    background-attachment: fixed;
    font: 16px/1.7 "DM Sans",
    Arial,
    sans-serif;
}

/* Page shell and header */
.container {
    width: min(100%, 1440px);
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
    overflow: clip;
    border: 1px solid #ffffffd9;
    border-radius: 26px;
    box-shadow: 0 24px 80px #1836491f;
}

.header {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 6vw, 78px) 28px;
    border-radius: 0;
    color: #fff;
    text-align: left;
    background: linear-gradient(115deg, #102f46, #174f70 58%, #197c83);
}

.header:after {
    position: absolute;
    top: -95px;
    right: -30px;
    width: 390px;
    height: 390px;
    border: 1px solid #ffffff22;
    border-radius: 50%;
    box-shadow: 0 0 0 34px #ffffff09,
    0 0 0 70px #ffffff06;
    content: "";
    pointer-events: none;
}

.header h1,
.header h2 {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.header h1 {
    margin: 0;
    font: 800 clamp(1.85rem, 4.5vw, 3.55rem)/1.12 "Manrope",
    sans-serif;
    letter-spacing: -0.045em;
}

.header h2 {
    margin: 14px 0 0;
    color: #ffffffbf;
    font: 500 clamp(0.95rem, 1.8vw, 1.18rem)/1.5 "DM Sans",
    sans-serif;
}

.section {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    align-items: start;
    overflow: visible;
    background: #f7fafb;
}

.section:has(.sidebar2) {
    grid-template-columns: 290px minmax(0, 1fr) 365px;
}

/* Primary navigation and contact details */
.sidebar1 {
    width: auto;
    min-height: 100%;
    padding: 24px 16px;
    background: #f3f7f8;
    border-right: 1px solid var(--line);
}

ul.nav {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    border: 0;
    font: 600 0.92rem/1.35 "DM Sans",
    sans-serif;
}

ul.nav li {
    border: 0;
}

ul.nav a,
ul.nav {
    display: block;
    padding: 11px 12px;
    border-radius: 10px;
    color: #405867;
    background: transparent;
    text-shadow: none;
    text-decoration: none;
    transition: color 0.18s,
    background 0.18s,
    transform 0.18s;
}

ul.nav a:hover,
ul.nav a:focus,
ul.nav a:active {
    color: var(--navy);
    background: #e5eff0;
    transform: translateX(2px);
}

ul.nav a.current {
    color: #fff;
    background: linear-gradient(110deg, #174f70, #197c83);
    box-shadow: 0 6px 15px #174f702b;
}

.contacts {
    margin: 24px 0 0;
    padding: 17px 14px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    color: var(--muted);
    font-size: 0.9rem;
}

.contacts h4 {
    margin: 0 0 12px;
    color: var(--ink);
    font: 700 0.78rem/1.3 "Manrope",
    sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contacts a,
.submenu2 a {
    color: #216c76;
}

.contacts a:hover,
.submenu2 a:hover {
    color: #104957;
}

.contacts .myButton {
    display: inline-block;
    padding: 7px 12px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: var(--blue);
    box-shadow: none;
    font: 600 0.88rem "DM Sans",
    sans-serif;
    text-shadow: none;
}

.contacts .myButton:hover {
    color: #fff;
    background: var(--navy);
}

.submenu2 ul {
    padding-left: 18px;
}

.submenu2 li {
    margin: 5px 0;
}

.contact-text {
    margin: 12px 0;
    overflow-wrap: anywhere;
}

.sidebar1 .contacts .contact-text {
    text-align: left;
    white-space: nowrap;
}

.sidebar1 .contacts .contact-text > a {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.sidebar1 .contacts .contact-icon {
    flex: 0 0 19px;
    margin: 0 6px 0 0;
}

img.contact-icon {
    display: inline-block;
    width: 19px;
    height: 19px;
    margin: 0 7px 0 0;
    vertical-align: middle;
    object-fit: contain;
}

#ifh {
    display: block;
    margin-top: 22px;
    text-align: center;
}

#ifh img {
    display: block;
    max-width: 125px;
    margin: 0 auto 8px;
}

/* Right sidebar and pricing */

.sidebar2 {
    width: auto;
    min-width: 0;
    padding: 24px 18px;
    background: #f3f7f8;
    border-left: 1px solid var(--line);
}

#languages {
    min-height: 28px;
    text-align: right;
}

.flag {
    width: 28px;
    height: 20px;
    margin-left: 7px;
    border-radius: 4px;
    object-fit: cover;
    cursor: pointer;
    box-shadow: 0 1px 4px #17394a22;
}

.ceni {
    margin: 14px 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    font-size: 0.88rem;
}

.cenorazpis {
    width: 100%;
    border-collapse: collapse;
    color: #435b69;
    font-size: 0.82rem;
}

.cenorazpis th,
.cenorazpis td {
    padding: 9px 8px;
    border-bottom: 1px solid var(--line);
}

.cenorazpis th {
    color: var(--navy);
    text-align: left;
}

.cenorazpis tr:nth-child(even) {
    background: #f4f8f8;
}

#show {
    color: #146b77;
    font-weight: 600;
}

#hide {
    padding-left: 22px;
    color: var(--muted);
}

/* Main content */
.content,
.center {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: clamp(24px, 4vw, 54px);
    color: var(--ink);
    background: #fff;
    text-align: left;
    font: 400 1rem/1.75 "DM Sans",
    Arial,
    sans-serif;
}

.content > h1,
.content > h2,
.content h2,
.center h2,
.content h3,
.center h3 {
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.content > h2,
.content h2,
.center h2 {
    margin: 0 0 18px;
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}

.content > h1 {
    margin: 0 0 18px;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.content h3,
.center h3 {
    margin-top: 1.8rem;
    font-size: 1.22rem;
}

.content p,
.center p {
    max-width: 78ch;
    color: #405563;
}

.content a,
.center a {
    color: #146b77;
}

.content a:hover,
.center a:hover {
    color: #0c4f59;
}

#inf {
    padding: 0;
    text-align: left;
}

#main {
    display: block;
    width: 100%;
    max-width: 760px;
    max-height: 440px;
    margin: 0 auto 28px;
    border: 0;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 14px 32px #17394a26;
}

.center .content {
    margin: 0;
    padding: 26px 0 0;
    background: transparent;
}

.center #inf {
    padding: 0;
}

.section:has(.center) > .center {
    align-self: stretch;
}

/* Tables, media, and content details */
.content hr {
    margin: 22px 0;
    border-color: var(--line);
    opacity: 1;
}

.content .table {
    overflow-x: auto;
}

.content table:not(.tfooter):not(.cenorazpis) {
    max-width: 100%;
}

.content table img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.table th img {
    max-width: 145px;
    max-height: 145px;
}

.content .logoinstrument {
    max-width: 145px;
    width: auto;
    max-height: 76px;
    object-fit: contain;
}

.tinfo,
.tinfo2 {
    max-width: 100%;
    padding: 12px;
    border-radius: 14px;
    background: #edf4f5;
}

.tinfo tr:nth-child(even) td {
    background: #e3eeee;
    border-radius: 8px;
}

.sections li {
    margin: 0.65rem 0;
}

.media {
    width: 100%;
    border: 0;
    border-radius: 14px;
}

/* Home services heading and PDF download */
#divceni > h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 0;
}

#divceni > h3 > a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #edf4f5;
}

#divceni > h3 > a:hover {
    background: #dcebea;
}

#divceni > h3 > a img {
    display: block;
    width: 24px;
    height: 24px;
    margin: 0;
    border-radius: 0;
    object-fit: contain;
}

/* Profile page palette */
.content .orange,
.content .orange a {
    color: var(--blue);
}

.content .submenu {
    color: var(--muted);
}

.content .submenu a {
    color: #146b77;
}

.content .tinfo2 {
    padding: clamp(20px, 3vw, 34px);
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--ink);
    background: #f7fafb;
}

.content .tinfo2 h1 {
    color: var(--navy);
    font-family: "Manrope", sans-serif;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.content img.profile-picture {
    max-width: min(100%, 220px);
    height: auto;
    border: 4px solid #fff;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 12px 28px #17394a26;
}

.content .tinfo {
    width: 100%;
    margin: 16px 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--ink);
    background: #fff;
    overflow: hidden;
}

.content .tinfo td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}

.content .tinfo tr:nth-child(even) td {
    background: #f3f7f8;
}

.content .tinfo td p {
    margin: 0.45rem 0;
}

.content .tinfo h3 {
    margin: 0.25rem 0;
    color: var(--navy);
}

/* Site footer */
.footer {
    padding: 20px 26px;
    border-radius: 0;
    color: #d9e5e9;
    background: #102f46;
}

.footer .tfooter {
    width: 100%;
    height: auto;
    font-size: 0.82rem;
}

.footer .tfooter th {
    padding: 6px 10px;
    text-align: left;
}

.footer a {
    color: #d5e8e6;
}

.footer a:hover {
    color: #fff;
}

.footer em {
    color: #98b6bf;
}

/* Equipment page reading order */
main.content {
    display: flex;
    flex-direction: column;
}

main.content > h2 {
    order: 1;
    margin-bottom: 0;
}

main.content > #languages {
    order: 2;
    align-self: flex-end;
    margin: 0 0 1rem;
}

main.content > a:has(.logoinstrument) {
    order: 3;
    align-self: flex-end;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    min-height: 78px;
    margin: 0 0 1rem 1rem;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

main.content > article#inf {
    order: 4;
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f7fafb;
}

main.content > .table {
    order: 5;
    width: 100%;
    margin-top: 1.5rem;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f7fafb;
}

main.content > hr,
main.content > #arrow {
    display: none;
}

@media (max-width: 800px) {
    main.content > #languages {
        align-self: flex-start;
        order: 2;
        margin: 1rem 0;
    }

    main.content > a:has(.logoinstrument) {
        align-self: flex-start;
        order: 3;
        margin: 0 0 1.25rem;
    }

    main.content > article#inf {
        order: 4;
    }

    main.content > .table {
        order: 5;
        padding: 8px;
    }

    main.content > .contacts {
        order: 6;
    }
}

.scrollToTop {
    box-sizing: content-box;
    position: fixed;
    width: 50px;
    height: 50px;
    padding: 10px;
    right: 50px;
    bottom: 10px;
    z-index: 1000;
    border-radius: 50%;
    background-color: whitesmoke;
    background-image: url("../images/scrolltop.png");
    background-position: center;
    background-size: 50px 50px;
    background-repeat: no-repeat;
}

/* Profile page sticky navigation */
.sidebar1:has(#fixnav) {
    align-self: stretch;
}

#fixnav {
    position: sticky !important;
    top: 16px !important;
    width: auto !important;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Responsive layouts */
@media (max-width: 1100px) {
    .section,
    .section:has(.sidebar2) {
        grid-template-columns: 250px minmax(0, 1fr);
    }

    .sidebar2 {
        grid-column: 2;
        border-top: 1px solid var(--line);
        border-left: 0;
    }
}

@media (max-width: 800px) {
    body {
        padding: 0;
    }

    .container {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .header {
        padding: 76px 22px 34px;
    }

    .section,
    .section:has(.sidebar2) {
        display: block;
    }

    .sidebar1 {
        display: none;
    }

    .content,
    .center {
        display: block;
        padding: 25px 20px 34px;
    }

    .sidebar2 {
        display: block;
        padding: 22px 20px;
    }

    .center .content {
        padding: 24px 0 0;
    }

    .slicknav_menu {
        position: fixed;
        z-index: 5000;
        top: 0;
        left: 0;
        width: 100%;
        border-radius: 0;
        background: #102f46f7;
        font-family: "DM Sans", sans-serif;
    }

    .slicknav_btn {
        background: #197c83;
    }

    .slicknav_nav .current {
        border-radius: 7px;
    }

    .content .table {
        margin-right: -4px;
    }

    .table th img {
        width: 118px;
    }

    .footer {
        padding: 16px;
        overflow-x: auto;
    }

    .footer .tfooter {
        min-width: 600px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

.flag.langSelect {
    background-color: #336;
    padding: 3px;
    border-radius: 4px;
}


/* Home page map */
.contacts .gmap-container {
    clear: both;
    height: auto;
    margin: 1rem 0;
    padding: 0;
}

.contacts .gmap-container iframe.map {
    display: block;
    width: 100%;
    height: 180px;
}

@media (max-width: 800px) {
    .contacts .gmap-container iframe.map {
        height: 190px;
    }
}
