/* ═══════════════════════════════════════════════
   PROJEKTY ČERVENÝ – DESIGN SYSTEM "ORGANIC PREMIUM"
   ═══════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────── */
:root {
    --ink: #1C1B18;             /* near-black charcoal — headings, key text */
    --blue: #4E5CAC;            /* logo blue — buttons, active states, accents */
    --blue-light: #6B78C4;      /* lighter blue — hover accents */
    --blue-dark: #3A4890;       /* darker blue — pressed / deep states */
    --cream: #F5F4F2;           /* warm off-white — alt section backgrounds */
    --white: #FFFFFF;
    --text: #2A2926;            /* warm dark charcoal — body text */
    --text-light: #5C5A56;      /* warm medium gray */
    --text-muted: #8A8782;      /* warm neutral gray */

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;

    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.10);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --max-width: 1200px;
    --section-pad: 100px;
}

/* ── Reset & Base ───────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* ── Utility ────────────────────────────────── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.text-blue {
    color: var(--blue);
}

/* ── Section defaults ───────────────────────── */
.section {
    padding: var(--section-pad) 0;
}

.section--alt {
    background-color: var(--cream);
}

.section__tag {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--blue);
    margin-bottom: 12px;
}

.section__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--ink);
    line-height: 1.2;
    max-width: 700px;
    margin: 0 auto 20px;
    text-align: center;
}

.section__title--left {
    text-align: left;
    margin: 0 0 20px;
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 620px;
    margin: 0 auto 56px;
    text-align: center;
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 253, 248, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.nav--scrolled {
    box-shadow: var(--shadow-sm);
}

.nav__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--ink);
    text-decoration: none;
}

.nav__logo strong {
    font-weight: 700;
}

.nav__logo-img {
    height: 34px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.nav__links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.25s ease;
    position: relative;
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav__links a:hover,
.nav__links a.active {
    color: var(--ink);
}

.nav__links a:hover::after,
.nav__links a.active::after {
    width: 100%;
}

.nav__cta {
    background: var(--blue) !important;
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
    transition: background 0.25s ease, transform 0.2s ease !important;
}

.nav__cta::after {
    display: none !important;
}

.nav__cta:hover {
    background: var(--blue-dark) !important;
    transform: translateY(-1px);
}

/* Hamburger */
.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav__hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav__hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
/* ── Hero Split-Screen ───────────────────────── */
.hero {
    position: relative;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

.hero__panel--text {
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 64px 80px;
    position: relative;
    overflow: visible;
    width: 50%;
    height: 100%;
}

.hero__panel--text::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.hero__panel--text::after {
    content: '';
    position: absolute;
    bottom: -120px;
    right: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(78, 92, 172, 0.08);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.hero__tag {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--blue);
    margin-bottom: 28px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero__tag-name,
.hero__tag-role {
    white-space: nowrap;
}

.hero__tag::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 2px;
    background: var(--blue);
}

.hero__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    color: var(--ink);
    line-height: 1.12;
    margin-bottom: 28px;
}

.hero__title .text-blue {
    color: var(--blue);
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 440px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero__actions .btn--ghost {
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-light);
    border: 1.5px solid rgba(0, 0, 0, 0.35);
    box-shadow: none;
}

.hero__actions .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.97);
    color: var(--ink);
    border-color: var(--ink);
    box-shadow: none;
    transform: translateY(-1px);
}

/* Hero Stats */
.hero__stats {
    display: flex;
    align-items: center;
    gap: 28px;
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(0, 0, 0, 0.10);
}

.hero__stat-number {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--blue);
    line-height: 1;
    margin-bottom: 4px;
}

.hero__stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Image Panel */
.hero__panel--image {
    position: absolute;
    top: 0;
    right: 0;
    width: 57%;
    height: 100%;
    overflow: hidden;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    animation: heroImageReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

@keyframes heroImageReveal {
    from {
        clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
    }
    to {
        clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    }
}

.hero__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    will-change: transform;
}

/* ── Hero Staggered Entrance ─────────────────── */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(48px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__tag,
.hero__title,
.hero__subtitle,
.hero__actions,
.hero__stats {
    opacity: 0;
}

.hero__tag     { animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.10s forwards; }
.hero__title   { animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards; }
.hero__subtitle{ animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.60s forwards; }
.hero__actions { animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.82s forwards; }
.hero__stats   { animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.05s forwards; }

@media (prefers-reduced-motion: reduce) {
    .hero__tag,
    .hero__title,
    .hero__subtitle,
    .hero__actions,
    .hero__stats {
        opacity: 1;
        animation: none;
    }

    .hero__panel--image {
        animation: none;
        clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%);
    }
}

/* ── Buttons ────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn--primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(78, 92, 172, 0.3);
}

.btn--primary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(78, 92, 172, 0.4);
}

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border: 2px solid rgba(0, 0, 0, 0.18);
}

.btn--ghost:hover {
    background: var(--cream);
    border-color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(78, 92, 172, 0.12);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.btn--outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.btn--full {
    width: 100%;
}

/* ═══════════════════════════════════════════════
   SERVICES GRID
   ═══════════════════════════════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 0;
    text-align: left;
    box-shadow: var(--shadow-card);
    transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: none;
    display: block;
    overflow: hidden;
    position: relative;
}

.service-card:hover {
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
}

/* ── Top Half: Image ── */
.service-card__image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.service-card:hover .service-card__image img {
    transform: scale(1.08);
}

/* Optional overlay to soften image slightly */
.service-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 50%);
    transition: opacity 0.4s ease;
}

.service-card:hover .service-card__image::after {
    opacity: 0.2;
}

/* ── Floating Icon ── */
.service-card__icon-wrapper {
    position: absolute;
    top: 212px;
    /* 240px image height - 28px half-height */
    right: 32px;
    width: 56px;
    height: 56px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    z-index: 2;
    transition: transform 0.4s ease, background 0.4s ease, color 0.4s ease;
}

.service-card:hover .service-card__icon-wrapper {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-4px);
}

.service-card__icon-wrapper svg,
.service-card__icon-wrapper .material-symbols-outlined {
    width: 26px;
    height: 26px;
    font-size: 26px;
}

/* ── Content body ── */
.service-card__body {
    padding: 28px 32px 28px;
}

.service-card__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--ink);
    margin-bottom: 10px;
}

.service-card__text {
    font-size: 0.93rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-card__link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-card__link {
    gap: 14px;
    color: var(--blue-dark);
}

/* ═══════════════════════════════════════════════
   TABS
   ═══════════════════════════════════════════════ */
.tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.tabs__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 100px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    background: var(--white);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: var(--shadow-sm);
}

.tabs__btn svg,
.tabs__btn .material-symbols-outlined {
    width: 22px;
    height: 22px;
    font-size: 22px;
    flex-shrink: 0;
}

.tabs__btn:hover {
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tabs__btn--active {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
    box-shadow: 0 4px 16px rgba(78, 92, 172, 0.25);
}

.tabs__btn--active:hover {
    background: var(--blue-dark);
    color: var(--white);
    border-color: var(--blue-dark);
}

.tabs__panels {
    position: relative;
}

.tabs__panel {
    display: none;
    animation: tabFadeIn 0.4s ease;
}

.tabs__panel--active {
    display: block;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════
   TIMELINE – SPLIT LAYOUT
   ═══════════════════════════════════════════════ */
.timeline-split {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 64px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .timeline-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ── Left Side: Info Card ── */
.info-card {
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.07);
    position: sticky;
    top: 120px;
}

.info-card__icon {
    width: 48px;
    height: 48px;
    background: rgba(78, 92, 172, 0.10);
    color: var(--blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.info-card__icon svg,
.info-card__icon .material-symbols-outlined {
    width: 24px;
    height: 24px;
    font-size: 24px;
}

.info-card__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 16px;
    line-height: 1.1;
}

.info-card__text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 32px;
}

.info-card__image {
    width: 100%;
    border-radius: 16px;
    display: block;
    object-fit: cover;
}

/* ── Right Side: Timeline Steps ── */
.timeline-split__right {
    padding-top: 10px;
}

.timeline-list__title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 40px;
}

.timeline-list {
    display: flex;
    flex-direction: column;
}

.timeline-step {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 24px;
    position: relative;
    padding-bottom: 40px;
}

.timeline-step:last-child {
    padding-bottom: 0;
}

/* The vertical connecting line */
.timeline-step::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 15px;
    bottom: 0px;
    width: 2px;
    background: linear-gradient(to bottom, var(--blue), #E5E5E5);
    transform-origin: top center;
    transform: scaleY(0);
    transition: transform 0.55s ease 0.25s;
}

.timeline-step:last-child::before {
    display: none;
}

.timeline-step--visible::before {
    transform: scaleY(1);
}

.timeline-step__marker {
    width: 32px;
    height: 32px;
    background: var(--white);
    border: 2px solid var(--ink);
    color: var(--ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    font-weight: 700;
    z-index: 2;
    margin-top: 2px;
    opacity: 0;
    transform: scale(0.4);
    transition: background 0.3s ease, color 0.3s ease,
                opacity 0.35s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-step--visible .timeline-step__marker {
    opacity: 1;
    transform: scale(1);
}

.timeline-step:hover .timeline-step__marker {
    background: var(--ink);
    color: var(--white);
}

.timeline-step__content h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin-top: 0;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.timeline-step__content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

/* ── Active Step ── */
.timeline-step--active .timeline-step__marker {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}

.timeline-step--active .timeline-step__content h4 {
    color: var(--blue);
}

/* ── Done Step (Checkmark) ── */
.timeline-step--done .timeline-step__marker {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}

.timeline-step--done .timeline-step__marker svg {
    width: 14px;
    height: 14px;
}

/* ═══════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════ */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__image {
    position: relative;
}

.about__image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s ease;
}

.about__image:hover img {
    transform: scale(1.02);
}

.about__image::after {
    content: '';
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 120px;
    height: 120px;
    background: var(--blue);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.2;
}

.about__text {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about__text strong {
    color: var(--text);
}

.about__stats {
    display: flex;
    gap: 36px;
    margin-top: 36px;
    padding-top: 32px;
    border-top: 2px solid rgba(0, 0, 0, 0.07);
    flex-wrap: wrap;
    align-items: center;
}

.about__stat {
    text-align: center;
}

.about__stat-number {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    color: var(--blue);
    line-height: 1;
}

.about__stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ── ČKAIT Style ── */
.footer__cert-link {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    gap: 6px;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--blue);
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
    font-weight: 500;
}

.footer__cert-link:hover {
    color: var(--blue-light);
    opacity: 0.9;
}

.footer__cert-link svg {
    width: 14px;
    height: 14px;
}

/* ═══════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 32px 32px;
    box-shadow: var(--shadow-card);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 12px;
    right: 24px;
    font-family: var(--font-heading);
    font-size: 6rem;
    line-height: 1;
    color: var(--blue);
    opacity: 0.12;
    font-weight: 800;
    pointer-events: none;
}

.testimonial-card__text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-light);
    font-style: italic;
    flex: 1;
    position: relative;
    z-index: 1;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-card__avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-card__author-info strong {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink);
}

.testimonial-card__author-info span {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
    display: block;
}

/* ═══════════════════════════════════════════════
   PORTFOLIO – MASONRY + FILTER + LIGHTBOX
   ═══════════════════════════════════════════════ */

/* ── Filters ── */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 48px;
}

.portfolio-filter {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 10px 22px;
    border-radius: 100px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    background: var(--white);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.portfolio-filter:hover {
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-1px);
}

.portfolio-filter--active {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
    box-shadow: 0 4px 16px rgba(78, 92, 172, 0.25);
}

.portfolio-filter--active:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: var(--white);
}

/* ── Masonry grid ── */
.portfolio-masonry {
    columns: 3;
    column-gap: 20px;
}

/* ── Cards ── */
.portfolio-card {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    position: relative;
    display: block;
    transition: box-shadow 0.35s ease, transform 0.35s ease, opacity 0.3s ease;
}

.portfolio-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.portfolio-card--hidden {
    display: none;
}

/* ── Image ── */
.portfolio-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.portfolio-card--tall .portfolio-card__image {
    aspect-ratio: 3 / 4;
}

.portfolio-card--wide .portfolio-card__image {
    aspect-ratio: 16 / 9;
}

.portfolio-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-card:hover .portfolio-card__image img {
    transform: scale(1.06);
}

/* ── Badge ── */
.portfolio-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(28, 27, 24, 0.45);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.72rem;
    padding: 5px 12px;
    border-radius: 100px;
    letter-spacing: 0.5px;
    z-index: 2;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ── Hover overlay (slides up) ── */
.portfolio-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 52px 20px 20px;
    background: linear-gradient(to top, rgba(10, 15, 30, 0.97) 0%, rgba(10, 15, 30, 0.65) 55%, transparent 100%);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.portfolio-card:hover .portfolio-card__overlay {
    transform: translateY(0);
}

.portfolio-card__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--white);
    margin-bottom: 6px;
    line-height: 1.3;
}

.portfolio-card__desc {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
    margin-bottom: 12px;
}

.portfolio-card__cta {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: none;
    cursor: pointer;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.portfolio-card:hover .portfolio-card__cta {
    opacity: 0.85;
    transform: translateX(3px);
}

/* ── Load more ── */
.portfolio-loadmore {
    text-align: center;
    margin-top: 48px;
}

/* ── Lightbox ── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.lightbox--open {
    opacity: 1;
    pointer-events: all;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 22, 18, 0.93);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1B2640;
    border: 1px solid rgba(255, 255, 255, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.lightbox__nav:hover {
    background: #111A33;
    border-color: var(--blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) translateY(-1px);
}

.lightbox__nav:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 92, 172, 0.85), 0 8px 24px rgba(0, 0, 0, 0.6);
}

.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

.lightbox__nav svg {
    width: 20px;
    height: 20px;
}

.lightbox__panel {
    position: relative;
    z-index: 1;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 880px;
    width: calc(100% - 140px);
    max-height: calc(100vh - 80px);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.lightbox--open .lightbox__panel {
    transform: scale(1) translateY(0);
}

.lightbox__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox__close:hover {
    background: var(--white);
    transform: scale(1.1) rotate(90deg);
}

.lightbox__close svg {
    width: 17px;
    height: 17px;
}

.lightbox__image-wrap {
    overflow: hidden;
    min-height: 320px;
}

.lightbox__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.lightbox__info {
    padding: 44px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.lightbox__badge {
    display: inline-block;
    background: rgba(78, 92, 172, 0.10);
    color: var(--blue);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.78rem;
    padding: 5px 14px;
    border-radius: 100px;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    width: fit-content;
}

.lightbox__title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.45rem;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 16px;
}

.lightbox__desc {
    font-size: 0.98rem;
    color: var(--text-light);
    line-height: 1.75;
}

/* ═══════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════ */
.contact {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact__form {
    background: var(--white);
    padding: 44px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    background: #F5F4F2;
    border: 2px solid #E8E7E4;
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A5A5A' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact__info {
    padding-top: 20px;
}

.contact__info-block {
    margin-bottom: 32px;
}

.contact__info-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.contact__info-value {
    font-size: 1rem;
    color: var(--text);
}

.contact__info-value--large {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--ink);
    display: block;
    transition: color 0.3s ease;
}

.contact__info-value--large:hover {
    color: var(--blue);
}

.contact__cert-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.contact__cert-link:hover {
    color: var(--ink);
}

.contact__cert-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.contact__map-card {
    margin-top: 40px;
    padding: 24px 28px;
    background: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--blue);
}

.contact__map-card__icon {
    width: 48px;
    height: 48px;
    background: rgba(78, 92, 172, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--blue);
}

.contact__map-card__icon svg {
    width: 22px;
    height: 22px;
}

.contact__map-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact__map-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ink);
}

.contact__map-sub {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer__brand {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
}

.footer__logo-img {
    height: 80px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.footer__copy {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

.footer__links {
    display: flex;
    gap: 28px;
}

.footer__links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.25s ease;
}

.footer__links a:hover {
    color: var(--blue);
}

/* ═══════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--delay-1 {
    transition-delay: 0.15s;
}

.reveal--delay-2 {
    transition-delay: 0.3s;
}

.reveal--delay-3 {
    transition-delay: 0.45s;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .portfolio-masonry {
        columns: 2;
    }

    /* Portfolio: show overlay content by default on touch devices */
    .portfolio-card__overlay {
        transform: translateY(0);
    }

}

@media (max-width: 1024px) {
    .hero {
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .hero__panel--text {
        width: 100%;
        padding: 120px 40px 60px;
    }

    .hero__panel--image {
        position: relative;
        width: 100%;
        height: 50vh;
        clip-path: none;
        animation: none;
    }

    .about {
        gap: 48px;
    }
}

@media (max-width: 1000px) {
    :root {
        --section-pad: 72px;
    }

    /* Nav mobile */
    .nav__hamburger {
        display: flex;
    }

    .nav__links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 32px 32px;
        gap: 24px;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
    }

    .nav__links.open {
        right: 0;
    }

    .nav__links a::after {
        display: none;
    }

    .nav__links a {
        font-size: 1.1rem;
    }

    /* Hero */
    .hero {
        height: auto;
    }

    .hero__panel--text {
        padding: 100px 28px 48px;
        text-align: center;
    }

    .hero__content {
        max-width: 100%;
    }

    .hero__subtitle {
        max-width: 100%;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
    }

    .hero__panel--image {
        height: 45vh;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    /* About */
    .about {
        grid-template-columns: 1fr;
    }

    .about__image {
        max-width: 400px;
        margin: 0 auto;
    }

    .about__content .section__title--left {
        text-align: center;
    }

    .about__stats {
        justify-content: center;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Portfolio */
    .portfolio-masonry {
        columns: 1;
    }

    .lightbox__panel {
        grid-template-columns: 1fr;
        width: calc(100% - 24px);
        max-height: 90vh;
        overflow-y: auto;
    }

    .lightbox__image-wrap {
        min-height: 220px;
        max-height: 45vh;
    }

    .lightbox__info {
        padding: 28px 24px;
    }

    .lightbox__nav--prev { left: 8px; }
    .lightbox__nav--next { right: 8px; }

    /* Contact */
    .contact {
        grid-template-columns: 1fr;
    }

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

    .contact__info {
        text-align: center;
    }

    /* Footer */
    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer__brand {
        justify-content: center;
    }

    .footer__links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --section-pad: 56px;
    }

    .hero__tag-name {
        padding-left: 44px; /* zarovnání s textem po čáře v hero__tag::before */
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__panel--text {
        padding: 96px 20px 40px;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 40px;
    }

    .hero__stats {
        gap: 20px;
    }

    .hero__stat-number {
        font-size: 1.4rem;
    }

    .hero__panel--image {
        height: 40vh;
    }

    .btn {
        padding: 14px 28px;
    }

    .contact__form {
        padding: 28px 20px;
    }

    .timeline {
        padding-left: 40px;
    }

    .timeline__dot {
        left: -40px;
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .timeline__card {
        padding: 24px;
    }

    .about__stats {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .footer__cert-link {
        margin-left: 0;
        margin-top: 12px;
        padding-left: 0;
        border-left: none;
        display: flex;
        justify-content: center;
    }
}