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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


h1, h2, h3 {
    font-weight: 700;
    color: #1a1a1a;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #ff9f43;
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #ff9f43;
    color: #fff;
}

.btn-primary:hover {
    background-color: #e68a2e;
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #1a1a1a;
}

/* Шапка сайта */
header {
    background-color: #1a1a1a;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    color: #ff9f43;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #ddd;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff9f43;
}

/*баннер */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://unsplash.com') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
    padding-top: 80px;
}

.hero-content h1 {
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #ccc;
}

.hero-buttons .btn {
    margin: 0 10px;
}


section {
    padding: 80px 0;
}

/* О нас */
.about {
    background-color: #fff;
    text-align: center;
}

.about p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #555;
}

/* Раздел товаров */
.products {
    background-color: #f1f2f6;
}

/* Сетка карточек */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Карточки*/
.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    text-align: center;
    padding-bottom: 25px;
    height: 480px; /* Жестко задаем одинаковую высоту всей карточки */
    position: relative;
}

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

/* КАРТИНКА СТРОГО НАВЕРХУ ДО ЛИНИИ */
.card-img {
    width: 100%;
    height: 220px;            /* Фиксированная высота ТОЛЬКО для картинки */
    object-fit: cover;        /* Заполнение рамки без сплющивания */
    object-position: center;
    border-bottom: 1px solid #e1e2e6; /* Разделительная линия под картинкой */
    display: block;
}

.card h3 {
    margin: 20px 15px 10px;
    font-size: 1.3rem;
}

.card p {
    color: #666;
    padding: 0 15px;
    font-size: 0.95rem;
}

/* Услуги */
.services {
    background-color: #fff;
}

.service-box {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 8px;
    border-top: 5px solid #ff9f43;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.service-box h3 {
    margin-bottom: 15px;
}

.service-box p {
    color: #555;
}

/*кантакты*/
.contact {
    background-color: #f1f2f6;
}

.contact-wrapper {
    max-width: 600px;
    margin: 40px auto 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #ff9f43;
}

.contact-form button {
    width: 100%;
    font-size: 1.1rem;
}

/*дно*/
footer {
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

/* Стил ссылки*/
.insta-nav {
    color: #ff9f43 !important; /* Выделяем инсту в меню оранжевым */
}

.insta-footer {
    color: #ff9f43;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.insta-footer:hover {
    color: #fff;
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin: 20px 0;
    }
    
    .hero-content h1 {
        font-size: 2.3rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
}