/* Подключение локальных TTF-шрифтов Roboto с официальными названиями */
@font-face {
    font-family: 'Roboto';
    src: url('/fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('/fonts/Roboto-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto';
    src: url('/fonts/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    background-color: #f9fafc;
    color: #1e293b;
    line-height: 1.5;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Шапка */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    font-size: 1.7rem;
    font-weight: 700;
    color: #0f3b5e;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo span {
    color: #2b7a4b;
}

.nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.nav a {
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav a:hover {
    color: #2b7a4b;
}

.search {
    background: #f1f4f9;
    border-radius: 40px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.95rem;
    width: 180px;
}

.search button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #2b7a4b;
}

/* Герой */
.hero {
    padding: 48px 0 32px;
    background: linear-gradient(145deg, #ffffff 0%, #f2f6fe 100%);
    border-radius: 0 0 40px 40px;
}

.hero__title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    max-width: 900px;
    margin-bottom: 16px;
    color: #0f3b5e;
}

.hero__subtitle {
    font-size: 1.3rem;
    color: #475569;
    margin-bottom: 40px;
    max-width: 750px;
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.category-item {
    background: white;
    border-radius: 60px;
    padding: 12px 28px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,40,20,0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    border: 1px solid #e2e8f0;
    cursor: default;
}

.category-item:hover {
    background: #2b7a4b;
    color: white;
    border-color: #2b7a4b;
}

/* Заголовки секций */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 48px 0 24px;
    color: #0f3b5e;
}

/* Карточки товаров */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eef2f6;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px rgba(0,80,30,0.08);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 16px;
    background: #f8fafd;
    border-radius: 18px;
    padding: 12px;
}

.product-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-card .pros {
    color: #2b7a4b;
    font-weight: 500;
    margin: 8px 0;
    font-size: 0.95rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 12px 0;
}

.stars {
    color: #f5b342;
    font-size: 1.3rem;
    letter-spacing: 2px;
}

.rating-value {
    background: #e6f0ea;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    color: #1e5e3a;
}

/* Действия с товаром (две кнопки) */
.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
}

.btn {
    background: #2b7a4b;
    color: white;
    border: none;
    padding: 14px 0;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background: #1d5f39;
}

.btn-partner {
    background: #f5b342;
    color: #1e293b;
}

.btn-partner:hover {
    background: #e09e2f;
}

.btn-outline {
    background: transparent;
    border: 2px solid #2b7a4b;
    color: #2b7a4b;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: 0.2s;
}

.btn-outline:hover {
    background: #2b7a4b;
    color: white;
}

/* Как выбрать */
.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.tip-card {
    background: white;
    border-radius: 24px;
    padding: 24px 20px;
    text-align: center;
    border: 1px solid #e9eef3;
}

.tip-card h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.tip-card p {
    color: #5f6b7a;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.tip-card a {
    color: #2b7a4b;
    font-weight: 600;
    text-decoration: none;
}

/* Сравнение */
.compare-row {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: #eef6f2;
    border-radius: 40px;
    padding: 40px;
    margin: 40px 0;
}

.compare-item {
    flex: 1 1 200px;
}

.compare-item h4 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.vs {
    font-size: 2rem;
    font-weight: 800;
    color: #0f3b5e;
    align-self: center;
}

/* FAQ */
.faq-grid {
    display: grid;
    gap: 16px;
    margin: 30px 0;
}

.faq-item {
    background: white;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid #dee7f0;
}

.faq-question {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.faq-answer {
    color: #3a4b5e;
    padding-right: 30px;
}

/* Сетка статей */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.article-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    border: 1px solid #e2e8f0;
}

.article-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.article-card-content {
    padding: 20px;
}

.article-card h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.article-card .date {
    color: #7e8b9c;
    font-size: 0.85rem;
}

/* Футер */
.footer {
    margin-top: 70px;
    background: #142b3b;
    color: #ccddee;
    padding: 48px 0 24px;
    border-radius: 40px 40px 0 0;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer a {
    color: #b0c9da;
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

.footer-copy {
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #2a4a5e;
    padding-top: 24px;
}

/* Адаптивность */
@media (max-width: 700px) {
    .hero__title { font-size: 2rem; }
    .hero__subtitle { font-size: 1.1rem; }
    .header__inner { flex-direction: column; align-items: stretch; }
    .nav { justify-content: center; }
    .compare-row { flex-direction: column; gap: 20px; }
    .product-actions {
        grid-template-columns: 1fr; /* на мобильных кнопки друг под другом */
    }
}