* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #18181b;
    background: #f4f4f5;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.site-header {
    background: #58585a;
    border-bottom: 1px solid #e4e4e7;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 800;
    font-size: 20px;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    gap: 24px;
    font-weight: 600;
}

.nav a {
    color: white;
}

.nav a:hover {
    color: #f58121;
}

@media (min-width: 1200px) {
    .nav {
        gap: 56px;
    }
}

.header-button,
.button,
.card-button {
    display: inline-block;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 700;
}

.header-button {
    background: #f58121;
    color: white;
    transition: 0.2s ease;
}

.header-button:hover  {
    transform: translateY(-1px);
}

.primary,
.card-button {
    background: #18181b;
    color: white;
}

.secondary {
    border: 1px solid #d4d4d8;
    background: white;
}

.light {
    background: white;
    color: #18181b;
}

.hero {
    background: white;
    padding: 80px 0;
}

.hero-grid,
.tractor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #71717a;
    font-weight: 800;
    font-size: 14px;
}

h1 {
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1;
    margin: 0 0 24px;
}

h2 {
    font-size: 36px;
    margin: 0 0 16px;
}

.hero-text {
    font-size: 20px;
    line-height: 1.7;
    color: #52525b;
}

.button-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image {
    aspect-ratio: 4 / 3;
    width: 100%;
    min-height: 475px;
    border-radius: 28px;
    overflow: hidden;
    background: #d4d4d8;
}

.video-placeholder {
    min-height: 360px;
    border-radius: 28px;
    background: #d4d4d8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #52525b;
    text-align: center;
    padding: 24px;
}

.section {
    padding: 72px 0;
}

.section-heading {
    margin-bottom: 32px;
}

.section-heading p {
    color: #52525b;
}

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

.card {
    background: white;
    border: 1px solid #e4e4e7;
    border-radius: 22px;
    overflow: hidden;

    display: flex;
    flex-direction: column;
}

.card-image {
    height: 380px;
    background: #d4d4d8;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#carsList .card-image,
#featuredCars .card-image {
    aspect-ratio: 4 / 3;
    height: auto;
}

#carsList .card-image img,
#featuredCars .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#tractorList .card-image {
    height: auto;
}

#tractorList .card-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: unset;
}

.card-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #52525b;
}

.card-body {
    padding: 22px;

    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h3 {
    margin: 0 0 10px;
}

.card-body p {
    color: #52525b;
}

.price {
    display: block;
    font-size: 26px;
    margin-top: auto;
    margin-bottom: 16px;
}

.card-button {
    width: 100%;
    text-align: center;
    margin-top: 0;
}

.tractor-section {
    background: #18181b;
    color: white;
    padding: 80px 0;
}

.tractor-section p {
    color: #d4d4d8;
    line-height: 1.7;
}

.trust-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.trust-grid div {
    background: white;
    border: 1px solid #e4e4e7;
    border-radius: 18px;
    padding: 24px;
    font-weight: 700;
}

.contact-box {
    background: white;
    border: 1px solid #e4e4e7;
    border-radius: 22px;
    padding: 28px;
    margin-top: 24px;
}

.contact-link {
    color: #f58121;
    text-decoration: underline;
}

.contact-link:hover {
    color: #d96d12;
}

.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filters input,
.filters select {
    padding: 14px;
    border: 1px solid #d4d4d8;
    border-radius: 12px;
    font-size: 16px;
}

.center {
    text-align: center;
    margin-top: 36px;
}

.work-hours {
    margin-bottom: 36px;
}

.work-hours h3 {
    margin-bottom: 12px;
}

.work-hours ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.work-hours li {
    margin-bottom: 8px;
}

.work-hours span {
    font-weight: 700;
}

.map-container {
    width: 70%;
    max-width: 700px;
    margin: 16px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e4e4e7;
}

.map-container iframe {
    display: block;
}

.benefits-grid {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.benefit-card {
    background: white;
    border: 1px solid #e4e4e7;
    border-radius: 18px;
    padding: 24px;
}

.benefit-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.benefit-card p {
    margin-bottom: 0;
    color: #58585a;
}

.tractor-brand-row {
    display: flex;
    align-items: center;
    gap: 32px;
    margin: 24px 0 40px;
}

.tractor-brand-logo {
    width: 250px;
    height: auto;
    flex-shrink: 0;
}

.tractor-brand-row p {
    margin: 0;
    line-height: 1.7;
}

.video-container {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: auto;
    max-height: 500px;
    display: block;
}

.phone-video-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    background: black;
}

.phone-video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

.footer {
    background: #58585a;
    color: white;
    text-align: center;
    padding: 28px;
}

@media (max-width: 800px) {
    /*
    .nav {
        display: none;
    }
    */

    .hero-grid,
    .tractor-grid,
    .cards,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 56px 0;
    }
/*
    .hero-image,
    .video-placeholder {
        max-height: 240px;
    }
        */
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .header-button {
        width: 100%;
        max-width: 220px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-image {
        order: -1;
    }
}

.hero-image {
    width: 100%;
    height: clamp(360px, 40vw, 550px);
    border-radius: 28px;
    overflow: hidden;
    background: #58585a;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tractor-brand-row {
    display: flex;
    align-items: center;
    gap: 2rem;
}

@media (max-width: 900px) {
    .tractor-brand-row {
        flex-direction: column;
        text-align: center;
    }

    .tractor-brand-logo {
        max-width: 250px;
    }
}

@media (max-width: 900px) {
    .site-header {
        padding: 16px 0;
    }

    .header-inner {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .nav {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 18px;
    }

    .nav a {
        color: white;
        padding: 6px 0;
    }

    .header-button {
        width: auto;
        min-width: 160px;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .header-inner {
        height: auto;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding: 16px 0;
    }

    .site-header {
        padding: 0;
    }

    .nav {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 18px;
    }

    .nav a {
        color: white;
        padding: 6px 0;
    }

    .header-button {
        width: auto;
        min-width: 160px;
        text-align: center;
    }

    .hero-grid,
    .tractor-grid,
    .cards,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .hero-image {
        order: -1;
        width: 100%;
        height: clamp(320px, 75vw, 460px);
        max-height: none;
    }

    .button-row {
        flex-direction: column;
    }

    .button-row .button {
        width: 100%;
        text-align: center;
    }

    .tractor-brand-row {
        flex-direction: column;
        text-align: center;
    }
}