/* Общие стили */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #777;
    --header-height: 64vh;
    /* change to desired height */
    --overlay-color: rgba(0, 0, 0, 0.35);
    --accent: #ff7a18;
    --transition: 1000ms;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {

    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

.seo-title {
    position: absolute;
    /* sahifadan tashqariga chiqariladi */
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* NAVBAR */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h2,
h3,
h4 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #05d331;
    color: white;
    padding: 12px 20px;
    /* Увеличиваем отступы */
    border-radius: 20px;
    /* Делаем более овальную форму */
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.7rem;
    /* Немного увеличиваем текст */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Добавляем легкую тень */
}

/* #orderBtn {
    padding: 24px 60px;
    font-size: 24px;

} */

.btn-primary:hover {
    background-color: #ff0202;
    transform: translateY(-2px);
}

/* Навигационная панель */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0 10px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.mobile-phone {
    display: block;
    margin-left: auto;
    margin-right: 20px;
}

.mobile-phone a {
    color: var(--dark-color);
    font-size: 1.2rem;
}

.desktop-phone {
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Dropdown menyu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1000;
}

.dropdown-menu li {
    width: 200px;
}

.dropdown-menu li a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
}

.dropdown-menu li a:hover {
    background: #f2f2f2;
}

/* Hover qilganda chiqadi */
.dropdown:hover .dropdown-menu {
    display: block;
}

.call-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--secondary-color);
}

/* Language selector */
.language-selector {
    position: relative;
    display: inline-block;
}

.language-btn {
    background: rgba(37, 241, 98, 0.103);
    border: none;
    color: rgb(0, 0, 0);
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.language-btn:hover {
    background: rgb(79, 255, 26);
}

.language-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: rgb(255, 255, 255);
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    z-index: 1000;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    transition: all 0.2s;
}

.language-option:hover {
    background: #f0f0f0;
}

.language-option.active {
    background: #e3f2fd;
    color: #1e3c72;
}

.flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Герой-секция */
.slider-container {
    margin: 90px auto 10px;
    max-width: 1200px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 30px;
}

.slide-title {
    margin: 0 0 6px 0;
    font-size: 1.6rem;
    /* kerak bo'lsa px bilan ham yozing */
    line-height: 1.1;
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 5, 10);
}

.slide-description {
    margin: 0 0 12px 0;
    font-size: 1rem;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 5, 10);
}

.slide-button {
    display: inline-block;
    background-color: #ff6b6b;
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.slide-button:hover {
    background-color: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dot.active {
    background-color: white;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.slider-arrow:hover {
    background-color: white;
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

/* Продукция */
.products {
    padding: 50px 0 20px;
    background-color: white;
}

.products h2 {
    text-align: center;
    font-size: 1.4rem;
    color: var(--primary-color);
}


.product-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.category {
    background-color: var(--light-color);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    align-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: var(--secondary-color);
    color: white;
}

.category h3 {
    font-size: 1.3rem;
}

/* Стили для основного слайдера продукции */
.products-slider {
    max-width: 1200px;
    margin: 0 auto 50px;
    position: relative;
    overflow: hidden;
}

.products-container {
    display: flex;
    transition: transform 0.5s ease;
    padding: 10px 0;
}

.product-card {
    width: 202px;
    margin: 0 10px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-info h3 {
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-image {
    width: 202px;
    height: 303px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.slider-btn {
    pointer-events: all;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    color: #333;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background-color: white;
    transform: scale(1.1);
}

/* Стили для модального окна слайдера */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-slider {
    width: 90%;
    max-width: 1000px;
    position: relative;
}

.modal-slide {
    display: none;
    width: 100%;
}

.modal-slide.active {
    display: block;
    animation: fade 0.5s;
}

@keyframes fade {
    from {
        opacity: 0.4
    }

    to {
        opacity: 1
    }
}

.modal-slide img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.modal-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
}

.modal-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.modal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.modal-dot.active {
    background-color: white;
}


/* Услуги */
.services {
    padding-top: 20px;
    background-color: var(--light-color);
}

.services h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 2.2rem;
    color: var(--primary-color);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
}

/* Партнеры */
.partners {
    padding: 40px 0;
    background-color: white;
}

.partners h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: var(--primary-color);
}

.partner-logos {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.partner-logos div {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

/* Контакты */
.contacts {
    padding-top: 20px;
    background-color: var(--light-color);
}

.contacts h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: var(--primary-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info a:hover {
    color: var(--secondary-color);
}

.map-container {
    background-color: #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

#map {
    display: block;

}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalopen 0.5s;
}

@keyframes modalopen {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.close:hover {
    color: var(--text-color);
}

.modal h2 {
    margin-bottom: 20px;
    text-align: center;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}


/* Адаптивность */

@media (max-width: 1200px) {

    .products-container {
        display: flex;
        flex-wrap: nowrap;
    }
}

@media (max-width: 1060px) {
    .products-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .product-card:nth-child(5) {
        margin-top: 10px;
    }

    .product-card:nth-child(6) {
        margin-top: 10px;
    }

    .logo img {
        max-width: 150px;
    }

}

@media (max-width: 917px) {
    .product-card:nth-child(4) {
        margin-top: 10px;
    }
}

@media (max-width: 992px) {
    .mobile-phone {
        display: block;
        font-size: 14px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    #contacts {
        margin-bottom: 100px;
    }

    .map-container {
        height: 300px;
    }

    .mobile-phone a {
        font-size: 12px;
    }

    .partner-logos img {
        max-width: 600px;
    }

    #map {
        margin-bottom: 100px;
    }

    .logo img {
        max-width: 115px;
    }

    .nav-links li {
        margin-left: 10px;
    }

    .nav-links a {
        font-weight: 500;
        font-size: 12px;
    }
}


@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .slide img {
        height: 400px;
    }

    .slide-title {
        font-size: 22px;
    }

    .slide-description {
        font-size: 14px;
        max-width: 90%;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .container {
        padding: 0 0px;
    }

    .navbar .container {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .partner-logos img {
        max-width: 500px;
    }

    .mobile-phone a {
        display: block;
        font-size: 14px;
    }

    .desktop-phone {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }


    .hamburger {
        display: block;
    }


    .section-title {
        font-size: 26px;
    }


}

@media (max-width: 665px) {
    .product-card:nth-child(3) {
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 70vh;
    }

    .partners h2 {
        font-size: 14px
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .product-categories {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .carousel-inner {
        height: 300px;
    }

    .partner-logos img {
        max-width: 300px;
    }

    .logo img {
        max-height: 100px;
    }

}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .slide img {
        height: 300px;
    }

    .slide-content {
        padding: 20px;
    }

    .slide-title {
        font-size: 18px;
    }

    .slide-description {
        font-size: 13px;
        max-width: 100%;
    }
}

@media (max-width: 443px) {
    .product-card:nth-child(2) {
        margin-top: 10px;
    }
}