/* Umumiy sozlamalar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #222;
}

/* Header */
header {
    background: #111;
    color: white;
    padding: 20px 50px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 28px;
}

/* Menu */
nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

nav a:hover {
    color: #f5b400;
}

/* Bosh banner */
.hero {
    min-height: 500px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    background: #222;
    color: white;
}

.hero h2 {
    font-size: 50px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 22px;
    margin-bottom: 30px;
}

/* Tugma */
.button {
    background: #f5b400;
    color: #111;

    padding: 14px 30px;

    text-decoration: none;
    font-weight: bold;

    border-radius: 5px;
}

.button:hover {
    background: white;
}

/* Footer */
footer {
    background: #111;
    color: white;

    text-align: center;

    padding: 20px;
}
/* Biz haqimizda */

.about {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    background: white;
    border-radius: 10px;
}

.about h2 {
    font-size: 40px;
    margin-bottom: 25px;
}

.about p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.about h3 {
    font-size: 25px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.about ul {
    list-style: none;
}

.about li {
    font-size: 18px;
    margin: 12px 0;
}
/* Xizmatlar */

.services {
    max-width: 1100px;
    margin: 60px auto;
    padding: 20px;
}

.services h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 40px;
}

.service-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;

    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-card h3 {
    font-size: 23px;
    margin-bottom: 15px;
}

.service-card p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-card strong {
    font-size: 20px;
    color: #f5a900;
}
/* Sartaroshlar */

.masters {
    max-width: 1100px;
    margin: 60px auto;
    padding: 20px;
}

.masters h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 40px;
}

.masters-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.master-card {
    background: white;
    padding: 25px;
    text-align: center;
    border-radius: 10px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.master-photo {
    width: 150px;
    height: 150px;

    margin: 0 auto 20px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #eee;
    border-radius: 50%;

    font-size: 70px;
}

.master-card h3 {
    font-size: 23px;
    margin-bottom: 10px;
}

.master-card p {
    margin-bottom: 10px;
}

.master-card span {
    color: #f5a900;
    font-weight: bold;
}
/* Galereya */

.gallery {
    max-width: 1100px;
    margin: 60px auto;
    padding: 20px;
}

.gallery h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 40px;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.gallery-item {
    background: white;
    padding: 15px;
    border-radius: 10px;

    text-align: center;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);

    transition: 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-image {
    height: 220px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #eeeeee;
    border-radius: 8px;

    font-size: 80px;

    margin-bottom: 15px;
}

.gallery-item h3 {
    font-size: 20px;
    padding: 10px;
}
/* Aloqa */

.contact {
    max-width: 1100px;
    margin: 60px auto;
    padding: 20px;
}

.contact h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 40px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-info,
.contact-form {
    background: white;
    padding: 30px;
    border-radius: 10px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h3,
.contact-form h3 {
    font-size: 25px;
    margin-bottom: 25px;
}

.contact-info p {
    font-size: 18px;
    margin: 20px 0;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;

    border: 1px solid #ccc;
    border-radius: 5px;

    font-size: 16px;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    padding: 14px;

    background: #f5b400;
    color: #111;

    border: none;
    border-radius: 5px;

    font-size: 17px;
    font-weight: bold;

    cursor: pointer;
}

.contact-form button:hover {
    background: #111;
    color: white;
}
/* =========================
   RESPONSIVE DESIGN
   ========================= */

/* Planshet */
@media (max-width: 900px) {

    header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero h2 {
        font-size: 40px;
    }

    .service-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .masters-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Telefon */
@media (max-width: 600px) {

    header h1 {
        font-size: 24px;
    }

    nav {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

  .hero {
    min-height: 600px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 60px;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.45)
        ),
        url("../images/barber.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: white;
}

.hero-content {
    max-width: 700px;
}

.hero-small {
    color: #f5b400;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero h2 {
    font-size: 32px;
}

.hero-text {
    font-size: 20px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.button-light {
    background: white;
    color: #111;
}

.button-light:hover {
    background: #f5b400;
    color: #111;
}

    .hero h2 {
        font-size: 32px;
    }

    .hero p {
        font-size: 18px;
    }

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

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

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

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

    .about {
        margin: 30px 15px;
        padding: 25px;
    }

    .about h2,
    .services h2,
    .masters h2,
    .gallery h2,
    .contact h2 {
        font-size: 30px;
    }
}