/* === Основные сбросы и базовые стили === */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f7f8fa;
    color: #222e38;
    font-size: 18px;
    line-height: 1.6;
}

a {
    color: #2755a7;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #133773;
}

/* === Контейнер для ограничения ширины === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
}

/* === HEADER === */
.site-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(42,66,122,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}
.logo-block .site-logo {
    font-size: 2rem;
    font-weight: bold;
    color: #2755a7;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.main-nav ul {
    display: flex;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav a {
    font-weight: 500;
    font-size: 1rem;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus {
    border-bottom: 2px solid #4076c6;
}
.header-actions {
    display: flex;
    align-items: center;
}
.search-form {
    display: flex;
    align-items: center;
    gap: 6px;
}
.search-form input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #cdd7ee;
    border-radius: 22px;
    font-size: 1rem;
    background: #f4f7fb;
    transition: border 0.2s;
}
.search-form input[type="text"]:focus {
    outline: none;
    border-color: #2755a7;
}
.search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
}

/* === HERO === */
.hero-block {
    background: linear-gradient(90deg, #e9efff 60%, #ffffff 100%);
    padding: 54px 0 40px 0;
}
.hero-content {
    text-align: left;
    max-width: 650px;
}
.hero-content h1 {
    font-size: 2.4rem;
    color: #1d3e77;
    margin-bottom: 14px;
    font-weight: 800;
}
.hero-content p {
    font-size: 1.15rem;
    color: #2c4166;
    margin-bottom: 0;
}

/* === Бренды/Статьи === */
.brands-list-section {
    padding: 38px 0 16px 0;
}
.brands-list-section h2 {
    font-size: 1.6rem;
    font-weight: bold;
    color: #23477d;
    margin-bottom: 26px;
}
.brands-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}
.brand-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(60,80,150,0.10);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s, box-shadow 0.18s;
}
.brand-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 28px rgba(60,80,150,0.18);
}
.brand-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.brand-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.brand-card-content h3 {
    font-size: 1.15rem;
    margin: 0 0 4px 0;
    color: #19417a;
    font-weight: 700;
}
.brand-link {
    color: #2773d0;
    font-weight: 600;
}
.brand-link:hover {
    text-decoration: underline;
    color: #17407c;
}
.brand-category {
    font-size: 0.95rem;
    color: #7887a2;
    margin-top: auto;
}

/* === РЕКОМЕНДУЕМ (Sheffilton) === */
.recommend-section {
    padding: 45px 0 30px 0;
    background: linear-gradient(90deg, #e0f0fa 60%, #ffffff 100%);
    border-radius: 14px;
    margin-bottom: 20px;
}
.recommend-block {
    display: flex;
    gap: 36px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.recommend-info {
    max-width: 480px;
}
.recommend-info h2 {
    font-size: 1.4rem;
    color: #2057ad;
    font-weight: 700;
    margin-bottom: 10px;
}
.recommend-info p {
    color: #29395e;
    margin-bottom: 14px;
    line-height: 1.7;
}
.btn-main {
    display: inline-block;
    background: #2a7dde;
    color: #fff;
    font-weight: 600;
    padding: 11px 32px;
    border-radius: 25px;
    box-shadow: 0 3px 10px rgba(36,98,212,0.13);
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
    font-size: 1rem;
    text-align: center;
}
.btn-main:hover {
    background: #1b3e77;
    transform: scale(1.04);
}
.recommend-img img {
    max-width: 220px;
    width: 100%;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(36,98,212,0.13);
}

/* === Категории === */
.categories-section {
    padding: 24px 0 16px 0;
}
.categories-section h2 {
    font-size: 1.25rem;
    color: #224c80;
    margin-bottom: 18px;
}
.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}
.category-item {
    background: #f0f6ff;
    color: #2755a7;
    font-weight: 500;
    border-radius: 28px;
    padding: 12px 28px;
    font-size: 1rem;
    box-shadow: 0 1px 6px rgba(54,120,200,0.07);
    transition: background 0.15s, color 0.15s;
    border: 1px solid #e2eaf4;
}
.category-item:hover {
    background: #e3ecfa;
    color: #1a3360;
}

/* === Отзывы === */
.reviews-section {
    padding: 32px 0 16px 0;
    background: #f9fafe;
}
.reviews-section h2 {
    font-size: 1.18rem;
    color: #204c80;
    margin-bottom: 16px;
}
.reviews-list {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}
.review {
    background: #fff;
    border-left: 4px solid #2a7dde;
    padding: 22px 20px 16px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(60,80,150,0.06);
    font-style: italic;
    flex: 1 1 280px;
    min-width: 220px;
    max-width: 460px;
    margin: 0;
}
.review span {
    display: block;
    color: #7586a0;
    margin-top: 9px;
    font-style: normal;
    font-size: 1rem;
}

/* === Новости / Блог === */
.news-section {
    padding: 30px 0 26px 0;
}
.news-section h2 {
    font-size: 1.18rem;
    color: #244b82;
    margin-bottom: 16px;
}
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.news-list li {
    background: #f3f7fb;
    border-left: 3px solid #2773d0;
    padding: 11px 18px;
    border-radius: 6px;
    margin-bottom: 10px;
    color: #2c4166;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.news-date {
    color: #7da4e3;
    font-size: 0.95rem;
    font-weight: 600;
    margin-right: 12px;
    min-width: 95px;
    display: inline-block;
}

/* === FOOTER === */
.site-footer {
    background: #23477d;
    color: #e9f2ff;
    padding: 46px 0 18px 0;
    margin-top: 45px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
}
.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 44px;
    align-items: flex-start;
    margin-bottom: 24px;
}
.footer-logo-block {
    flex: 1 1 240px;
}
.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}
.footer-description {
    color: #e9f2ff;
    opacity: 0.84;
    font-size: 1rem;
}
.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.footer-nav a {
    color: #a7c5ec;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.18s;
}
.footer-nav a:hover {
    color: #fff;
}
.footer-contacts {
    font-size: 1rem;
    color: #e9f2ff;
}
.footer-contact-item {
    margin-bottom: 11px;
}
.social-link {
    color: #e9f2ff;
    margin-right: 7px;
}
.social-link:hover {
    color: #a7c5ec;
}
.footer-bottom {
    text-align: center;
    color: #aac6eb;
    font-size: 0.95rem;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #345890;
}

/* === Адаптивность === */
@media (max-width: 900px) {
    .header-container, .footer-columns, .recommend-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }
    .main-nav ul {
        gap: 20px;
    }
    .brands-list {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .recommend-img img {
        max-width: 100%;
    }
    .categories-list {
        flex-wrap: wrap;
        gap: 12px;
    }
    .reviews-list {
        flex-direction: column;
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 8px;
    }
    .hero-content h1 {
        font-size: 1.3rem;
    }
    .site-header, .site-footer {
        min-width: 0;
    }
    .brand-card img {
        height: 110px;
    }
    .btn-main {
        padding: 10px 16px;
        font-size: 0.98rem;
    }
    .footer-logo {
        font-size: 1.1rem;
    }
    .footer-description {
        font-size: 0.95rem;
    }
}

