/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #f9f9f9;
    color: #111;
}

a {
    color: #f60;
    text-decoration: none;
    transition: .3s;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    z-index: 1000;
    transition: background .3s, padding .3s;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

header.scrolled {
    background: white;
    padding: 10px 20px;
}

.header {
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-content: space-around;
    width: 100%;
}

.logo img {
    height: 40px;
    display: block;
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
}

.nav-list li {
    margin: 0 15px;
}

.nav-list li a {
    color: black;
    font-weight: 600;
    font-size: .95em;
}

/* Burger icon */
.burger {
    position: relative;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
}

.burger span {
    display: block;
    height: 3px;
    background: black;
    border-radius: 2px;
    transition: background .3s;
}

/* Hero */
.hero {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.slides .slide {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: center/cover no-repeat;
    /* подготовка к анимации */
    transition: transform 0.6s ease;
    transform: translateX(100%);
    z-index: 1;
}

.slides .slide.active {
    display: flex;
    transform: translateX(0);
    z-index: 2;
}

.slides .slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(5px);
    transform: scale(1.1);
    z-index: -2;
}

.slides .slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    font-size: 2em;
    padding: 0 10px;
    cursor: pointer;
    z-index: 4;
    border-radius: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}



.btn {
    background: #f60;
    padding: 12px 30px;
    border-radius: 25px;
    color: #fff;
    font-weight: 600;
}

/* Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 10px;
}

.divider {
    width: 60px;
    height: 4px;
    background: #f60;
    margin: 10px auto 40px;
}

/* Carousel */
#carousel {
    background: #fff;
}

.carousel {
    position: relative;
    overflow: hidden;
}

.slide {
    display: none;
}

.slide.active {
    display: block;
    animation: fadeIn 1s;
}

.carousel img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Form */
.form-message {
    display: none;
    padding: 15px 20px 15px 45px;
    border-radius: 5px;
    margin-bottom: 20px;
    position: relative;
    font-size: 16px;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-message.success {
    background-color: #e6f9ec;
    color: #2c662d;
    border-left: 4px solid #2c662d;
}

.form-message.error {
    background-color: #fdecea;
    color: #a61e4d;
    border-left: 4px solid #a61e4d;
}

/* Иконки перед сообщением */
.form-message::before {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.form-message.success::before {
    content: "✔";
}

.form-message.error::before {
    content: "✖";
}

/* Tractor List */
#tractors {
    background: #f9f9f9;
}

.tractor-list {
    display: grid;
    gap: 25px;
    grid-template-columns: 1fr;
}

.tractor-card {
    cursor: pointer;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: .3s;
}

.tractor-card:hover {
    transform: translateY(-5px);
}

.tractor-card img {
    width: 100%;
}

.info {
    padding: 15px;
    text-align: center;
}

.info h3 {
    margin-bottom: 8px;
}

.info p {
    color: #f60;
    font-weight: 700;
}

/* Quote Form */
.quote-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 10px;
}

.quote-form input,
.quote-form textarea,
.quote-form button {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.quote-form button {
    background: #f60;
    border: none;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

/* ======= Секция ======= */
#quote {
    border-radius: 16px;
    margin: 0;
}

/* контейнер: две колонки */
.quote-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 30px;
}

/* текстовая часть */
.quote-content h2 {
    font-size: 48px;
    color: #333;
    margin-bottom: 16px;
}

.quote-content p {
    font-size: 18px;
    color: #555;
    margin-bottom: 32px;
    line-height: 1.5;
}

/* кнопки */
.quote-buttons .btn {
    display: inline-flex;
    align-items: center;
    background: #ff6600;
    /* оранжевый основной */
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    padding: 14px 24px;
    margin-right: 16px;
    transition: background-color .3s;
}

.quote-buttons .btn span {
    margin-left: 8px;
    font-size: 20px;
}

.quote-buttons .btn:hover {
    background-color: #e65500;
    /* чуть темнее при ховере */
}

/* правая картинка */
.quote-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* адаптив */
@media (max-width: 960px) {
    .quote-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .quote-form {
        padding: 0;
    }

    .quote-buttons .btn {
        margin-right: 0;
        margin-bottom: 16px;
    }

    .quote-image {
        /* order: -1; */
    }
}


/* Features */
#features {
    background: #f60;
    color: #fff;
    padding: 60px 20px;
}

.features {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.feature-card h4 {
    margin-bottom: 10px;
}

.feature-card p {
    opacity: .9;
}

/* Supply */
#supply {
    background: #eee;
}

#supply .container {
    padding: 60px 20px;
}

#supply p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1em;
}

/* Team */
#team {
    background: #fff;
}

#team img {
    width: 100%;
}

.team-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

.member-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.member-card img {
    width: 250px;
    height: 250px;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: #000;
    color: #fff;
    padding: 40px 20px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.footer-contacts p,
.footer-copy p {
    margin: 5px 0;
}

/* Responsive */
@media(min-width:600px) {
    .nav-list {
        gap: 30px;
    }

    .features,
    .tractor-list,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        gap: 0;
    }
}

@media(min-width:900px) {

    .features,
    .tractor-list,
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width:600px) {
    header {
        padding: 10px 15px;
    }

    .logo img {
        height: 35px;
    }

    nav {
        flex: 0 0 auto;
    }

    header {
        justify-content: space-between;
    }

    .burger {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 0;
        flex-direction: column;
        align-items: center;
        background: white;
        overflow: hidden;
        transition: height .3s ease;
        padding-top: 0;
    }

    .nav-list.open {
        height: auto;
        max-height: 40vh;
    }

    .nav-list li {
        margin: 10px 0;
    }

    .burger.open span {
        background: transparent;
    }

    .burger.open::before,
    .burger.open::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 3px;
        background: black;
        top: 0;
        right: -100px;
        transform-origin: center;
        z-index: 9999;
    }

    .burger.open::before {
        transform: rotate(45deg);
    }

    .burger.open::after {
        transform: rotate(-45deg);
    }

    footer {
        padding: 20px 15px;
    }

    .footer-container {
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .video-block {
        padding: 40px 10px;
    }

    .video-wrapper {
        border-radius: 12px;
    }

    .video-wrapper::before {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 36px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.popup-checkbox {
    display: none;
}

.popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 9;
}

.popup-checkbox:checked+.tractor-card+.popup {
    display: flex;
}

.popup-content {
    padding: 15%;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    position: relative;
    max-width: 400px;
    max-height: 80%;
    overflow-y: auto;
}

.popup-content h3 {
    text-align: center;
    margin-bottom: 10px;
}

.popup-content ul {
    padding-left: 20px;
    padding-top: 10px;
}

.close-button {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    font-size: 20px;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.video-block {
    display: flex;
    justify-content: center;
    padding: 0 0 60px 0;
    background-color: #f0f0f0;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.video-block-video {
    display: block;
    width: 100%;
    height: auto;
    border: none;
}

.video-wrapper:hover::before {
    opacity: 1;
}

.video-wrapper:focus-within {
    outline: 3px solid #f60;
}

.video-block-video::-webkit-media-controls {
    /* background: rgba(0,0,0,0.6); */
}

.video-block-video::-webkit-media-controls-panel {
    /* background: rgba(0,0,0,0.6); */
}

.social-buttons {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.social-icon {
    width: 20px;
    height: 20px;
    margin-right: 6px;
}

.social-btn.wa {
    background-color: #25D366;
    color: #fff;
}

.social-btn.tg {
    background-color: #0088cc;
    color: #fff;
}

.contact-number {
    margin-top: 5px;
    font-size: 0.9em;
}

.catalog-title {
    margin: 20px 0 0 0;
    font-size: 1.1em;
    font-weight: bold;
}

.catalog-form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.gif {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gif img {
    max-width: 1024px;
    width: 100%;
}

#gif {
    background: #fff;
}