.front-page-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 15px 40px;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
}

.fp-banner {
    margin-bottom: 20px;
    text-align: center;
}

.fp-banner img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.fp-banner-link {
    display: inline-block;
    max-width: 100%;
}

.fp-top-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr 0.9fr;
    gap: 20px;
    align-items: start;
}

.fp-box {
    background: #fff;
    border: 1px solid #d9d9d9;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.fp-box-title {
    background: #4caf2a;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 10px 14px;
    line-height: 1.2;
}

.fp-box-content {
    padding: 14px;
}

/* LEFT POSTS */
.fp-post-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fp-post-item {
    display: block;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #ececec;
    padding-bottom: 14px;
}

.fp-post-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.fp-post-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    margin-bottom: 8px;
}

.fp-post-thumb img {
    width: 100%;
    height: 155px;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}

.fp-post-item:hover .fp-post-thumb img {
    transform: scale(1.03);
}

.fp-post-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 5px;
}

.fp-post-excerpt {
    font-size: 13px;
    line-height: 1.45;
    color: #555;
    margin: 0;
}

/* CENTER TAX LIST */
.fp-search {
    margin-bottom: 14px;
    position: relative;
}

.fp-search input[type="search"] {
    width: 100%;
    border: 1px solid #cfcfcf;
    border-radius: 3px;
    padding: 12px 42px 12px 14px;
    font-size: 15px;
    outline: none;
    background: #fff;
}

.fp-search button {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #4caf2a;
    font-size: 18px;
    cursor: pointer;
}

.fp-tax-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #e6e6e6;
}

.fp-tax-item {
    border-bottom: 1px solid #e6e6e6;
}

.fp-tax-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 6px;
    text-decoration: none;
    color: #222;
    transition: background .2s ease;
}

.fp-tax-link:hover {
    background: #f8f8f8;
}

.fp-tax-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4caf2a;
}

.fp-tax-icon img,
.fp-tax-icon svg {
    max-width: 30px;
    max-height: 30px;
    display: block;
}

.fp-tax-name {
    font-size: 15px;
    line-height: 1.35;
    font-weight: 500;
}

.fp-tax-count {
    color: #666;
}

/* GAZETY PDF */
.fp-magazines {
    margin-top: 28px;
}

.fp-magazines-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.fp-magazine-item {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease;
}

.fp-magazine-item:hover {
    transform: translateY(-2px);
}

.fp-magazine-thumb {
    border: 1px solid #ddd;
    background: #fafafa;
    aspect-ratio: 1 / 1.35;
    overflow: hidden;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fp-magazine-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fp-magazine-title {
    font-size: 13px;
    line-height: 1.35;
    margin-top: 8px;
    text-align: center;
    color: #333;
    word-break: break-word;
}

/* LISTINGS */
.fp-bottom {
    margin-top: 28px;
}

.fp-listings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.fp-listing-card {
    border: 1px solid #ddd;
    background: #fff;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s ease, transform .2s ease;
}

.fp-listing-card:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
    transform: translateY(-1px);
}

.fp-listing-thumb {
    aspect-ratio: 1.25 / 0.9;
    overflow: hidden;
    background: #f5f5f5;
}

.fp-listing-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fp-listing-content {
    padding: 12px;
}

.fp-listing-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 6px;
}

.fp-listing-meta {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.fp-listing-price {
    color: #4caf2a;
    font-weight: 700;
    margin-top: 4px;
}

@media (max-width: 1100px) {
    .fp-top-grid {
        grid-template-columns: 1fr;
    }

    .fp-listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .front-page-wrap {
        padding: 12px 10px 30px;
    }

    .fp-listings-grid {
        grid-template-columns: 1fr;
    }

    .fp-post-thumb img {
        height: 200px;
    }

    .fp-magazines-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
