/* Общие стили */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #d8a200;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Контейнер для выравнивания содержимого */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Шапка сайта */
header {
    background-color: #2C3E50;
    color: white;
    padding: 60px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 48px;
    letter-spacing: 2px;
}

header p {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 300;
}

/* Панель навигации */
nav {
    background-color: #34495E;
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav ul li a {
    color: #ecf0f1;
    font-size: 18px;
    text-decoration: none;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Сетка категорий */
.category-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.category-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-item h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #2C3E50;
}

.category-item p {
    font-size: 16px;
    color: #7f8c8d;
}

.category-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.category-item a {
    text-decoration: none;
    color: inherit;
}

/* Футер */
footer {
    background-color: #2C3E50;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: auto; /* Фиксирует футер внизу страницы */
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #ecf0f1;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Адаптивность для маленьких экранов */
@media (max-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }
}
/* Стили для описания компании */
.company-description {
    background: rgba(0, 0, 0, 0.05);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

.company-description h2 {
    font-size: 32px;
    color: #2C3E50;
    margin-bottom: 20px;
}

.company-content {
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.company-content p {
    margin-bottom: 20px;
}

.company-content .back-to-contact {
    display: inline-block;
    font-size: 18px;
    text-decoration: none;
    background-color: #2C3E50;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 30px;
}

.company-content .back-to-contact:hover {
    background-color: #34495E;
}


/* Блок с отзывами */
.testimonials {
    background: #f7f7f7;
    padding: 40px 0;
}

.testimonials h2 {
    font-size: 32px;
    color: #2C3E50;
    text-align: center;
    margin-bottom: 40px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
}

.testimonial-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.testimonial-photo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.testimonial-text p {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
}

.testimonial-text strong {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

/* Стили для блока с качеством */
#quality-assurance {
    background-color: #f4f4f4;
    padding: 40px 0;
}

#quality-assurance .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

#quality-assurance h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.quality-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.quality-item h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.quality-item p {
    color: #666;
    font-size: 16px;
}

/* Футер */
#contact {
    background-color: #2C3E50;
    color: #fff;
    padding: 40px 0;
    font-family: 'Arial', sans-serif;
    text-align: left;
}

#contact .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Верхняя часть футера с контактной информацией и адресом */
.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.footer-contact-info,
.footer-address {
    flex: 1;
    min-width: 280px;
    padding: 0 20px;
    background-color: #34495E;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.footer-contact-info:hover,
.footer-address:hover {
    transform: translateY(-5px);
}

.footer-contact-info h3,
.footer-address h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #ecf0f1;
    font-weight: 600;
    text-transform: uppercase;
}

.footer-contact-info p,
.footer-address p {
    font-size: 16px;
    margin-bottom: 10px;
    color: #ecf0f1;
}

.footer-contact-info a,
.footer-address a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-contact-info a:hover,
.footer-address a:hover {
    color: #3498db;
}

/* Нижняя часть футера */
.footer-bottom {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #bdc3c7;
    margin-top: 30px;
}

/* Уменьшение шрифта и адаптивность на мобильных устройствах */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
    }

    .footer-contact-info,
    .footer-address {
        min-width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }

    .footer-bottom {
        font-size: 12px;
    }
}
/* Нижняя часть футера */
.footer-bottom {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #bdc3c7;
    margin-top: 30px;
}

/* Ссылка на сайт */
.footer-bottom a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #3498db;
}


/* Стили для блока блогов */
#blogs {
    padding: 50px 0;
    background-color: #f9f9f9;
}

#blogs .container {
    width: 80%;
    margin: 0 auto;
}

#blogs h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 40px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-item {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.blog-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.blog-item h3 {
    font-size: 1.3rem;
    color: #333;
    margin: 20px 15px 10px;
    font-weight: bold;
}

.blog-item p {
    font-size: 1rem;
    color: #777;
    margin: 0 15px 20px;
}

.blog-item a {
    display: block;
    text-decoration: none;
}

.blog-item a:hover h3 {
    color: #3498db;
}
