@import url('./about.css');
@import url('./search.css');
@import url('./slider.css');
@import url('./article.css');
@import url('./contact.css');
@import url('./privacy.css');
@import url('./terms.css');

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    font-family: 'Inter', sans-serif;
    color: #111111;
    line-height: 1.4;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ========== HEADER ========== */
.site-header {
    padding: 24px 0;
    border-bottom: 1px solid #f0f0f0;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(2px);
    background-color: rgba(255, 255, 255, 0.96);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: #000;
    transition: opacity 0.2s;
}

.logo a:hover {
    opacity: 0.7;
}

.logo span {
    color: #ff5e3a;
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #2c2c2c;
    font-size: 1rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #ff5e3a;
}

.btn-outline-accent {
    border: 1.5px solid #ff5e3a;
    background: transparent;
    padding: 8px 18px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #ff5e3a;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-outline-accent:hover {
    background: #ff5e3a;
    color: white;
}

/* ========== HERO ========== */
.hero {
    padding: 80px 0 70px;
}

.hero-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
    min-width: 280px;
}

.hero-badge {
    display: inline-block;
    background: #fff1ed;
    color: #ff5e3a;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 40px;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: #111;
}

.hero-content h1 .highlight {
    color: #ff5e3a;
    border-bottom: 3px solid #ffd5c9;
    display: inline-block;
}

.hero-desc {
    font-size: 1.2rem;
    color: #4a4a4a;
    max-width: 90%;
    margin-bottom: 36px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: #ff5e3a;
    border: none;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(255, 94, 58, 0.2);
}

.btn-primary:hover {
    background: #e94e2c;
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    min-width: 280px;
    background: #faf7f5;
    border-radius: 32px;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-icon {
    font-size: 9rem;
    color: #ffc7b8;
}

/* ========== LATEST POSTS ========== */
.latest-section {
    padding: 40px 0 70px;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 48px;
    letter-spacing: -0.01em;
    border-left: 5px solid #ff5e3a;
    padding-left: 20px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.post-item {
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 24px;
    transition: 0.2s;
}

.post-meta {
    font-size: 0.8rem;
    color: #ff5e3a;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.post-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 14px;
    line-height: 1.3;
}

.post-excerpt {
    color: #4f4f4f;
    margin-bottom: 20px;
    line-height: 1.5;
}

.post-link {
    font-weight: 600;
    text-decoration: none;
    color: #111;
    border-bottom: 2px solid #ffd2c5;
    padding-bottom: 2px;
    transition: all 0.2s;
}

.post-link:hover {
    color: #ff5e3a;
    border-bottom-color: #ff5e3a;
}

/* ========== NEWSLETTER ========== */
.newsletter {
    background: #111111;
    border-radius: 44px;
    margin: 60px 0 60px;
    padding: 70px 48px;
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter:before {
    content: "✧";
    font-size: 180px;
    position: absolute;
    bottom: -30px;
    right: -20px;
    opacity: 0.06;
    pointer-events: none;
    font-family: monospace;
}

.newsletter-content {
    max-width: 70%;
    position: relative;
    z-index: 2;
}

.newsletter h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.newsletter p {
    font-size: 1.05rem;
    opacity: 0.8;
    margin-bottom: 32px;
}

.form-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.form-group input {
    flex: 2;
    min-width: 240px;
    padding: 16px 24px;
    border-radius: 60px;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    background: #2a2a2a;
    color: white;
    outline: none;
}

.form-group input::placeholder {
    color: #aaa;
}

.form-group input:focus {
    background: #3a3a3a;
}

.btn-subscribe {
    background: #ff5e3a;
    border: none;
    padding: 16px 36px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-subscribe:hover {
    background: #ff7e5e;
    transform: scale(0.97);
}

/* ========== FOOTER ========== */
.footer {
    padding: 48px 0 56px;
    border-top: 1px solid #efefef;
    margin-top: 20px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col p {
    color: #5f5f5f;
    margin-top: 12px;
    font-size: 0.85rem;
}

.footer-col h4 {
    font-weight: 600;
    margin-bottom: 18px;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: #3d3d3d;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ff5e3a;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.social-icons a {
    color: #2c2c2c;
    font-size: 1.4rem;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: #ff5e3a;
}

.copyright {
    text-align: center;
    margin-top: 50px;
    font-size: 0.8rem;
    color: #8f8f8f;
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 900px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .newsletter-content {
        max-width: 100%;
    }
    .container {
        padding: 0 24px;
    }
}

@media (max-width: 700px) {
    .header-inner {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ========== CATEGORIES SECTION ========== */
.categories-section {
    padding: 40px 0 20px;
}

.categories-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 30px;
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 120px;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #ff5e3a;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.category-card i {
    font-size: 2rem;
    color: #ff5e3a;
}

.category-card span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

/* ========== SECTION HEADER ========== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-link a {
    color: #ff5e3a;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: gap 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.section-link a:hover {
    gap: 10px;
}

/* Адаптивность для категорий */
@media (max-width: 768px) {
    .categories-wrapper {
        gap: 15px;
    }

    .category-card {
        padding: 15px 20px;
        min-width: 80px;
    }

    .category-card i {
        font-size: 1.5rem;
    }

    .category-card span {
        font-size: 0.75rem;
    }
}

/* ========== SLIDER WITH NAVIGATION BUTTONS ========== */
.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 0 40px;
}

.slides-wrapper {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #eaeaea;
    cursor: pointer;
    font-size: 1rem;
    color: #2c2c2c;
    transition: all 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background: #ff5e3a;
    border-color: #ff5e3a;
    color: white;
}

.slider-nav.prev {
    left: 0;
}

.slider-nav.next {
    right: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .categories-wrapper {
        gap: 15px;
    }

    .category-card {
        padding: 15px 20px;
        min-width: 80px;
    }

    .category-card i {
        font-size: 1.5rem;
    }

    .category-card span {
        font-size: 0.75rem;
    }

    .slider-container {
        padding: 0 30px;
    }

    .slider-nav {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

/* Стили для карточек с фоновыми изображениями */
.card-img {
    height: 210px;
    background-size: cover;
    background-position: center;
    background-color: #f4edea;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.card-img i {
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 50%;
}

.post-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-image i {
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 50%;
}