/* WebTovárna – firemní web. Tmavý úvod s ukázkou, světlé karty, jedna teplá barva. */

@font-face {
    font-family: 'Sora';
    font-weight: 400 800;
    font-display: swap;
    src: url('fonts/sora-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Sora';
    font-weight: 400 800;
    font-display: swap;
    src: url('fonts/sora-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'DM Sans';
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/dm-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'DM Sans';
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/dm-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --navy: #0f1630;
    --navy-deep: #0a1024;
    --ink: #151a33;
    --muted: #5b6178;
    --border: #e4e7ef;
    --alt: #f5f6fa;
    --amber: #ffb020;
    --amber-hover: #ffc04d;
    --amber-tint: #fff3d9;
    --head: 'Sora', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 1rem;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

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

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--head);
    color: inherit;
}

.wrap {
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hl {
    color: var(--amber);
}

/* Tlačítka */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--amber);
    color: var(--navy);
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.btn:hover {
    background: var(--amber-hover);
}

.btn--ghost {
    background: transparent;
    border-color: rgb(255 255 255 / 0.25);
    color: #fff;
}

.btn--ghost:hover {
    background: rgb(255 255 255 / 0.06);
    border-color: rgb(255 255 255 / 0.45);
}

.btn--small {
    padding: 0.55rem 1.15rem;
    font-size: 0.9rem;
}

/* Hlavička */

.top {
    background: var(--navy);
    color: #fff;
    border-bottom: 1px solid rgb(255 255 255 / 0.07);
}

.top__inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    min-height: 4.5rem;
}

.brand {
    margin-right: auto;
    font-family: var(--head);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.brand__mark {
    flex: none;
    width: 1.75rem;
    height: 1.75rem;
}

.brand--small .brand__mark {
    width: 1.4rem;
    height: 1.4rem;
}

.brand img {
    display: block;
    max-height: 2.25rem;
    width: auto;
}

.brand--small {
    margin-right: 0;
    font-size: 1.05rem;
    color: #fff;
}

.top__nav {
    display: flex;
    gap: 1.75rem;
    font-size: 0.95rem;
}

.top__nav a {
    color: rgb(255 255 255 / 0.8);
    text-decoration: none;
}

.top__nav a:hover {
    color: #fff;
}

/* Úvod */

.hero,
.page-head,
.contact {
    position: relative;
    background-color: var(--navy);
    /* Jemná mřížka a teplá záře */
    background-image:
        radial-gradient(circle at 78% 20%, rgb(255 176 32 / 0.1), transparent 42%),
        linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
    background-size: auto, 48px 48px, 48px 48px;
    color: #fff;
}

.hero {
    padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}

.hero h1,
.page-head h1 {
    font-size: clamp(2.3rem, 1.6rem + 2.4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.hero h1 .hl {
    display: block;
}

.hero__text {
    max-width: 34rem;
    margin: 1.5rem 0 0;
    color: rgb(255 255 255 / 0.7);
    font-size: 1.15rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.25rem;
}

/* Ukázka automatizace v úvodu */

.demo {
    padding: 1.75rem;
    border: 1px solid rgb(255 255 255 / 0.1);
    border-radius: 20px;
    background: rgb(255 255 255 / 0.04);
    box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.5);
}

.demo__title {
    margin: 0 0 1.25rem;
    font-family: var(--head);
    font-size: 1.05rem;
    font-weight: 600;
}

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

.demo__steps li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    background: rgb(255 255 255 / 0.05);
    color: rgb(255 255 255 / 0.88);
}

.demo__steps li + li {
    margin-top: 0.5rem;
}

.demo__steps svg {
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0.25rem;
    border-radius: 50%;
    background: var(--amber);
    fill: none;
    stroke: var(--navy);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.demo__note {
    margin: 1.25rem 0 0;
    color: rgb(255 255 255 / 0.55);
    font-size: 0.9rem;
}

/* Sekce */

.section {
    padding: clamp(4rem, 8vw, 6rem) 0;
}

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

.section__title {
    max-width: 26ch;
    margin-bottom: 2.5rem;
    font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

/* Služby */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
    border-color: #d3d7e3;
    box-shadow: 0 16px 40px -24px rgb(15 22 48 / 0.25);
}

.card__icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    background: var(--amber-tint);
}

.card__icon svg {
    width: 1.4rem;
    height: 1.4rem;
    fill: none;
    stroke: #a86400;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.card__examples {
    padding-top: 1.25rem;
}

.card__examples span {
    display: block;
    margin: 0.25rem 0 0.4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 700;
}

.card__examples ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.93rem;
    color: var(--muted);
}

.card__examples li {
    position: relative;
    padding-left: 1rem;
}

.card__examples li + li {
    margin-top: 0.3rem;
}

.card__examples li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--amber);
}

/* Postup */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps li {
    position: relative;
    padding-top: 1.75rem;
}

/* Tečka na lince, linka vede k dalšímu kroku */
.steps li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0.85rem;
    height: 0.85rem;
    border: 3px solid var(--amber);
    border-radius: 50%;
    background: var(--alt);
}

.steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0.42rem;
    left: 1.25rem;
    right: -1.6rem;
    height: 2px;
    background: #dde0e9;
}

.steps h3 {
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

/* Volný obsah a podstránky */

.page-head {
    padding: clamp(3rem, 7vw, 5rem) 0;
}

.page-head--tall {
    padding: clamp(4rem, 10vw, 7rem) 0;
}

.page-head .hero__text {
    margin-bottom: 2rem;
}

.prose {
    max-width: 46rem;
}

.prose h2,
.prose h3 {
    margin: 2rem 0 0.75rem;
    letter-spacing: -0.02em;
}

.prose a {
    color: #a86400;
}

/* Kontakt */

.contact {
    padding: clamp(4rem, 8vw, 6rem) 0;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
}

.contact__text {
    max-width: 30rem;
    margin: -1rem 0 2rem;
    color: rgb(255 255 255 / 0.7);
    font-size: 1.1rem;
}

.contact__link {
    display: block;
    width: fit-content;
    font-family: var(--head);
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
}

.contact__link:hover {
    color: var(--amber);
}

.contact__address {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgb(255 255 255 / 0.1);
    color: rgb(255 255 255 / 0.6);
    font-size: 0.95rem;
    font-style: normal;
    line-height: 1.6;
}

.contact__card {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: 20px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.5);
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form label {
    display: grid;
    gap: 0.35rem;
}

.contact-form label > span {
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #dadeea;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgb(255 176 32 / 0.25);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .button {
    justify-self: start;
    padding: 0.85rem 1.6rem;
    border: 0;
    border-radius: 999px;
    background: var(--amber);
    color: var(--navy);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.contact-form .button:hover {
    background: var(--amber-hover);
}

.contact-form__hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form__notice {
    margin: 0;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
}

.contact-form__notice--ok {
    background: #e4f4ea;
    color: #1b5e37;
}

.contact-form__notice--error {
    background: #fbe6e2;
    color: #8a2a17;
}

/* Patička */

.foot {
    background: var(--navy-deep);
    color: rgb(255 255 255 / 0.6);
    font-size: 0.9rem;
}

.foot__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 2rem;
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
}

.foot a {
    text-decoration: none;
}

.foot a:hover {
    color: #fff;
}

/* Tablet a mobil */

@media (max-width: 960px) {
    .hero__grid,
    .contact__grid {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: 1fr;
        max-width: 38rem;
    }

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

    .steps li::after {
        display: none;
    }
}

@media (max-width: 640px) {
    .top__inner {
        flex-wrap: wrap;
        gap: 0.5rem 1.25rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .top .btn--small {
        display: none;
    }

    .top__nav {
        width: 100%;
        gap: 1.25rem;
    }

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

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