:root {
    --primary: #E6225A;
    --primary-dark: #c41849;
    --primary-light: #fdf2f5;
    --dark: #111827;
    --light: #f9fafb;
    --gray: #6b7280;
    --border: #e5e7eb;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'FindSans Pro', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Header va Navigatsiya */
header {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 75px;
    gap: 16px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.logo span {
    color: var(--dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 15px;
    transition: 0.25s;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Hero Banner (Bosh sahifa) */
.hero {
    background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
    color: var(--white);
    padding: 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(230, 34, 90, 0.22) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    color: #d4d4d8;
    max-width: 650px;
    margin: 0 auto 35px;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.25s;
    font-size: 16px;
    box-shadow: 0 4px 14px rgba(230, 34, 90, 0.35);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 34, 90, 0.45);
}

/* Sahifa bo'limlari */
section:not(.hero) {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 34px;
    color: var(--dark);
}

/* 1-bosqich: Pastga qarab qator-qator xizmat turlari (4x3 rasm bilan) */
.categories-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 24px;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 28px;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 12px 24px rgba(230, 34, 90, 0.12);
}

.category-img-4x3 {
    flex: 0 0 280px;
    aspect-ratio: 4 / 3;
    background: #efefef;
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--gray);
    font-size: 14px;
    padding: 12px;
    overflow: hidden;
}

.category-img-4x3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-title {
    flex: 1;
    text-align: left;
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    transition: 0.2s;
}

.category-card:hover .category-title {
    color: var(--primary);
}

/* 2-bosqich: Xizmat turi ichidagi kvadratli oynachalar */
.sub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.back-btn {
    background: var(--white);
    color: var(--dark);
    border: 1px solid var(--border);
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.back-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.sub-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    margin: 0 auto;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.catalog-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.2s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.catalog-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(230, 34, 90, 0.12);
}

.catalog-square-img {
	width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    background: #efefef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-square-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.catalog-card-title {
    padding: 10px 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
    transition: 0.2s;
}

.catalog-card:hover .catalog-card-title {
    color: var(--primary);
}

/* 3-bosqich: Oyna ustida oyna (Modal) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 999;
    overflow-y: auto;
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: var(--white);
    width: 100%;
    max-width: 920px;
    border-radius: 18px;
    padding: 28px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalFadeIn 0.2s ease-out;
    max-height: 92vh;
    overflow-y: auto;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--light);
    color: var(--dark);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.modal-close:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Modal ichidagi chap 3x4 rasm va o'ng jadval */
.service-row {
    display: flex;
    align-items: center;
    gap: 30px;
}

.service-thumb {
    width: 260px;
    height: 260px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #efefef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    border-radius: 0;
}

@media (max-width: 768px) {
    .service-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }
}

.service-content {
    flex: 1;
    min-width: 0;
    padding-right: 18px;
}

.service-title {
    font-size: 23px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
}

.service-desc {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 14px;
    line-height: 1.5;
}

.tiraj-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.3;
}

.tiraj-table th,
.tiraj-table td {
    padding: 5px 10px;
    border: 1px solid var(--border);
    text-align: left;
}

.tiraj-table th {
    background: var(--light);
    color: var(--dark);
    font-weight: 700;
    font-size: 11px;
}

.tiraj-table td:nth-child(2),
.tiraj-table th:nth-child(2) {
    text-align: center;
    color: var(--dark);
}

.tiraj-table td:last-child,
.tiraj-table th:last-child {
    text-align: right;
    font-weight: 700;
    color: var(--primary);
}

.total-line {
    background: var(--primary-light);
    color: var(--primary);
    border-left: 4px solid var(--primary);
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.lead-time {
    font-size: 13px;
    color: var(--dark);
    font-weight: 600;
}

.lead-time span {
    color: var(--primary);
}

/* Aloqa kartalari */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: var(--white);
    padding: 28px;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.card h3 {
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 19px;
}

.card p {
    color: var(--gray);
    font-size: 15px;
}

.price-tag {
    display: inline-block;
    margin-top: 14px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14px;
}

/* Barcha sahifalarda pastga qadalgan va 2 barobar kichik Footer */
footer {
    position: sticky;
    bottom: 0;
    z-index: 90;
    background: #18181b;
    color: #a1a1aa;
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #27272a;
}

footer p {
    margin-bottom: 2px;
    font-size: 11px;
    line-height: 1.35;
}

footer p:last-child {
    margin-bottom: 0;
}

footer strong {
    color: var(--white);
    font-size: 12px;
}

/* Planshet va Mobil moslashuvchanlik */
@media (max-width: 900px) {
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        justify-content: center;
        padding: 14px 0;
        gap: 10px;
        min-height: auto;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 18px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .hero {
        padding: 45px 0;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .btn {
        padding: 13px 24px;
        font-size: 15px;
        width: 100%;
        max-width: 320px;
    }

    section:not(.hero) {
        padding: 36px 0;
    }

    .section-title,
    .sub-title {
        font-size: 24px;
    }

    .category-card {
        flex-direction: column;
        align-items: center;
        padding: 16px;
        gap: 14px;
    }

    .category-img-4x3 {
        width: 100%;
        max-width: 320px;
        flex: none;
    }

    .category-title {
        text-align: center;
        font-size: 18px;
    }

    .modal-box {
        padding: 20px 16px;
    }

    .service-row {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }

    .service-thumb {
        width: 100%;
        max-width: 200px;
        flex: none;
    }

    .service-content {
        width: 100%;
        padding-right: 0;
    }

    .service-title {
        font-size: 20px;
    }

    .tiraj-table {
        font-size: 11px;
    }

    .tiraj-table th,
    .tiraj-table td {
        padding: 4px 6px;
    }

    .total-line {
        font-size: 13px;
    }

    footer {
        padding: 8px 0;
    }

    footer p {
        font-size: 10px;
    }

    footer strong {
        font-size: 11px;
    }
}

@media (max-width: 540px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .container {
        padding: 0 14px;
    }

    .logo {
        font-size: 21px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .category-title {
        font-size: 14px;
        padding: 12px 10px;
    }

    .catalog-card-title {
        font-size: 12px;
        padding: 8px 6px;
    }
}