* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none !important;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: clamp(1.6rem, calc(1.6rem + ((1vw - 0.48rem) * 0.25)), 1.8rem);
    line-height: 1.4;
    background-color: #f2f2f2;
    color: #222222;
}

small {
    font-size: 1.4rem;
    color: #999999;
}

button {
    all: unset;
}

.credits {
    padding: 24px;
    background-color: white;
}

.credits .author {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    color: #222222;
    gap: 8px;
}

.credits .author:hover {
    text-decoration: underline;
}

.credits .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #0094ff;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
    border-radius: 999px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 2px 4px;
    transition: 0.2s;
}

.btn:hover {
    background-color: #0077cc;
}

.btn-icon {
    width: 20px;
    order: -1;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(2.4rem, calc(2.4rem + ((1vw - 0.48rem) * 1)), 3.2rem);
}

.content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(2.4rem, calc(2.4rem + ((1vw - 0.48rem) * 1)), 3.2rem);
    max-width: 720px;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(2.4rem, calc(2.4rem + ((1vw - 0.48rem) * 1)), 3.2rem);
    padding: clamp(3.2rem, calc(3.2rem + ((1vw - 0.48rem) * 2)), 4.8rem);
    border-radius: 8px;
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 8px;
}

.card-icon {
    width: clamp(6.4rem, calc(6.4rem + ((1vw - 0.48rem) * 4)), 9.6rem);
    fill: #cccccc;
    order: -1;
}

.card .list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subheading {
    font-size: clamp(2rem, calc(2rem + ((1vw - 0.48rem) * 0.5)), 2.4rem);
}

.keyword {
    font-size: 0.1rem;
    color: #e8e6e3;
}

.card .list-item {
    display: flex;
    padding-left: clamp(1.6rem, calc(1.6rem + ((1vw - 0.48rem) * 1)), 2.4rem);
    position: relative;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-icon {
    width: clamp(2.4rem, calc(2.4rem + ((1vw - 0.48rem) * 1)), 3.2rem);
    order: -1;
}

.card .list-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(0.6rem, calc(0.6rem + ((1vw - 0.48rem) * 0.25)), 0.8rem);
    height: clamp(0.6rem, calc(0.6rem + ((1vw - 0.48rem) * 0.25)), 0.8rem);
    background-color: #0094ff;
    border-radius: 999px;
}

.header {
    padding: 24px;
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 8px;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .logo {
    display: flex;
}

.header .nav {
    display: flex;
    align-items: center;
}

.header .list {
    display: flex;
}

.header .list-item {
    display: flex;
}

.header .link {
    display: flex;
    padding: 12px 24px;
    color: black;
    border-radius: 999px;
    transition: 0.2s;
}

.header .link:hover {
    background-color: #e6e6e6;
}

.header .btn {
    margin-left: 48px;
}

.header .phone {
    display: none;
}

.hamburger {
    display: none;
}

.hero {
    padding-top: 96px;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: clamp(9.6rem, calc(9.6rem + ((1vw - 0.48rem) * 18)), 24rem);
    background-image: url("/assets/images/tpmotors-autoservis-boskovice.webp");
    background-color: #222222;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.hero .keyword {
    color: #222222;
    margin-bottom: clamp(-3.2rem, calc(-2.4rem + ((1vw - 0.48rem) * -1)), -2.4rem);
}

.hero .heading {
    font-size: clamp(4.8rem, calc(4.8rem + ((1vw - 0.48rem) * 4)), 8rem);
    line-height: 100%;
}

.hero .wrapper {
    display: flex;
    align-items: center;
    gap: clamp(2.4rem, calc(2.4rem + ((1vw - 0.48rem) * 1)), 3.2rem);
}

.services {
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 96px;
}

.services .container {
    margin-top: clamp(-9.6rem, calc(-2.4rem + ((1vw - 0.48rem) * -9)), -2.4rem);
}

.services .keyword {
    color: #222222;
}

.brands {
    padding: 96px 24px;
    background-color: white;
}

.brands .container {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.brands .keyword {
    margin-bottom: -48px;
}

.brands .heading {
    font-size: clamp(3.2rem, calc(3.2rem + ((1vw - 0.48rem) * 2)), 4.8rem);
    line-height: 1.2;
    max-width: 640px;
}

.brands .grid {
    display: grid;
    grid-template-columns: repeat(8,1fr);
    gap: clamp(2.4rem, calc(2.4rem + ((1vw - 0.48rem) * 1)), 3.2rem);
}

.brands .logo {
    width: clamp(3.2rem, calc(3.2rem + ((1vw - 0.48rem) * 4)), 6.4rem);
}

.benefits {
    padding: 96px 24px;
}

.benefits .container {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.benefits .heading {
    font-size: clamp(3.2rem, calc(3.2rem + ((1vw - 0.48rem) * 2)), 4.8rem);
    line-height: 1.2;
}

.benefits .keyword {
    margin-bottom: -48px;
}

.benefits .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(2.4rem, calc(2.4rem + ((1vw - 0.48rem) * 1)), 3.2rem);
}

.benefits .card {
    padding: 32px;
    gap: 16px;
}

.grid .heading {
    font-size: clamp(2.4rem, calc(2.4rem + ((1vw - 0.48rem) * 1)), 3.2rem);
}

.card .icon {
    width: 32px;
    order: -1;
}

.pricing {
    padding: 96px 24px;
    background-color: white;
}

.pricing .container {
    max-width: 840px;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 48px;
}

.pricing .heading {
    font-size: clamp(3.2rem, calc(3.2rem + ((1vw - 0.48rem) * 2)), 4.8rem);
}

.pricing .keyword {
    margin-bottom: -48px;
}

.pricing .list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pricing .list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 2px dashed #cccccc;
    font-size: clamp(1.6rem, calc(1.6rem + ((1vw - 0.48rem) * 1)), 2.4rem);
}

.reviews {
    padding: 96px 24px;
    background-color: #222222;
    color:white;
    position: relative;
    overflow: hidden;
}

.reviews .decoration {
    position: absolute;
    transform: rotateZ(40deg);
    top: 0px;
    right: clamp(-24rem, calc(-16rem + ((1vw - 0.48rem) * -10)), -16rem);
    width: clamp(64rem, calc(64rem + ((1vw - 0.48rem) * 40)), 96rem);
}

.reviews .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 48px;
}

.reviews .heading {
    font-size: clamp(3.2rem, calc(3.2rem + ((1vw - 0.48rem) * 2)), 4.8rem);
    line-height: 1.2;
    max-width: 840px;
    z-index: 10;
}

.reviews .card {
    background-color: #333333;
    text-align: left;
}

.reviews .keyword {
    color: #222222;
    margin-bottom: -48px;
}

.review {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.review .photo {
    width: 48px;
    border: 2px solid #666666;
    border-radius: 999px;
}

.review .caption {
    font-size: 1.4rem;
}

.google-reviews {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.google-reviews .link {
    color: #999999;
    text-decoration: underline;
}

.google-reviews .link:hover {
    text-decoration: none;
}

.score {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    display: flex;
}

.contact {
    padding: 96px 24px;
}

.contact .container {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: clamp(4.8rem, calc(4.8rem + ((1vw - 0.48rem) * 6)), 9.6rem);
}

.contact .content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.contact .heading {
    font-size: clamp(3.2rem, calc(3.2rem + ((1vw - 0.48rem) * 2)), 4.8rem);
}

.contact .list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact .list-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact .link {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: clamp(2rem, calc(2rem + ((1vw - 0.48rem) * 0.5)), 2.4rem);
    color: #222222;
    font-weight: 700;
}

.contact .icon {
    display: flex;
    min-width: 48px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    background-color: #0094ff;
    color: white;
    border-radius: 999px;
    order: -1;
}

.contact .wrapper {
    display: flex;
    flex-direction: column;
}

.contact .caption {
    font-size: clamp(1.4rem, calc(1.4rem + ((1vw - 0.48rem) * 0.25)), 1.6rem);
    font-weight: 400;
}

.billing .heading {
    font-size: 24px;
}

.contact .billing {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact .card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: clamp(3.2rem, calc(3.2rem + ((1vw - 0.48rem) * 4)), 6.4rem);
    background-color: white;
}

.contact .card .heading {
    font-size: clamp(2.4rem, calc(2.4rem + ((1vw - 0.48rem) * 1)), 3.2rem);
}

.card .grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 32px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group input, select, textarea {
    font-size: clamp(1.6rem, calc(1.6rem + ((1vw - 0.48rem) * 0.25)), 1.8rem);
    padding: 16px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    transition: 0.2s;
}

.success {
	display: block;
    padding: 24px;
    text-align: center;
    border-radius: 4px;
    background-color:#d9f2e6;
    color: #26734d;
    font-weight: 700;
}

.hidden {
    display: none;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: white !important;
    color: #222222 !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 24px;
    cursor: pointer;
}

input:focus,
textarea:focus,
select:focus {
    border-color: transparent;
    outline-color: #222222;
    box-shadow: 0 0 0 2px #222222;
}

.form-group label {
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card small {
    text-align: center;
    margin: auto;
}

textarea {
    resize: none;
    line-height: 1.4;
}

.map {
    display: flex;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.full {
    grid-column: span 2;
}

@media (max-width: 1024px) {

    .header .list {
        display: none;
    }

    .header .link {
        width: 100%;
        text-align: center;
        align-items: center;
        justify-content: center;
        background-color:  #e6e6e6;
    }

    .header .btn {
        margin: unset;
        width: 100%;
    }

    .header .phone {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #0094ff;
        box-shadow: rgba(0, 0, 0, 0.16) 0px 2px 4px;
        color: white;
        border-radius: 999px;
        width: 32px;
        height: 32px;
        margin: 0px 24px 0px auto;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: space-between;
        width: 32px;
        height: 16px;
        cursor: pointer;
    }
    
    .hamburger .bar {
        height: 2px;
        background-color: black;
        transition: all 0.2s;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .list.active {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 24px;
        background-color: white;
        box-shadow: rgba(0, 0, 0, 0.08) 0px 8px 8px;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        z-index: 9999;
    }

    .hero {
        background-size: contain;
        background-position: top;
    }

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

    .hero .content {
        align-items: unset;
    }

    .brands .grid {
        grid-template-columns: repeat(6,1fr);
    }

    .pricing .list-item {
        flex-direction: column;
    }

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

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

    .full {
        grid-column: unset;
    }

    .credits .container {
        flex-direction: column;
        gap: 8px;
    }

}