/* 
Mobile-first дизайн 
Основные стили 
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    font-size: 0.7rem;
    font-family: 'Inter', sans-serif;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* HEADER */

.header {
    background: white;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
}

/* HERO */

.hero {
    background: url("https://images.unsplash.com/photo-1599058917212-d750089bc07e?q=80&w=2070&auto=format&fit=crop") center/cover no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content {
    background: rgba(0, 0, 0, 0.4);
    padding: 40px;
    border-radius: 10px;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* BUTTON */

.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background: #ff4d4d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    background: #ff1f1f;
}

/* SERVICES */

.services {
    padding: 60px 0;
    text-align: center;
}

.services-grid {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.card {
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ABOUT */

.about {
    padding: 60px 0;
}

.about-grid {
    display: grid;
    gap: 30px;
}

.about img {
    width: 100%;
    border-radius: 10px;
}

/* CONTACT */

.contact {
    padding: 60px 0;
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

input,
textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* FOOTER */

footer {
    text-align: center;
    padding: 25px;
    background: #111;
    color: white;
    margin-top: 40px;
}


/* TABLET */

@media(min-width:768px) {
    body {
        font-size: 0.9rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .hero h2 {
        font-size: 2.8rem;
    }

}

.back {
    color: #f3ebeb;
    text-decoration: none;
    background: #000000;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: .25s;
}

.back:hover {
    transform: translateY(-2px);
    background: #f5f3f3;
    color: #0e0101;
}

/* MOBILE ADAPTIVE - max-width: 768px */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 1.5rem;
    }

    body {
        font-size: 16px;
    }

    .hero {
        height: 60vh;
    }

    .hero-content {
        padding: 25px;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .services,
    .about,
    .contact {
        padding: 40px 15px;
    }

    .services h2,
    .about h2,
    .contact h2 {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about p {
        font-size: 0.95rem;
    }

    .card {
        padding: 18px;
        font-size: 13px;
    }

    .card h3 {
        font-size: 1.1rem;
    }

    .card p {
        font-size: 0.85rem;
    }

    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }

    .nav {
        padding: 10px 0;
        flex-wrap: nowrap;
        overflow: visible;
        gap: 5px;
    }

    .logo {
        font-size: 1rem;
        white-space: nowrap;
    }

    nav a {
        font-size: 12px;
        margin-left: 5px;
        white-space: nowrap;
    }

    .back {
        font-size: 14px;
        padding: 6px 8px;
        white-space: nowrap;
        position: fixed;
        bottom: 50px;
        right: 20px;
        z-index: 9999;
    }

    input,
    textarea {
        font-size: 14px;
    }

    input::placeholder,
    textarea::placeholder {
        font-size: 13px;
    }

    footer {
        padding: 18px;
        font-size: 12px;
    }
}