@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,400;0,600;0,800;1,800&display=swap');

:root {
    --blue: #1a94dc;
    --blue-dark: #127ec6;
    --yellow: #f2b705;
    --black: #000;
    --grey: #f2f2f2;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    color: black;
    font-family: 'Exo 2', Arial, sans-serif;
}

h1,
h3,
h4 {
    text-transform: uppercase;
}

p {
    text-align: justify;
    line-height: 1.5;
}

/* ---------- HEADER ---------- */
header {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 560px;
    padding-bottom: 90px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(img/harley-davidson-YsMg1pJqqKk-unsplash.jpg);
    background-color: #0b1220;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}


header::after {
    content: "\2304";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 34px;
    background: white;
    color: black;
    font-size: 30px;
    line-height: 24px;
    text-align: center;
    clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%);
}

.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
}

.top h1 {
    margin: 0;
    font-size: 40px;
    font-weight: 800;
    font-style: italic;
    text-transform: lowercase;
    color: var(--blue);
    text-shadow: 2px 2px 0 var(--yellow);
}

nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 14px;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

nav a.active {
    background-color: var(--blue-dark);
    background-image: linear-gradient(to top, var(--yellow) 3px, transparent 3px);
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    padding: 8px 20px;
}

.text-obrazky {
    align-items: flex-start;
    text-align: left;
    padding: 60px 5% 0;
    max-width: 640px;
}

.text-obrazky h1 {
    margin: 0 0 16px;
    font-size: 44px;
    line-height: 1.1;
    font-weight: 800;
}

.text-obrazky p {
    font-size: 13px;
    margin: 0 0 24px;
    text-align: left;
}


.btn {
    border: none;
    background-color: var(--blue);
    color: white;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 10px 32px;
    cursor: pointer;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.btn:hover {
    background-color: var(--blue-dark);
}

.btn-cerny {
    border: none;
    background-color: black;
    color: white;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    padding: 10px 36px;
    margin-top: 40px;
    cursor: pointer;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.pruhledny {
    background: transparent;
    color: white;
    border: 1px solid white;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 10px 28px;
    cursor: pointer;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}


section {
    padding: 20px 5%;
    display: flex;
    flex-direction: column;
}

article {
    padding: 15px;
    flex: 1;
}

img {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
}


.prvni {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
    padding: 30px 5% 40px;
}

.prvni h1,
.prvni>hr,
.show-btn {
    grid-column: 1 / -1;
}

.prvni h1 {
    display: flex;
    justify-content: center;
    margin: 10px 0 8px;
    font-size: 30px;
    font-weight: 800;
}

.na-stred {
    width: 90px;
    height: 4px;
    background: black;
    border: 0;
    margin: 0 auto 30px;
}

.prvni article {
    position: relative;
    padding: 210px 0 30px;
    text-align: center;
}

/* skosená fotka nahoře */
.prvni article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(135deg, #3d4a2a, #b9925a);
    transform: skew(-8deg);
    z-index: 0;
}

.secondmotor::before {
    background: linear-gradient(135deg, #7a4a2a, #d9b98a) !important;
}

/* skosená šedá karta */
.prvni article::after {
    content: "";
    position: absolute;
    top: 175px;
    left: 12%;
    right: 12%;
    bottom: 0;
    background: var(--grey);
    transform: skew(-8deg);
    z-index: 1;
}

.prvni article>* {
    position: relative;
    z-index: 2;
    margin-left: 18%;
    margin-right: 18%;
}

.prvni article h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 800;
}

.prvni article hr {
    width: 40px;
    height: 3px;
    background: black;
    border: 0;
    margin-top: 0;
    margin-bottom: 14px;
}

.prvni article p {
    font-size: 11px;
    margin-top: 0;
    margin-bottom: 16px;
    text-align: center;
}

.show-btn {
    display: flex;
    justify-content: center;
}


.druha {
    flex-direction: row;
    padding: 0;
    gap: 50px;
}

.druha article {
    padding: 50px 4%;
}

.druha h1 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 800;
}

.druha hr {
    width: 90px;
    height: 4px;
    border: 0;
    margin: 0 0 24px;
}

.history {
    background: var(--yellow);
    color: black;
    clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%);
    padding-right: 9% !important;
}

.history hr {
    background: black;
}

.history p {
    font-size: 11px;
}

.ig {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    align-content: start;
    background: linear-gradient(160deg, #1aa0e6, #0a78bf);
    color: white;
    margin-left: -3%;
    clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%);
    padding-left: 8% !important;
}

.ig h1,
.ig hr {
    grid-column: 1 / -1;
}

.ig hr {
    background: white;
    margin-bottom: 16px;
}

.ig img {
    display: block;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    background: linear-gradient(135deg, #1b2a3a, #4a5a3a);
}

.ig h4 {
    grid-column: 1 / 3;
    text-align: right;
    align-self: center;
    margin: 14px 12px 0 0;
    font-size: 12px;
    text-transform: none;
}

.ig .pruhledny {
    grid-column: 3;
    margin-top: 14px;
}

/* ---------- FORMULÁŘ ---------- */
.treti {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
    row-gap: 14px;
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 5% 50px;
}

.treti h1,
.treti>hr {
    grid-column: 1 / -1;
}

.treti h1 {
    margin: 0;
    text-align: center;
    font-size: 34px;
    font-weight: 800;
}

.treti>hr {
    width: 90px;
    height: 4px;
    background: black;
    border: 0;
    margin: 0 auto 20px;
}

.input:nth-of-type(n+3) {
    grid-column: 1 / -1;
}

.input input[type="text"],
.input input[type="email"],
.input textarea {
    width: 100%;
    border: 1px solid #ddd;
    padding: 12px;
    font-family: inherit;
    font-size: 11px;
    text-transform: uppercase;
    background: white;
}

.input textarea {
    height: 90px;
    resize: vertical;
}

.input input:focus,
.input textarea:focus {
    outline: 2px solid var(--blue);
    outline-offset: 1px;
}

.sub-radio {
    font-size: 11px;
    margin-left: 6px;
}

.treti .send {
    grid-column: 2;
    justify-self: end;
    padding: 12px 60px;
}

/* ---------- FOOTER ---------- */
footer {
    background: black;
    color: white;
    text-align: center;
    padding: 30px 5%;
}

footer h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 800;
    font-style: italic;
    text-transform: lowercase;
    color: var(--blue);
    text-shadow: 2px 2px 0 var(--yellow);
}
 

/* ---------- MOBIL ---------- */
@media (max-width: 800px) {
    .top {
        flex-direction: column;
        gap: 14px;
    }

    nav {
        justify-content: center;
    }

    .text-obrazky h1 {
        font-size: 32px;
    }

    .prvni,
    .treti {
        grid-template-columns: 1fr;
    }

    .prvni article {
        margin-bottom: 30px;
    }

    .druha {
        flex-direction: column;
    }

    .history,
    .ig {
        clip-path: none;
        margin-left: 0;
        padding: 40px 5% !important;
    }

    .treti .send {
        grid-column: 1;
        justify-self: stretch;
    }
}