/* CIMAX.CZ — finální statický prototyp, hlavní styl */
:root {
    --brand: #008ecf;
    --brand-hover: #007db7;
    --brand-dark: #006b9b;
    --brand-light: #eaf7fc;
    --brand-lighter: #f7fcfe;
    --brand-border: #cfeaf5;

    --ink: #10203a;
    --ink-soft: #34465e;
    --muted: #6b7b8f;
    --white: #fff;
    --border: #dcecf3;

    --container: 1220px;
    --header-height: 90px;

    --shadow-small: 0 12px 34px rgba(14, 84, 114, .08);
    --shadow-medium: 0 24px 68px rgba(14, 84, 114, .12);

    --radius-small: 12px;
    --radius-medium: 22px;
    --radius-large: 30px;

    --ease: cubic-bezier(.22, .61, .36, 1);

    /* Záměrně přibližně 2× pomalejší než původní verze. */
    --reveal-duration: 1.45s;
    --diagram-duration: 3.2s;
}

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

html {
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body::selection {
    color: var(--white);
    background: var(--brand);
}

img,
svg {
    display: block;
    max-width: 100%;
}

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

button,
input,
textarea {
    font: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.12;
}

h2 {
    margin-bottom: 22px;
    font-size: clamp(2.1rem, 4.3vw, 3.6rem);
}

h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.container {
    width: min(var(--container), calc(100% - 64px));
    margin-inline: auto;
}

.section {
    padding: 100px 0;
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--brand);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.skip-link {
    position: fixed;
    z-index: 5000;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    color: var(--white);
    background: var(--brand-dark);
    border-radius: 8px;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    color: var(--white);
    background: var(--brand);
    border: 1px solid var(--brand);
    border-radius: 9px;
    box-shadow: 0 11px 25px rgba(0, 142, 207, .2);
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition:
        background .35s ease,
        border-color .35s ease,
        box-shadow .35s ease,
        transform .35s ease;
}

.button svg,
.text-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .35s ease;
}

.button:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
    box-shadow: 0 15px 31px rgba(0, 142, 207, .27);
    transform: translateY(-2px);
}

.button:hover svg {
    transform: translateX(3px);
}

.button--small {
    min-height: 43px;
    padding: 10px 17px;
    font-size: .9rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--brand-hover);
    font-weight: 600;
}

.text-link:hover svg {
    transform: translateY(3px);
}

.button:focus-visible,
.text-link:focus-visible,
.brand:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(0, 142, 207, .25);
    outline-offset: 4px;
}

/* Hlavička */
.site-header {
    position: fixed;
    z-index: 1000;
    inset: 0 0 auto;
    height: var(--header-height);
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid transparent;
    transition:
        height .55s var(--ease),
        background .55s ease,
        border-color .55s ease,
        box-shadow .55s ease,
        backdrop-filter .55s ease;
}

.site-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    width: 235px;
    flex: 0 0 auto;
    align-items: center;
    transition: width .55s var(--ease);
}

.brand img {
    width: 100%;
    height: auto;
}

.site-header.is-scrolled {
    height: 74px;
    background: rgba(235, 248, 252, .94);
    border-bottom-color: rgba(0, 142, 207, .15);
    box-shadow: 0 10px 35px rgba(18, 84, 112, .09);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
    backdrop-filter: blur(16px) saturate(135%);
}

.site-header.is-scrolled .brand {
    width: 205px;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--header-height) + 70px) 0 84px;
    background:
        radial-gradient(circle at 77% 25%, rgba(0, 142, 207, .09), transparent 28%),
        linear-gradient(180deg, #fff 0%, #fff 68%, #fbfdfe 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(0, 142, 207, .07);
    filter: blur(55px);
    pointer-events: none;
}

.hero::before {
    width: 300px;
    height: 300px;
    top: 110px;
    right: -130px;
}

.hero::after {
    width: 230px;
    height: 230px;
    top: 410px;
    left: -140px;
}

.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 585px;
    grid-template-columns: minmax(0, .94fr) minmax(470px, 1.06fr);
    align-items: center;
    gap: clamp(35px, 6vw, 90px);
}

.hero__content {
    padding: 22px 0 52px;
}

.hero__title {
    max-width: 690px;
    margin-bottom: 27px;
    font-size: clamp(3.2rem, 6.4vw, 5.9rem);
    font-weight: 700;
    letter-spacing: -.056em;
}

.hero__title span {
    color: var(--brand);
}

.hero__lead {
    max-width: 650px;
    margin-bottom: 33px;
    color: var(--ink-soft);
    font-size: clamp(1.02rem, 1.6vw, 1.2rem);
    font-weight: 400;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 27px;
}

/* Diagramy */
.diagram {
    width: 100%;
    overflow: visible;
    color: var(--brand);
}

.diagram__glow {
    fill: rgba(0, 142, 207, .04);
}

.diagram__mesh {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    opacity: .28;
}

.diagram__mesh--dashed {
    stroke-dasharray: 5 7;
    opacity: .38;
}

.diagram__dots circle,
.diagram__dot {
    fill: currentColor;
    stroke: none;
}

.diagram__hex,
.diagram__card {
    fill: rgba(255, 255, 255, .94);
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.diagram__icon,
.diagram__line {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.diagram__soft {
    fill: rgba(0, 142, 207, .09);
}

.draw-path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

/* Spustí se jen ve viditelné fázi. Po odebrání třídy se vrátí na začátek. */
.is-visible .draw-path {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset var(--diagram-duration) var(--ease) .35s;
}

.diagram-node {
    transform-box: fill-box;
    transform-origin: center;
}

/* Pohyb uzlů běží jen ve viditelné sekci; po odscrollování se animace resetuje. */
.is-visible .diagram-node {
    animation: node-float 12s ease-in-out infinite;
}

.is-visible .diagram-node--2 {
    animation-delay: -3.5s;
}

.is-visible .diagram-node--3 {
    animation-delay: -7s;
}

@keyframes node-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -10px, 0); }
}

/* Přístup */
.approach {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: .78fr 1.45fr .9fr;
    align-items: center;
    gap: 31px;
    padding: 32px 37px;
    background:
        linear-gradient(115deg, rgba(0, 142, 207, .08), rgba(255, 255, 255, .7)),
        var(--brand-lighter);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-small);
}

.approach__title {
    line-height: 1.22;
}

.approach__title strong,
.approach__title span {
    display: block;
    font-size: clamp(1.25rem, 2vw, 1.76rem);
}

.approach__title span {
    color: var(--brand);
    font-weight: 700;
}

.approach > p {
    margin: 0;
    color: var(--ink-soft);
    font-size: .95rem;
}

.approach ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0 0 0 30px;
    border-left: 1px solid rgba(0, 142, 207, .2);
    list-style: none;
}

.approach li {
    position: relative;
    padding-left: 22px;
    font-size: .92rem;
    font-weight: 700;
}

.approach li::before {
    content: "";
    position: absolute;
    top: .55em;
    left: 0;
    width: 9px;
    height: 9px;
    background: var(--brand);
    border-radius: 3px;
}

/* Sekce */
.services {
    padding-top: 100px;
}

.section-intro {
    max-width: 770px;
    margin-bottom: 62px;
}

.section-intro--center {
    margin-inline: auto;
    text-align: center;
}

.section-intro p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.service {
    padding: 87px 0;
    border-bottom: 1px solid var(--border);
}

.service--alternate {
    background: linear-gradient(180deg, #fbfdfe 0%, #f7fbfd 100%);
}

.service__grid {
    display: grid;
    grid-template-columns: minmax(390px, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(50px, 8vw, 112px);
}

.service--reverse .service__visual {
    order: 2;
}

.service--reverse .service__content {
    order: 1;
}

.service__content p {
    font-weight: 400;
}

.service__content h2 {
    font-size: clamp(2.2rem, 4.4vw, 3.6rem);
}

.service__content > p:not(.eyebrow) {
    margin-bottom: 28px;
    color: var(--ink-soft);
    font-size: 1.03rem;
}

.check-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    color: var(--ink-soft);
    font-size: .94rem;
}

.check-list li::before {
    content: "";
    position: absolute;
    top: .39em;
    left: 0;
    width: 16px;
    height: 16px;
    border: 1.7px solid var(--brand);
    border-radius: 999px;
}

.check-list li::after {
    content: "";
    position: absolute;
    top: calc(.39em + 4px);
    left: 4px;
    width: 7px;
    height: 4px;
    border: solid var(--brand);
    border-width: 0 0 1.7px 1.7px;
    transform: rotate(-45deg);
}

/* Zkušenosti */
.experience {
    padding: 41px 0;
    color: var(--white);
    background: linear-gradient(120deg, var(--brand-dark), var(--brand) 65%, #2aaddd);
}

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

.experience__item {
    min-width: 0;
    padding: 8px 29px;
    border-right: 1px solid rgba(255, 255, 255, .28);
}

.experience__item:first-child {
    padding-left: 0;
}

.experience__item:last-child {
    padding-right: 0;
    border-right: 0;
}

.experience__item strong,
.experience__item span {
    display: block;
}

.experience__item strong {
    margin-bottom: 3px;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.1;
}

.experience__item span {
    color: rgba(255, 255, 255, .83);
    font-size: .91rem;
}

/* Proces */
.process__grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
}

.process__grid::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 45px;
    left: 17%;
    right: 17%;
    border-top: 2px dotted rgba(0, 142, 207, .38);
}

.process-step {
    position: relative;
    z-index: 1;
    padding: 35px 24px 25px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
    text-align: center;
}

.process-step__number {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    margin: -62px auto 23px;
    color: var(--white);
    background: var(--brand);
    border: 7px solid var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-small);
    font-weight: 700;
}

.process-step p {
    margin-bottom: 0;
    color: var(--muted);
}

/* Zkušenosti napříč obory */
.references {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 18%, rgba(0, 142, 207, .075), transparent 25%),
        linear-gradient(180deg, var(--brand-lighter) 0%, #f3fafc 100%);
}

.references::before {
    content: "";
    position: absolute;
    top: 92px;
    right: -130px;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(0, 142, 207, .09);
    border-radius: 50%;
    box-shadow:
        0 0 0 42px rgba(0, 142, 207, .025),
        0 0 0 88px rgba(0, 142, 207, .018);
    pointer-events: none;
}

.references .container {
    position: relative;
    z-index: 1;
}

.references__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px;
}

.reference-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 100%;
    flex-direction: column;
    padding: 28px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(250, 253, 254, .96));
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(14, 84, 114, .065);
    transition:
        transform .45s var(--ease),
        border-color .45s ease,
        box-shadow .45s ease;
}

.reference-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), rgba(0, 142, 207, .25));
}

.reference-card::after {
    content: "";
    position: absolute;
    right: -62px;
    bottom: -72px;
    width: 165px;
    height: 165px;
    background: radial-gradient(circle, rgba(0, 142, 207, .07), transparent 68%);
    border-radius: 50%;
    pointer-events: none;
}

.reference-card:hover {
    border-color: rgba(0, 142, 207, .32);
    box-shadow: 0 19px 48px rgba(14, 84, 114, .105);
    transform: translateY(-5px);
}

.reference-card__header {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    min-height: 78px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 142, 207, .13);
}

.reference-card__icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: var(--brand);
    background: var(--brand-light);
    border: 1px solid rgba(0, 142, 207, .16);
    border-radius: 15px;
}

.reference-card__icon svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reference-card__icon svg * {
    fill: none;
    stroke: currentColor;
    vector-effect: non-scaling-stroke;
}

.reference-card h3 {
    margin: 0;
    font-size: clamp(1.08rem, 1.45vw, 1.25rem);
    letter-spacing: -.025em;
    line-height: 1.28;
}

.reference-card__list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.reference-card__list li {
    position: relative;
    padding: 10px 0 10px 21px;
    color: var(--ink-soft);
    border-bottom: 1px solid rgba(16, 32, 58, .07);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.42;
}

.reference-card__list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.reference-card__list li::before {
    content: "";
    position: absolute;
    top: 1.06em;
    left: 1px;
    width: 8px;
    height: 8px;
    background: var(--brand);
    border-radius: 3px;
    transform: translateY(-50%);
}

.reference-card__name {
    display: block;
    color: var(--ink);
    font-weight: 700;
}

.reference-card__group small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.48;
}

/* Kontakt */
.contact {
    background: linear-gradient(180deg, #fff 0%, #f7fbfd 100%);
}

.contact__panel {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    align-items: center;
    gap: clamp(38px, 7vw, 88px);
    padding: clamp(36px, 5vw, 66px);
    background:
        radial-gradient(circle at 13% 28%, rgba(0, 142, 207, .11), transparent 25%),
        linear-gradient(120deg, #f7fcfe, #eaf7fc);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-medium);
}

.contact__copy h2 {
    font-size: clamp(2.1rem, 4vw, 3.35rem);
}

.contact__copy > p:last-of-type {
    color: var(--ink-soft);
}

.contact__direct {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 24px;
}

.contact__direct a {
    color: var(--brand-hover);
    font-weight: 700;
}

.contact-form-slot {
    min-width: 0;
}

.contact {
    scroll-margin-top: 96px;
}

.contact-form {
    position: relative;
    display: grid;
    gap: 18px;
    padding: 29px;
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(0, 142, 207, .15);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
}

.form-field {
    display: grid;
    gap: 7px;
}

.form-field label {
    font-size: .9rem;
    font-weight: 700;
}

.form-field label span {
    color: var(--muted);
    font-weight: 500;
}

.form-field input,
.form-field textarea {
    width: 100%;
    color: var(--ink);
    background: var(--white);
    border: 1px solid #cfe3ec;
    border-radius: 9px;
    outline: none;
    transition: border-color .3s ease, box-shadow .3s ease;
}

.form-field input {
    min-height: 51px;
    padding: 11px 14px;
}

.form-field textarea {
    min-height: 130px;
    padding: 13px 14px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(0, 142, 207, .1);
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
    border-color: #b93e45;
    box-shadow: 0 0 0 4px rgba(185, 62, 69, .09);
}

.form-field small {
    color: var(--muted);
    font-size: .78rem;
}

.form-error {
    color: #a52f35 !important;
    font-weight: 700;
}

.form-error:empty {
    display: none;
}


.form-general-error {
    padding: 13px 15px;
    color: #8b252b;
    background: #fff2f3;
    border: 1px solid #efc6c9;
    border-radius: 9px;
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.5;
}

.form-general-error[hidden] {
    display: none;
}

.contact-form.is-submitting {
    cursor: wait;
}

.contact-form.is-submitting .form-field,
.contact-form.is-submitting .form-privacy {
    opacity: .72;
}

.contact-form__submit {
    width: 100%;
}

.button__spinner {
    display: none;
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    border: 2px solid rgba(255, 255, 255, .42);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cimax-button-spin .9s linear infinite;
}

.contact-form.is-submitting .button__spinner {
    display: block;
}

.contact-form.is-submitting .contact-form__submit > svg {
    display: none;
}

@keyframes cimax-button-spin {
    to {
        transform: rotate(360deg);
    }
}

.contact-success {
    display: flex;
    min-height: 285px;
    align-items: center;
    gap: 24px;
    padding: clamp(30px, 5vw, 48px);
    color: var(--ink);
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(0, 142, 207, .17);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
    outline: none;
}

.contact-success__icon {
    display: grid;
    width: 74px;
    height: 74px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--brand);
    background: var(--brand-light);
    border-radius: 50%;
}

.contact-success__icon svg {
    width: 50px;
    height: 50px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-success h3 {
    margin-bottom: 8px;
    color: var(--brand-dark);
    font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.contact-success p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 1.02rem;
}

.form-privacy {
    margin: -3px 0 0;
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.45;
}

.form-success {
    display: grid;
    gap: 3px;
    padding: 14px 16px;
    color: #075d38;
    background: #eaf8f1;
    border: 1px solid #bfe7d2;
    border-radius: 9px;
    font-size: .85rem;
}

.form-success[hidden] {
    display: none;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Patička */
.site-footer {
    padding: 31px 0;
    border-top: 1px solid var(--border);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
}

.brand--footer {
    width: 180px;
}

.site-footer__contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    color: var(--brand-hover);
    font-size: .88rem;
    font-weight: 700;
}

.site-footer p {
    margin: 0;
    color: var(--muted);
    text-align: right;
    font-size: .78rem;
}

/* Opakovatelné scroll animace */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

.js .reveal {
    opacity: 0;
    transform: translate3d(0, 34px, 0);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition:
        opacity var(--reveal-duration) var(--ease) var(--delay, 0ms),
        transform var(--reveal-duration) var(--ease) var(--delay, 0ms);
}

.reveal[data-delay="0"] { --delay: 0ms; }
.reveal[data-delay="140"] { --delay: 140ms; }
.reveal[data-delay="180"] { --delay: 180ms; }
.reveal[data-delay="220"] { --delay: 220ms; }
.reveal[data-delay="280"] { --delay: 280ms; }
.reveal[data-delay="360"] { --delay: 360ms; }
.reveal[data-delay="420"] { --delay: 420ms; }
.reveal[data-delay="560"] { --delay: 560ms; }
.reveal[data-delay="700"] { --delay: 700ms; }

/*
 * Při odebrání .is-visible nepoužíváme dlouhý návrat.
 * JavaScript nejdřív přidá .is-resetting, skryje prvek okamžitě
 * a připraví jej pro další příchod do viewportu.
 */
.js .reveal.is-resetting {
    opacity: 0;
    transform: translate3d(0, 34px, 0);
    transition: none !important;
}

/* Princip dobré správy IT */
.service-principle {
            position: relative;
            margin: 2px 0 31px;
            padding: 21px 23px 21px 62px;
            color: var(--ink);
            background:
                linear-gradient(120deg, rgba(0, 142, 207, .11), rgba(0, 142, 207, .04)),
                #fff;
            border: 1px solid rgba(0, 142, 207, .26);
            border-radius: 14px;
            box-shadow: 0 10px 28px rgba(14, 84, 114, .06);
        }

        .service-principle__icon {
            position: absolute;
            top: 22px;
            left: 20px;
            width: 27px;
            height: 27px;
            color: var(--brand);
        }

        .service-principle__icon svg {
            width: 100%;
            height: 100%;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.8;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .service-principle p {
            margin: 0 !important;
            color: var(--ink) !important;
            font-size: .99rem !important;
            line-height: 1.58;
        }

        .service-principle strong {
            color: var(--brand-dark);
        }

        .affordable-it {
            position: relative;
            overflow: hidden;
            padding: 96px 0;
            background: #fff;
        }

        .affordable-it::before {
            content: "";
            position: absolute;
            top: 5%;
            right: -130px;
            width: 340px;
            height: 340px;
            background: rgba(0, 142, 207, .06);
            border-radius: 50%;
            filter: blur(12px);
            pointer-events: none;
        }

        .affordable-it__panel {
            position: relative;
            z-index: 1;
            display: grid;
            grid-template-columns: minmax(310px, .75fr) minmax(0, 1.25fr);
            align-items: center;
            gap: clamp(42px, 7vw, 94px);
            padding: clamp(38px, 5vw, 66px);
            background:
                radial-gradient(circle at 13% 32%, rgba(0, 142, 207, .13), transparent 29%),
                linear-gradient(120deg, #f8fdff, #eaf7fc);
            border: 1px solid var(--border);
            border-radius: var(--radius-large);
            box-shadow: var(--shadow-medium);
        }

        .affordable-it__visual {
            width: min(390px, 100%);
            margin-inline: auto;
        }

        .affordable-it__content h2 {
            margin-bottom: 24px;
            font-size: clamp(2.15rem, 4.2vw, 3.7rem);
        }

        .affordable-it__content h2 span {
            display: block;
            color: var(--brand);
        }

        .affordable-it__content > p:last-child {
            max-width: 720px;
            margin-bottom: 0;
            color: var(--ink-soft);
            font-size: 1.08rem;
        }

        .affordable-it__scale-label {
            fill: var(--brand-dark);
            font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: .02em;
        }

        @media (max-width: 900px) {
            .affordable-it__panel {
                grid-template-columns: 1fr;
            }

            .affordable-it__visual {
                width: min(440px, 90%);
            }
        }

        @media (max-width: 680px) {
            .service-principle {
                padding: 20px 19px 20px 54px;
            }

            .service-principle__icon {
                top: 21px;
                left: 17px;
                width: 24px;
                height: 24px;
            }

            .affordable-it {
                padding: 72px 0;
            }

            .affordable-it__panel {
                padding: 28px 21px;
                border-radius: 22px;
            }
        }

/* Responzivita */
@media (max-width: 1120px) {
    .hero__grid {
        grid-template-columns: minmax(0, .95fr) minmax(410px, 1.05fr);
        gap: 38px;
    }

    .approach {
        grid-template-columns: .9fr 1.4fr;
    }

    .approach ul {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 20px 0 0;
        border-top: 1px solid rgba(0, 142, 207, .2);
        border-left: 0;
    }

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

@media (max-width: 900px) {
    :root {
        --header-height: 78px;
    }

    .container {
        width: min(var(--container), calc(100% - 40px));
    }

    .brand {
        width: 205px;
    }

    .site-header.is-scrolled .brand {
        width: 180px;
    }

    .hero {
        padding-top: calc(var(--header-height) + 44px);
    }

    .hero__grid {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .hero__content {
        padding-bottom: 0;
    }

    .hero__visual {
        width: min(720px, 100%);
        margin-inline: auto;
    }

    .approach {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }

    .approach ul {
        grid-template-columns: 1fr;
    }

    .service__grid {
        grid-template-columns: 1fr;
        gap: 31px;
    }

    .service__visual {
        width: min(660px, 100%);
        margin-inline: auto;
    }

    .service--reverse .service__visual,
    .service--reverse .service__content {
        order: initial;
    }

    .experience__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 29px;
    }

    .experience__item:nth-child(2) {
        border-right: 0;
    }

    .experience__item:nth-child(3) {
        padding-left: 0;
    }

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

    .site-footer__inner {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .site-footer p {
        text-align: center;
    }
}

@media (max-width: 680px) {
    :root {
        --header-height: 70px;
    }

    .container {
        width: min(var(--container), calc(100% - 30px));
    }

    .brand {
        width: 165px;
    }

    .site-header.is-scrolled {
        height: 66px;
    }

    .site-header.is-scrolled .brand {
        width: 150px;
    }

    .button--small {
        min-height: 39px;
        padding: 9px 13px;
        font-size: .8rem;
    }

    .button--small svg {
        display: none;
    }

    .hero__title {
        font-size: clamp(2.8rem, 14vw, 4.2rem);
    }

    .hero__actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .approach {
        padding: 25px 22px;
    }

    .section,
    .services {
        padding-top: 73px;
    }

    .service {
        padding: 67px 0;
    }

    .check-list {
        grid-template-columns: 1fr;
    }

    .experience__item {
        padding-inline: 16px;
    }

    .process__grid {
        grid-template-columns: 1fr;
        gap: 64px;
    }

    .process__grid::before {
        display: none;
    }

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

    .reference-card {
        padding: 24px 22px;
    }

    .contact__panel {
        padding: 27px 21px;
        border-radius: 22px;
    }

    .contact-form {
        padding: 21px;
    }
}

@media (max-width: 560px) {
    .contact-success {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        padding: 28px 24px;
    }

    .contact-success__icon {
        width: 62px;
        height: 62px;
    }

    .contact-success__icon svg {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 440px) {
    .brand {
        width: 148px;
    }

    .site-header.is-scrolled .brand {
        width: 137px;
    }

    .hero__title {
        font-size: 2.65rem;
    }

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

    .experience__item {
        padding: 14px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .24);
    }

    .experience__item:last-child {
        border-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .js .reveal,
    .js .reveal.is-resetting {
        opacity: 1;
        transform: none;
    }

    .draw-path {
        stroke-dashoffset: 0;
    }
}
