/* Utilitas I.T. – site styles */

:root {
    --bg: #f4f5f7;
    --surface: #ffffff;
    --surface-2: #fafafb;
    --ink: #16181d;
    --ink-2: #3d4452;
    --muted: #667085;
    --line: #e4e7ec;
    --dark: #1b1d21;
    --dark-2: #26282c;
    --on-dark: #e9ebef;
    --on-dark-muted: #b4bac5;
    --accent: #f07c1b;
    --accent-strong: #c2570a;
    --accent-strong-hover: #a24806;
    --accent-soft: #fff3e8;
    --radius-lg: 28px;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -12px rgba(16, 24, 40, .14);
    --container: 1200px;
    --header-gap: 12px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}

html:has(dialog[open]) {
    overflow: hidden;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--accent-strong);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--accent-strong-hover);
}

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--ink);
}

p {
    margin: 0 0 1em;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--dark);
    color: #fff;
    font-weight: 600;
}

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

.eyebrow {
    margin: 0 0 .75rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-sm {
    padding: 9px 16px;
    font-size: .9rem;
}

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

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

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

.btn-ghost:hover {
    border-color: #fff;
    color: #fff;
}

.btn-outline {
    border-color: var(--line);
    background: var(--surface);
    color: var(--ink);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--ink);
}

.btn-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent-strong);
}

.btn-link::after {
    content: "→";
    transition: transform .2s;
}

.btn-link:hover {
    transform: none;
    color: var(--accent-strong-hover);
}

.btn-link:hover::after {
    transform: translateX(3px);
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding-top: var(--header-gap);
}

/* Once the page scrolls, a frosted band behind the floating nav separates it from the content underneath. */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0 0 -16px;
    z-index: -1;
    background: rgba(244, 245, 247, .82);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
    mask-image: linear-gradient(to bottom, #000 70%, transparent);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

.site-header.is-scrolled::before {
    opacity: 1;
}

.nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 8px 10px 8px 18px;
    border-radius: 18px;
    background: rgba(27, 29, 33, .94);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    backdrop-filter: saturate(140%) blur(10px);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .25s;
}

.site-header.is-scrolled .nav {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 2px 6px rgba(16, 24, 40, .12), 0 16px 36px -12px rgba(16, 24, 40, .5);
}

.nav-brand img {
    width: auto;
    height: 44px;
}

.nav-menu {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-links {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    display: block;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--on-dark);
    font-size: .95rem;
    font-weight: 500;
    text-decoration: none;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--on-dark);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
}

.nav-lang:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.nav-lang img {
    width: 20px;
    height: 20px;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    border-radius: 2px;
    background: #fff;
    transition: transform .2s, background-color .2s;
}

.nav-toggle-bar {
    position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-bar::before {
    top: -6px;
}

.nav-toggle-bar::after {
    top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
    transform: translateY(-6px) rotate(-45deg);
}

/* Hero */

.hero {
    padding-top: 20px;
}

.hero-card {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 540px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--dark);
    color: var(--on-dark);
}

.hero-text {
    position: relative;
    z-index: 1;
    width: 54%;
    padding: 64px 0 56px 56px;
}

.hero-text .eyebrow {
    color: var(--accent);
}

.hero h1 {
    font-size: clamp(2rem, 4.2vw, 3.3rem);
    line-height: 1.08;
    letter-spacing: -.03em;
    color: #fff;
}

.lead {
    max-width: 34em;
    font-size: 1.08rem;
    color: var(--on-dark-muted);
}

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

.hero-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 24px;
    margin: 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.hero-facts dt {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.01em;
}

.hero-facts dd {
    margin: 0;
    font-size: .85rem;
    line-height: 1.4;
    color: var(--on-dark-muted);
}

.hero-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 62%;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 65% center;
}

/* Fade the photo (and its transparent diagonal edge) into the card background. */
.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--dark) 0%, rgba(27, 29, 33, .9) 28%, rgba(27, 29, 33, 0) 64%);
}

.partners {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.partners li {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 112px;
    padding: 14px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.partners img {
    max-height: 64px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .75;
    transition: filter .25s, opacity .25s;
}

.partners li:hover img {
    filter: none;
    opacity: 1;
}

.certs-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    margin-top: 16px;
    padding: 16px 16px 16px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s;
}

.certs-strip:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    color: var(--ink);
}

.certs-text {
    display: grid;
    gap: 2px;
}

.certs-text strong {
    font-size: 1.05rem;
}

.certs-text span {
    font-size: .9rem;
    color: var(--muted);
}

.certs-logos {
    display: flex;
    gap: 12px;
}

.certs-logos img {
    width: auto;
    height: 72px;
    border-radius: 8px;
}

/* Sections */

.section {
    padding: 96px 0;
}

.section-alt {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

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

.section-head h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.section-head p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.section-alt .card {
    background: var(--surface-2);
    box-shadow: none;
}

.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* About */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.lead-dark {
    font-size: 1.15rem;
    color: var(--ink);
}

.about-text p {
    color: var(--ink-2);
}

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

.tags li {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: .85rem;
    font-weight: 500;
    color: var(--ink-2);
}

.quote {
    margin: 0;
    padding: 20px 24px;
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--accent-soft);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink);
}

.about-side {
    display: grid;
    align-content: start;
    gap: 16px;
}

.highlight {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
}

.highlight img {
    flex: 0 0 96px;
    width: 96px;
    border-radius: 8px;
}

.highlight p {
    margin: 0;
    font-size: .9rem;
    line-height: 1.5;
    color: var(--ink-2);
}

.box-card {
    order: -1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 230px;
    padding: 16px;
    background: radial-gradient(60% 80% at 50% 60%, var(--accent-soft) 0%, var(--surface) 100%);
}

.box-card img {
    width: auto;
    max-height: 196px;
}

.value-num {
    display: inline-block;
    margin-bottom: 12px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--accent-strong);
    letter-spacing: .1em;
}

.value h3 {
    font-size: 1.3rem;
}

.value ul,
.tab-panel ul,
.modal-body ul {
    margin: 0 0 1em;
    padding-left: 1.2em;
}

.value li {
    margin-bottom: .5em;
    color: var(--ink-2);
}

.value li::marker,
.tab-panel li::marker,
.modal-body li::marker {
    color: var(--accent);
}

/* Products */

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

.product-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 112px;
    margin-bottom: 20px;
    padding: 18px 24px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--line);
}

.product-logo img {
    max-height: 72px;
    width: auto;
    object-fit: contain;
}

.product h3 {
    font-size: 1.2rem;
}

.product p {
    flex: 1;
    color: var(--ink-2);
}

.product .btn-link {
    align-self: flex-start;
}

/* Services */

.tab-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    font: inherit;
    font-weight: 600;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}

.tab img {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.tab:hover {
    border-color: #d0d5dd;
}

.tab[aria-selected="true"] {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 1px var(--accent) inset;
}

.tab-panel {
    padding: 36px 40px;
}

.tab-panel[hidden] {
    display: none;
}

.tab-panel h3 {
    font-size: 1.5rem;
}

.tab-panel p,
.tab-panel li {
    max-width: 78ch;
    color: var(--ink-2);
}

.tab-panel h4 {
    font-size: 1rem;
    margin-top: .5em;
}

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin: 8px 0;
}

.note {
    font-size: .9rem;
}

.callout {
    margin: 8px 0 0;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--ink) !important;
    font-weight: 500;
}

.release {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 40px;
    margin-top: 24px;
    padding: 36px 40px;
}

.release-media {
    display: grid;
    align-content: start;
    gap: 16px;
}

.release-media img {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.release-body h3 {
    font-size: 1.4rem;
}

.release-body p {
    max-width: 78ch;
    color: var(--ink-2);
}

/* News */

.news + .news {
    margin-top: 24px;
}

.news-tag {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: .8rem;
    font-weight: 700;
}

.news-tag-muted {
    background: var(--bg);
    color: var(--muted);
}

.news {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    padding: 36px;
}

.news-emblem {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
}

.news-body h3 {
    font-size: 1.3rem;
}

.news-body p {
    color: var(--ink-2);
}

.facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0 28px;
}

.facts dt {
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
}

.facts dd {
    margin: 2px 0 0;
    font-weight: 600;
}

/* Contact */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 24px;
}

.contact-info {
    display: grid;
    gap: 16px;
    align-content: start;
}

.info {
    padding: 22px 24px;
}

.info h3 {
    font-size: 1rem;
    margin-bottom: .75em;
}

.info p {
    margin: 0;
    color: var(--ink-2);
}

.rows {
    display: grid;
    gap: 10px;
    margin: 0;
}

.rows > div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 12px;
}

.rows dt {
    font-size: .875rem;
    color: var(--muted);
}

.rows dd {
    margin: 0;
    font-weight: 500;
}

.rows a {
    color: var(--ink);
    text-decoration: none;
}

.rows a:hover {
    color: var(--accent-strong);
    text-decoration: underline;
}

.form-card {
    padding: 32px;
}

.form-card h3 {
    font-size: 1.3rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field {
    display: grid;
    gap: 6px;
}

.field-wide {
    grid-column: 1 / -1;
}

.field label {
    font-size: .875rem;
    font-weight: 600;
    color: var(--ink-2);
}

.field input,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d5dd;
    border-radius: var(--radius-sm);
    background: #fff;
    font: inherit;
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
}

.field textarea {
    min-height: 150px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(240, 124, 27, .18);
}

.field [aria-invalid="true"] {
    border-color: #d92d20;
}

.form-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin-top: 20px;
}

.form-footer small {
    flex: 1 1 260px;
    font-size: .78rem;
    line-height: 1.5;
    color: var(--muted);
}

.alert {
    margin-bottom: 16px;
    padding: 12px 16px;
    border: 1px solid;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.alert-success {
    border-color: #abefc6;
    background: #ecfdf3;
    color: #067647;
}

.alert-error {
    border-color: #fecdca;
    background: #fef3f2;
    color: #b42318;
}

.grecaptcha-badge {
    visibility: hidden;
}

.map {
    margin-top: 24px;
    padding: 0;
    overflow: hidden;
}

.map iframe {
    display: block;
    width: 100%;
    height: 380px;
    border: 0;
}

/* Footer */

.site-footer {
    padding-bottom: 24px;
}

.footer-card {
    padding: 48px;
    border-radius: var(--radius-lg);
    background: var(--dark);
    color: var(--on-dark-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr .8fr 1.6fr 1fr;
    gap: 40px;
}

.footer-card h4 {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
}

.footer-card a {
    color: var(--on-dark);
    text-decoration: none;
}

.footer-card a:hover {
    color: var(--accent);
}

.footer-brand img {
    width: auto;
    height: 52px;
    margin-bottom: 16px;
}

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

.small {
    font-size: .85rem;
    line-height: 1.6;
}

.footer-eu img {
    padding: 10px;
    border-radius: var(--radius-sm);
    background: #fff;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .875rem;
}

/* News page */

.page-head {
    padding-top: 56px;
}

.page-head h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -.03em;
}

.section-tight {
    padding-top: 24px;
}

.narrow {
    max-width: 920px;
}

.article {
    padding: 40px 48px;
}

.article + .article {
    margin-top: 32px;
}

.article h2 {
    font-size: 1.6rem;
}

.article h3 {
    margin-top: 1.4em;
    font-size: 1.15rem;
}

.article p,
.article li {
    color: var(--ink-2);
}

.article ul,
.article ol {
    padding-left: 1.2em;
}

.article li::marker {
    color: var(--accent);
}

.article-emblem {
    width: 280px;
    margin: 4px 0 24px;
}

.article-emblems {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.article-emblems img {
    width: 260px;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.not-found {
    max-width: 720px;
    padding-bottom: 96px;
}

/* Dialogs */

.modal {
    width: min(780px, calc(100% - 32px));
    max-height: min(86vh, 900px);
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45);
    color: var(--ink);
}

.modal::backdrop {
    background: rgba(12, 14, 18, .6);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.modal-inner {
    display: flex;
    flex-direction: column;
    max-height: inherit;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 28px;
    border-bottom: 1px solid var(--line);
}

.modal-head h3 {
    margin: 0;
    font-size: 1.2rem;
}

.modal-close {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: var(--bg);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.modal-close:hover {
    background: var(--line);
}

.modal-body {
    padding: 24px 28px 28px;
    overflow-y: auto;
}

.modal-body p,
.modal-body li {
    color: var(--ink-2);
}

.modal-figure {
    margin: 8px 0 20px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

/* Cookie notice */

.cookie {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 560px;
    margin-left: auto;
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--dark);
    color: var(--on-dark);
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5);
    font-size: .9rem;
    line-height: 1.5;
}

.cookie[hidden] {
    display: none;
}

.cookie p {
    margin: 0;
}

/* Responsive */

@media (max-width: 1180px) {
    .hero-text {
        width: 58%;
    }

    /* The text column is narrow here: four facts would break "ISO 27001" over two lines. */
    .hero-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-media {
        width: 54%;
    }

    .hero-media img {
        object-position: 70% center;
    }
}

@media (max-width: 1080px) {
    .nav-links a {
        padding: 8px 9px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 960px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
        border-radius: 18px;
        background: var(--dark);
        box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5);
    }

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

    .nav-links {
        flex-direction: column;
    }

    .nav-links a {
        padding: 12px 14px;
        font-size: 1rem;
    }

    .nav-actions {
        justify-content: space-between;
        padding: 8px 4px 4px;
        border-top: 1px solid rgba(255, 255, 255, .1);
    }

    .hero-card {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
    }

    .hero-text {
        width: auto;
        padding: 8px 32px 40px;
    }

    .hero-facts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hero-media {
        position: relative;
        order: -1;
        width: auto;
        height: 300px;
    }

    .hero-media img {
        object-position: 55% 40%;
    }

    .hero-media::after {
        background: linear-gradient(0deg, var(--dark) 0%, rgba(27, 29, 33, 0) 55%);
    }

    .partners {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Three logos in two columns: the last one takes the whole row. */
    .partners li:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cards-3 {
        grid-template-columns: 1fr;
    }

    .tab-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news,
    .release {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .release-media {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 560px;
    }

    .release-media img:last-child {
        grid-column: 1 / -1;
        max-width: 272px;
    }

    .news-emblem {
        max-width: 320px;
    }

    .facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    /* Only the side padding: .hero also uses .container and keeps its top padding. */
    .container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .section {
        padding: 64px 0;
    }

    .nav-brand img {
        height: 38px;
    }

    .hero-text {
        padding: 4px 24px 32px;
    }

    .hero-media {
        height: 220px;
    }

    .hero-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 24px;
    }

    .partners li {
        height: 88px;
        padding: 12px 16px;
    }

    .partners img {
        max-height: 48px;
    }

    .about-side {
        grid-template-columns: 1fr;
    }

    .box-card {
        display: none;
    }

    .tab {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px;
    }

    .tab-panel,
    .form-card,
    .news,
    .release,
    .article {
        padding: 24px 20px;
    }

    .page-head {
        padding-top: 32px;
    }

    .certs-strip {
        padding: 16px;
    }

    .certs-logos img {
        height: 56px;
    }

    .split,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .rows > div {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-card {
        padding: 32px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .modal-head {
        padding: 16px 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .cookie {
        flex-direction: column;
        align-items: stretch;
    }
}
