/* Typography system */
:root {
    --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Code", monospace;

    /* Default palette — Soft Plum Medical (ex ?pl=4) */
    --color-bg-site: #FAF7FA;
    --color-bg-card: #FFFFFF;
    --color-text: #28242A;
    --color-heading: #34213D;
    --color-text-muted: #666666;
    --color-accent: #72517D;
    --color-accent-strong: #34213D;
    --color-accent-mid: #72517D;
    --color-accent-light: #8A6696;
    --color-accent-soft: #E4D7E8;
    --color-accent-detail: #BDA071;
    --color-divider: #E4D7E8;
    --color-btn: #34213D;
    --color-btn-hover: #281A30;
    --color-footer-bg: #34213D;
    --color-footer-hover: #E4D7E8;
    --color-hero-bg: #34213D;
    --color-hero-inner: #FFFFFF;
    --color-link: #72517D;
    --color-link-hover: #34213D;
    --color-nav-hover: #72517D;
    --color-card-hover-bg: #FAF7FA;
    --color-focus: #72517D;
    --bs-primary: #34213D;
    --bs-primary-rgb: 52, 33, 61;

    --brand: var(--color-accent);
    --brand-dark: var(--color-accent-strong);
    --brand-mid: var(--color-accent-mid);
    --brand-light: var(--color-accent-light);
    --brand-hover: var(--color-footer-hover);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.16);
    --transition-elevation: transform 0.25s ease, box-shadow 0.25s ease;

    --letter-spacing-heading: -0.02em;
    --line-height-body: 1.6;
    --line-height-heading: 1.2;
}

a[href^="tel:"] {
    white-space: nowrap;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    height: 100%;
    margin: 0;
    font-size: 15px;
}

@media (max-width: 900px) {
    body {
        font-size: 12px;
    }


}

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


main {
    flex: 1;
    width: 100%;
    padding-top: 5px;
    background-color: var(--color-bg-site);
}

header {
    width: 100%;
    min-height: 100px;
    display: flex;
    align-items: center;
    color: black;

}

/*.header_items{*/
/*    display: flex;*/
/*    gap: 8px;*/
/*}*/


.site-footer {
    padding: 1rem 0;
    background-color: var(--color-footer-bg);
    margin-top: 30px;
}

.site-footer__title {
    font-family: var(--font-sans);
    font-weight: 600;
}

.site-footer__link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer__link:hover {
    color: var(--color-footer-hover);
}

.site-footer .small_text {
    text-align: center;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .site-footer__copy,
    .site-footer .col-lg-4:nth-child(2) {
        text-align: start;
    }
}

.small_text {
    font-size: 11px;
}

.company_items_footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    justify-content: center;
}

.service_title a {
    text-decoration: none;
    color: black;
}

.bg-line1 {
    background-color: #8cabdd;
}

.bg-line2 {
    background-color: white;
}

.bg-lineA1 {
    background-color: #7bdcc4;
}

.bg-lineA2 {
    background-color: #d5f4ec;
}

.bg-lineB1 {
    background-color: #ebe7d5;
}

.bg-lineB2 {
    background-color: #d9d0af;
}

.bg-lineC1 {
    background-color: #f3e2de;
}

.bg-lineC2 {
    background-color: #e4bdb3;
}

.mytem-title {
    background-color: #A7BEAE;
}

.mytem-body {
    background-color: #E7E8D1;
}

body {
    font-family: var(--font-sans);
    line-height: var(--line-height-body);
    background-color: var(--color-bg-site);
    color: var(--color-text);
    margin: 0;
}

p,
li,
td,
th,
label,
input,
textarea,
select,
button {
    line-height: var(--line-height-body);
}

h1,
h2,
.h1,
.h2,
.hero-title,
.page-title {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: var(--letter-spacing-heading);
    line-height: var(--line-height-heading);
}

h1,
.h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h2,
.h2,
.hero-title,
.page-title {
    font-size: clamp(1.5rem, 3.2vw, 2rem);
}

h3,
h4,
.h3,
.h4,
.card-title {
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

h3,
.h3 {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
}

h4,
.h4 {
    font-size: clamp(1rem, 2vw, 1.125rem);
}

h5,
h6,
.h5,
.h6 {
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.35;
}

.lead,
.intro-text,
.section-subtitle {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: var(--line-height-body);
    letter-spacing: 0;
}

.navbar,
.nav-link,
.btn,
.form-control,
.form-select,
.form-label,
.card,
.dropdown-menu,
.modal,
.list-group-item {
    font-family: var(--font-sans);
}

.service-code,
.code_category,
.small_text code,
kbd,
pre,
samp {
    font-family: var(--font-mono);
    font-weight: 400;
    letter-spacing: 0;
}

.service-code {
    font-size: 0.9em;
    font-variant-numeric: tabular-nums;
}

h1 {
    color: var(--color-heading);
    text-align: center;
}

h2,
.hero-title,
.page-title {
    color: var(--color-heading);
}

.text-primary {
    color: var(--color-accent) !important;
}

.btn-primary {
    background-color: var(--color-btn);
    border-color: var(--color-btn);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-btn-hover);
    border-color: var(--color-btn-hover);
}

.search-form {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #b3e5fc;
}

.search-form label {
    display: block;
    margin-bottom: 8px;
    color: #0277bd;
}

.search-form input[type="text"],
.search-form input[type="number"],
.search-form select {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #81d4fa;
    border-radius: 4px;
    background-color: #e1f5fe;
}

.search-form input[type="submit"] {
    background-color: #0288d1;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
}

.search-form input[type="submit"]:hover {
    background-color: #0277bd;
}

.results {
    max-width: 600px;
    margin: 20px auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #b3e5fc;
}

.result {
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.result a {
    color: #01579b;
    text-decoration: none;
    font-weight: bold;
}

.result a:hover {
    text-decoration: underline;
}

.summary {
    color: #455a64;
}

/*styles for documentation.html above*/
.documents {
    display: flex;
    justify-content: center;
}

.documents_pics {
    display: flex;
    justify-content: center;

}

.list-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.documentation_title {
    padding-bottom: 10px;
}

.list-group-item {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-divider);
    transition: var(--transition-elevation);
    font-size: 1.2rem;
    padding: 1.5rem;
    max-width: 1000px;
    box-shadow: var(--shadow-sm);
}


.list-group-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}


.list-group-item a {
    color: black;
    text-decoration: none;
    text-underline: none;
    transition: color 0.3s ease-in-out;
    display: flex;
    align-items: center;
    padding-bottom: 20px;
}


.list-group-item a:hover {
    color: var(--color-link-hover);
}


.list-group-item i {
    font-size: 1.5rem;
    color: #6c757d;
    margin-right: 10px;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}


.list-group-item:hover i {
    color: var(--color-link);
    transform: scale(1.3);
}

.list-group-item img {
    margin-right: 5px;
    width: 30px;
}

/*styles for documentation.html above*/

/* Shared page layout */
.page-content {
    width: 100%;
}

.page-header {
    padding: 1.5rem 0 1rem;
}

.page-header:not(.page-header--start) {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-header--start {
    text-align: start;
}

.page-header .page-title {
    margin-bottom: 0;
    width: 100%;
}

.page-header:not(.page-header--start) .page-title {
    text-align: center;
    text-wrap: balance;
}

.page-header .section-subtitle {
    margin: 0.75rem 0 0;
    max-width: 42rem;
}

.page-header--start .section-subtitle {
    margin-left: 0;
    margin-right: auto;
}

.page-header:not(.page-header--start) .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.page-section {
    padding: 1.5rem 0 2.5rem;
}

.page-section--tight {
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
}

.section-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-heading h2 {
    margin-bottom: 0;
}

.doc-pdf-icon {
    width: 40px;
    height: auto;
    flex-shrink: 0;
}

/*styles for team.html below*/

.specialists_block {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.specialist {
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    border: 1px solid var(--color-divider);
    border-radius: 10px;
    background-color: var(--color-bg-card);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-elevation);
}

.specialist:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    background-color: var(--color-card-hover-bg);
}

.specialist_img {
    display: flex;
    justify-content: center;
    padding-bottom: 8px;
}

.specialist-avatar {
    display: block;
    width: 200px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    color: var(--color-footer-bg);
    transition: transform 0.3s ease, color 0.3s ease;
}

.specialist:hover .specialist-avatar {
    transform: scale(1.05);
}

.specialist-name {
    font-size: 1.25rem;
    text-align: center;
    margin: 0 0 0.25rem;
    color: #333;
}

.specialist_job, .job_description {
    text-align: center;
    font-size: 15px;
    color: #666;
}

.specialist_job {
    font-size: 14px;
    color: #7a7a7a;
    padding-bottom: 10px;
}

.job_description {
    font-size: 15px;
    padding-top: 5px;
}

/*styles for team.html above*/


/*styles for supervisory_authorities.html below*/
.specialist-name,
.specialist_job,
.job_description {
    transition: color 0.3s ease;
}

.specialist:hover .specialist-name,
.specialist:hover .specialist_job,
.specialist:hover .job_description {
    color: var(--color-link);
}


.contact-info-section {
    padding: 0 0 1.25rem;
}

.contact-info-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--color-bg-card);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-elevation);
}

.contact-info-box:hover {
    box-shadow: var(--shadow-lg);
}

.contact-info-section a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.contact-info-section a:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

.info-number {
    font-weight: bold;
    color: #555;
}

/*styles for supervisory_authorities.html above*/


/*styles for price.html below*/


.table-responsive {
    overflow-x: auto;


}

.service_title {
    background-color: #9fc5e8;
    text-align: center;

}

.sub_service_title {

    text-align: center;

}


.service_cell {
    padding: 10px 0;


}

.cell_menu, .menu_categories {
    margin: 0 !important;
}

.code_category {

    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;

}


.menu_category {
    padding: 20px 0 !important;

    display: flex;
    align-items: center;
    justify-content: center;

}


@media (max-width: 1000px) {
    .cell_menu {
        text-align: center;
    }


}


@media (max-width: 850px) {
    .table-responsive {
        font-size: 14px;

    }
}


/* Price list table typography */
.price-table thead th {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.price-table .group-row strong {
    font-family: var(--font-sans);
    font-weight: 600;
}

.price-table .col-code {
    width: 80px;
}

.price-table .col-eta {
    width: 120px;
}

.price-table .col-price {
    width: 120px;
}

.group-row {
    border-bottom: 2px solid #dee2e6 !important;
}

.level-0 { background-color: rgba(108, 117, 125, 0.1) !important; }
.level-1 { background-color: rgba(108, 117, 125, 0.07) !important; }
.level-2 { background-color: rgba(108, 117, 125, 0.05) !important; }
.level-3 { background-color: rgba(108, 117, 125, 0.03) !important; }
.level-4 { background-color: rgba(108, 117, 125, 0.02) !important; }

.service-row {
    background-color: rgba(40, 167, 69, 0.02) !important;
}

/*styles for price.html above*/

.card {
    background-color: var(--color-bg-card);
}

/*styles for main.html below*/

.menu_nav {
    display: flex !important;
    justify-content: center !important;
    padding: 20px 0 !important;
}

.menu_nav_items {
    align-items: center !important;
    flex-direction: row !important;
    gap: 10px;
}

.dropdown-menu_main {
    max-width: 100px !important;
}

.nav-link {
    color: black !important;

}

.nav-link:hover {
    color: var(--color-nav-hover) !important;

}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
}

.burger_menu {
    display: flex;
    align-items: center;
}

.burger_button {
    background-color: var(--color-accent-light) !important;
}


.phone_item {

    font-weight: bold !important;


}

@media (max-width: 950px) {
    /*.menu_nav {*/
    /*    display: none !important;*/

    /*}*/

    .nav-item {
        border-bottom: 1px solid var(--color-accent-soft) !important;
    }

    .nav-item:hover {
        background-color: var(--color-accent-soft);
        transition: background-color 0.3s ease;

    }

    .nav-item:hover .nav-link {
        color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;
        transition: color 0.3s ease;
    }


    /*.burger_nav {*/
    /*    display: block !important;*/

    /*}*/


    .nav-link {
        padding-left: 15px !important;
        font-size: 20px;


    }
}

@media (max-width: 1125px) {
    .page-header .page-title {
        font-size: 1.875rem;
    }
}

@media (max-width: 500px) {
    .page-header .page-title {
        font-size: 1.5625rem;
    }

    .page-section {
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 415px) {
    .page-header .page-title {
        font-size: 1.25rem;
    }
}


/* Cookie consent banner (main.html) */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 15px 0;
    z-index: 1050;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

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

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-consent-text {
    flex: 1;
    min-width: 200px;
}

.cookie-consent-text p {
    margin: 0 0 0.5rem;
}

.cookie-consent-text p:last-child {
    margin-bottom: 0;
    font-size: 12px;
    color: #666;
}

.cookie-consent-text p:first-child {
    font-size: 14px;
    color: #333;
}

.cookie-consent-text a {
    color: var(--color-link);
    text-decoration: underline;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent-buttons {
        justify-content: center;
    }
}
