/***** GLOBAL *****/

:root {
    --main-color: #0f2a44;
    --main-text-color: #ffffff;
    --second-color: #ffffff;
    --second-text-color: #14202b;
    --third-color: #f2f4f7;
    --third-text-color: #14202b;
    --accent-color: #e8661c;
    --accent-text-color: #ffffff;
    --border-color: #dde2e8;
    --muted-text-color: #5b6673;
    --note-color: #fff6d6;
    --note-text-color: #6b4e00;
}

/* typography */
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: var(--second-color);
    color: var(--second-text-color);
}

h1, h2, h3, h4, h5, h6,
.heading {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.625rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }

p {
    margin-bottom: 1em;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.spec-font {
    font-family: Georgia, "Times New Roman", Times, serif;
}

/* layout */
.container {
    padding-left: 25px;
    padding-right: 25px;
}

main section {
    padding: clamp(56px, 8vw, 96px) 0;
}

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

/* buttons */
.t-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.85em 1.75em;
    border: 2px solid transparent;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s ease;
}

.t-btn svg {
    width: 18px;
    height: 18px;
}

.t-btn:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

.t-btn.theme {
    background: var(--main-color);
    border-color: var(--main-color);
    color: var(--main-text-color);
}

.t-btn.theme:hover {
    background: transparent;
    color: var(--main-color);
}

.t-btn.theme2 {
    background: var(--second-color);
    border-color: var(--second-color);
    color: var(--second-text-color);
}

.t-btn.theme2:hover {
    background: transparent;
    color: var(--second-color);
}

.t-btn.theme3 {
    background: transparent;
    border-color: var(--third-color);
    color: var(--third-color);
}

.t-btn.theme3:hover {
    background: var(--third-color);
    color: var(--third-text-color);
}

/* skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 2000;
    padding: 10px 16px;
    background: var(--main-color);
    color: var(--main-text-color);
}

.skip-link:focus {
    top: 16px;
}

/* shared elements */
.eyebrow {
    margin-bottom: 12px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-color);
}

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

.head .text {
    color: var(--muted-text-color);
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.todo-note {
    margin: 24px 0 0;
    padding: 10px 14px;
    border: 1px dashed var(--note-text-color);
    background: var(--note-color);
    color: var(--note-text-color);
    font-size: 0.875rem;
}

.todo-note::before {
    content: "Pracovná poznámka: ";
    font-weight: 700;
}

.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 24px;
    border: 1px dashed var(--border-color);
    background: repeating-linear-gradient(45deg, var(--third-color), var(--third-color) 12px, var(--second-color) 12px, var(--second-color) 24px);
    color: var(--muted-text-color);
    font-size: 0.875rem;
    text-align: center;
}

/* breadcrumbs */
.breadcrumbs {
    margin-bottom: 32px;
    font-size: 0.875rem;
}

.breadcrumbs .list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs li + li::before {
    content: "/";
    margin-right: 8px;
    opacity: 0.5;
}

.breadcrumbs a {
    opacity: 0.8;
    text-decoration: none;
}

.breadcrumbs a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* cards */
.card {
    height: 100%;
    padding: 32px;
    border: 1px solid var(--border-color);
    border-radius: 0;
    background: var(--second-color);
    color: var(--second-text-color);
}

a.card {
    text-decoration: none;
    transition: 0.3s ease;
}

a.card:hover {
    border-color: var(--main-color);
    transform: translateY(-4px);
}

.card .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    background: var(--third-color);
    color: var(--accent-color);
}

.card .icon svg {
    width: 28px;
    height: 28px;
}

.card .title a {
    text-decoration: none;
}

.card .title a:hover {
    text-decoration: underline;
}

.card .label {
    margin-bottom: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-color);
}

.card .text {
    color: var(--muted-text-color);
}

.more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 12px;
    font-weight: 600;
    text-decoration: none;
    color: var(--main-color);
}

.more svg {
    width: 18px;
    height: 18px;
    transition: 0.3s ease;
}

a.card:hover .more svg,
.more:hover svg {
    transform: translateX(4px);
}

/* lists */
.check-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 30px;
}

.check-list li::before {
    content: "";
    position: absolute;
    top: 0.35em;
    left: 4px;
    width: 8px;
    height: 14px;
    border-right: 3px solid var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
    transform: rotate(45deg);
}

.link-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.link-list li {
    border-bottom: 1px solid var(--border-color);
}

.link-list a {
    display: block;
    padding: 14px 0;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

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

.details {
    display: grid;
    grid-template-columns: minmax(110px, auto) 1fr;
    gap: 8px 16px;
    margin: 0;
}

.details dt {
    font-weight: 600;
}

.details dd {
    margin: 0;
    color: var(--muted-text-color);
}

/* tables */
main .table {
    --bs-table-bg: var(--second-color);
    --bs-table-color: var(--second-text-color);
    margin-bottom: 0;
    border-color: var(--border-color);
}

main .table thead th {
    background: var(--main-color);
    color: var(--main-text-color);
    font-weight: 600;
    vertical-align: top;
}

main .table th,
main .table td {
    padding: 14px 16px;
}

main .table-responsive {
    margin: 24px 0;
}

/* steps */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps .number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    background: var(--main-color);
    color: var(--main-text-color);
    font-weight: 700;
}

.steps .text {
    margin: 0;
    color: var(--muted-text-color);
}

/* cta box */
.cta-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    margin-top: 48px;
    padding: 28px 32px;
    border-left: 4px solid var(--accent-color);
    background: var(--second-color);
    color: var(--second-text-color);
}

.cta-box .text {
    max-width: 620px;
    margin: 0;
    font-weight: 600;
}

/* form */
.form-box {
    padding: clamp(24px, 4vw, 40px);
    background: var(--second-color);
    color: var(--second-text-color);
}

.form .form-label {
    font-weight: 600;
}

.form .form-control,
.form .form-select {
    padding: 0.75em 1em;
    border-color: var(--border-color);
    border-radius: 0;
}

.form .form-control:focus,
.form .form-select:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(15, 42, 68, 0.2);
}

.form .hint,
.form .privacy {
    margin: 8px 0 16px;
    font-size: 0.8125rem;
    color: var(--muted-text-color);
}

/* intro */
.intro-section {
    background: var(--main-color);
    color: var(--main-text-color);
}

main .intro-section {
    padding: 48px 0 72px;
}

.intro-section .content {
    max-width: 820px;
}

.intro-section .text {
    margin: 0;
    font-size: 1.125rem;
    opacity: 0.9;
}

/* faq */
.faq-section .accordion {
    --bs-accordion-border-radius: 0;
    --bs-accordion-inner-border-radius: 0;
    --bs-accordion-border-color: var(--border-color);
    --bs-accordion-active-bg: var(--second-color);
    --bs-accordion-active-color: var(--main-color);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 3px var(--accent-color);
}

.faq-section .accordion-button {
    font-weight: 600;
}

/* cta section */
.cta-section {
    background: var(--main-color);
    color: var(--main-text-color);
}

.cta-section .content {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.cta-section .text {
    font-size: 1.125rem;
    opacity: 0.9;
}

.cta-section .buttons {
    justify-content: center;
}

/* legal */
.legal-section .verified {
    padding: 24px;
    border: 1px solid var(--border-color);
    background: var(--second-color);
}

.legal-section .verified .label {
    margin-bottom: 4px;
    font-size: 0.875rem;
    color: var(--muted-text-color);
}

.legal-section .verified .value {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

/***** HEADER *****/

/* header */
.header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: var(--second-color);
    color: var(--second-text-color);
    border-bottom: 1px solid var(--border-color);
}

.header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

/* logo */
.header .logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--main-color);
}

/* navigation */
.header .menu {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header .item.dropdown {
    display: flex;
    align-items: center;
    gap: 2px;
}

.header .link {
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s ease;
}

.header .link:hover,
.header .link.active {
    color: var(--accent-color);
}

.header .toggle {
    display: inline-flex;
    padding: 4px;
    background: transparent;
    border: 0;
    color: inherit;
}

.header .toggle svg {
    width: 18px;
    height: 18px;
    transition: 0.3s ease;
}

.header .toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.header .submenu.dropdown-menu {
    min-width: 280px;
    padding: 8px 0;
    border-color: var(--border-color);
    border-radius: 0;
}

.header .dropdown-item {
    padding: 10px 20px;
}

.header .dropdown-item:hover,
.header .dropdown-item:focus {
    background: var(--third-color);
    color: var(--accent-color);
}

.header .link:focus-visible,
.header .toggle:focus-visible,
.header .toggler:focus-visible,
.header .close:focus-visible,
.header .phone:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

/* actions */
.header .actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header .phone,
.header .toggler,
.header .close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5em;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
}

.header .phone svg {
    width: 24px;
    height: 24px;
}

.header .toggler svg,
.header .close svg {
    width: 28px;
    height: 28px;
}

/* offcanvas */
.header .offcanvas {
    background: var(--second-color);
    color: var(--second-text-color);
}

.header .offcanvas-header {
    justify-content: space-between;
    padding: 16px 25px;
    border-bottom: 1px solid var(--border-color);
}

.header .offcanvas-body {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 24px 25px;
}

.header .offcanvas .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.header .offcanvas .link {
    font-size: 1.25rem;
}

.header .offcanvas .submenu {
    margin: 8px 0 0;
    padding: 0 0 0 16px;
    border-left: 2px solid var(--border-color);
    list-style: none;
}

.header .offcanvas .sublink {
    display: block;
    padding: 4px 0;
    text-decoration: none;
    color: var(--muted-text-color);
}

.header .offcanvas .contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.header .offcanvas .contact .item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    text-decoration: none;
}

.header .offcanvas .contact svg {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
}

/***** HOME *****/

/* hero */
.home-page .hero-section {
    background: var(--main-color);
    color: var(--main-text-color);
}

.home-page .hero-section .text {
    font-size: 1.125rem;
    opacity: 0.9;
}

.home-page .hero-section .image {
    min-height: 420px;
}

/* services */
.home-page .services-section .card {
    display: flex;
    flex-direction: column;
}

/* sectors */
.home-page .sectors-section .list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-page .sectors-section .item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--second-color);
    font-weight: 600;
}

.home-page .sectors-section .item svg {
    flex-shrink: 0;
    color: var(--accent-color);
}

/* case */
.home-page .case-section .case {
    display: grid;
    gap: 16px;
}

.home-page .case-section .part {
    padding: 24px;
    border-left: 4px solid var(--accent-color);
    background: var(--third-color);
}

.home-page .case-section .part .text {
    margin: 0;
}

/* cta */
.home-page .cta-section .content {
    margin: 0;
    text-align: left;
}

/***** ABOUT *****/

/* story */
.about-page .story-section .image {
    min-height: 380px;
}

/* team */
.about-page .team-section .photo {
    min-height: 240px;
    margin-bottom: 20px;
}

.about-page .team-section .title {
    margin-bottom: 4px;
}

.about-page .team-section .role {
    font-weight: 600;
    color: var(--accent-color);
}

/* company */
.about-page .company-section .details {
    max-width: 640px;
}

/***** SERVICES *****/

/* list */
.services-page .list-section .card {
    display: flex;
    flex-direction: column;
}

.services-page .list-section .sublist {
    margin: 0 0 8px;
    padding-left: 20px;
}

.services-page .list-section .sublist a {
    text-decoration: none;
}

.services-page .list-section .sublist a:hover {
    text-decoration: underline;
}

/* guide */
.services-page .guide-section .item {
    height: 100%;
    padding: 24px 28px;
    background: var(--second-color);
}

.services-page .guide-section .situation {
    font-size: 1.0625rem;
}

.services-page .guide-section .link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    text-decoration: none;
    color: var(--main-color);
}

.services-page .guide-section .link svg {
    width: 18px;
    height: 18px;
}

/* service detail */
.service-detail-page .card {
    display: flex;
    flex-direction: column;
}

.service-detail-page .card .details {
    margin-top: auto;
    padding-top: 16px;
}

.service-detail-page .head + .todo-note {
    margin: -16px 0 32px;
}

.service-detail-page .programs-section .title {
    margin-bottom: 20px;
}

/***** SECTORS *****/

.sectors-page .list-section .card {
    display: flex;
    flex-direction: column;
}

.sectors-page .list-section .label {
    margin-top: 8px;
}

/***** REFERENCES *****/

.references-page .list-section .todo-note {
    margin: 0 0 32px;
}

.references-page .list-section .card {
    display: flex;
    flex-direction: column;
}

.references-page .list-section .details {
    grid-template-columns: 1fr;
    gap: 4px;
    margin-bottom: 16px;
}

.references-page .list-section .details dd {
    margin-bottom: 12px;
}

.references-page .clients-section .logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.references-page .clients-section .logo {
    min-height: 100px;
}

/***** BLOG *****/

/* list */
.blog-page .list-section .card {
    display: flex;
    flex-direction: column;
}

.blog-page .list-section .soon {
    margin-top: auto;
    padding-top: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted-text-color);
}

/* article */
.article-page .intro-section .meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.9375rem;
    opacity: 0.9;
}

.article-page .intro-section .meta li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.article-page .intro-section .meta svg {
    width: 18px;
    height: 18px;
}

.article-page .content-section .body {
    max-width: 760px;
    font-size: 1.0625rem;
}

.article-page .content-section .body h2 {
    margin-top: 48px;
    scroll-margin-top: 100px;
}

.article-page .content-section .body h3 {
    margin-top: 28px;
}

.article-page .content-section .todo-note {
    margin: 0 0 24px;
}

.article-page .content-section .sidebar {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 24px;
}

.article-page .content-section .toc,
.article-page .content-section .service-box {
    padding: 24px;
    background: var(--third-color);
}

.article-page .content-section .sidebar .title {
    font-weight: 700;
}

.article-page .content-section .toc .list {
    margin: 0;
    padding-left: 20px;
}

.article-page .content-section .toc a {
    text-decoration: none;
}

.article-page .content-section .toc a:hover {
    text-decoration: underline;
}

/***** CONTACT *****/

/* contact */
.contact-page .contact-section .form-box {
    border: 1px solid var(--border-color);
}

.contact-page .contact-section .info {
    padding: clamp(24px, 4vw, 40px);
    background: var(--third-color);
}

.contact-page .contact-section .list {
    display: grid;
    gap: 20px;
    margin: 24px 0 32px;
    padding: 0;
    list-style: none;
}

.contact-page .contact-section .item {
    display: flex;
    gap: 16px;
}

.contact-page .contact-section .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--main-color);
    color: var(--main-text-color);
}

.contact-page .contact-section .icon svg {
    width: 20px;
    height: 20px;
}

.contact-page .contact-section .label {
    display: block;
    font-size: 0.8125rem;
    color: var(--muted-text-color);
}

.contact-page .contact-section .item a {
    font-weight: 600;
    text-decoration: none;
}

/* map */
.contact-page .map-section {
    padding: 0;
}

.contact-page .map-section .map {
    min-height: 360px;
}

/***** PRIVACY *****/

.privacy-page .content-section .body {
    max-width: 760px;
}

.privacy-page .content-section .body h2 {
    margin-top: 40px;
    font-size: 1.375rem;
}

.privacy-page .content-section .todo-note {
    margin: 0 0 24px;
}

/***** ERROR *****/

.error-page .intro-section {
    padding: 120px 0;
}

/***** FOOTER *****/

/* main */
.footer {
    background: var(--main-color);
    color: var(--main-text-color);
}

.footer .main {
    padding: 64px 0 40px;
}

.footer .logo {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.footer .text {
    max-width: 340px;
    opacity: 0.8;
}

.footer .title {
    margin-bottom: 16px;
    font-weight: 700;
}

/* links */
.footer .links {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer a {
    text-decoration: none;
    transition: 0.3s ease;
}

.footer .links a,
.footer .contact a {
    opacity: 0.85;
}

.footer .links a:hover,
.footer .contact a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* contact */
.footer .contact {
    display: grid;
    gap: 12px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.footer .contact li {
    display: flex;
    gap: 10px;
}

.footer .contact svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 4px;
    color: var(--accent-color);
}

.footer .company {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* bottom */
.footer .bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.875rem;
}

.footer .bottom .text {
    margin: 0;
}

.footer .bottom .link {
    opacity: 0.8;
}

.footer .bottom .link:hover {
    opacity: 1;
    text-decoration: underline;
}
