/* ============================================================
   Дополнительные секции главной: каталог продукции и отзывы.
   Свёрстаны в единой стилистике с about/services из main.css:
   те же отступы (150px 60px), скругления 24px, hover-подъём и градиенты.
   ============================================================ */

/* ---------------- Каталог ---------------- */

.catalog {
    padding: 150px 60px;
    background: var(--cream, #FDF8F5);
    position: relative;
    overflow: hidden;
}

.catalog::before {
    content: '';
    position: absolute;
    top: -180px;
    right: -180px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

/* --- Карточки товаров --- */

.catalog-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.catalog-card {
    display: flex;
    flex-direction: column;
    background: var(--white, #FFFFFF);
    border: 1px solid rgba(10, 10, 10, .07);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.catalog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.catalog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

/* Белый фон под фото и квадратная область — вертикальные вёдра смотрятся крупнее */
.catalog-card-media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--white, #FFFFFF);
    border-bottom: 1px solid rgba(10, 10, 10, .08);
    overflow: hidden;
}

/* Фото продукции вписываем целиком: вёдра вертикальные, обрезка их «съедает» */
.catalog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.6s ease;
}

.catalog-card:hover .catalog-card-media img { transform: scale(1.07); }

.catalog-card-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(10, 10, 10, 0.14);
}

.catalog-card-empty svg { width: 70px; height: 70px; }

.catalog-card-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.catalog-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white, #FFFFFF);
}

.catalog-badge-new { background: linear-gradient(135deg, var(--blue, #1A365D) 0%, var(--blue-dark, #0F2342) 100%); }
.catalog-badge-hit { background: linear-gradient(135deg, #E08A00 0%, #C87400 100%); }
.catalog-badge-sale { background: linear-gradient(135deg, var(--red, #C41E3A) 0%, var(--red-dark, #9A1830) 100%); }

.catalog-card-body { padding: 22px 24px 14px; }

.catalog-card-cat {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--red, #C41E3A);
}

.catalog-card-body h3 {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--black, #0A0A0A);
}

.catalog-card-body p {
    font-size: 0.93rem;
    line-height: 1.7;
    color: var(--gray, #6B7280);
    margin: 0;
}

.catalog-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 24px 22px;
    margin-top: auto;
}

.catalog-price {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    background: var(--red, #C41E3A);
    color: var(--white, #FFFFFF);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.98rem;
}

.catalog-price span { font-size: 0.8rem; opacity: 0.8; }

.catalog-price-request {
    background: rgba(10, 10, 10, 0.06);
    color: var(--black, #0A0A0A);
}

.catalog-card-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    background: var(--black, #0A0A0A);
    color: var(--white, #FFFFFF);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.catalog-card-more svg { width: 19px; height: 19px; }

.catalog-card-more:hover {
    background: var(--red, #C41E3A);
    transform: translateX(4px);
}

.catalog-all { text-align: center; margin-top: 60px; position: relative; }

.catalog-all-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 42px;
    border: 2px solid var(--black, #0A0A0A);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    color: var(--black, #0A0A0A);
    transition: all 0.3s ease;
}

.catalog-all-link:hover {
    background: var(--black, #0A0A0A);
    color: var(--white, #FFFFFF);
    transform: translateY(-3px);
}

/* ---------------- Отзывы ---------------- */

.testimonials {
    padding: 150px 60px;
    background: var(--white, #FFFFFF);
    position: relative;
}

.testimonials-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
    font-size: 1rem;
    color: var(--gray, #6B7280);
}

.testimonials-rating .stars { color: #F5A623; letter-spacing: 2px; }
.testimonials-rating strong { color: var(--black, #0A0A0A); font-size: 1.15rem; }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    position: relative;
    margin: 0;
    padding: 40px 34px 34px;
    background: var(--cream, #FDF8F5);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--red, #C41E3A), var(--blue, #1A365D));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.testimonial-card:hover::before { transform: scaleX(1); }

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
    position: absolute;
    top: 26px;
    right: 28px;
    color: rgba(196, 30, 58, 0.12);
}

.testimonial-quote svg { width: 46px; height: 46px; }

.testimonial-stars {
    color: #F5A623;
    letter-spacing: 3px;
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.testimonial-card blockquote {
    margin: 0 0 24px;
    font-size: 1rem;
    line-height: 1.8;
    color: #2c3038;
}

.testimonial-card figcaption {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 20px;
    border-top: 1px solid rgba(10, 10, 10, 0.08);
}

.testimonial-author {
    font-family: 'Unbounded', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--black, #0A0A0A);
}

.testimonial-meta { font-size: 0.88rem; color: var(--gray, #6B7280); }

/* ---------------- Служебное ---------------- */

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
}

.lf-status { margin-top: 14px; font-size: 0.92rem; font-weight: 600; min-height: 20px; }
.lf-status.ok { color: #159C57; }
.lf-status.err { color: #C41E3A; }

/* ---------------- Плавающие кнопки связи ---------------- */

.quick-contact {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-contact .qc-btn {
    display: flex;
    align-items: center;
    width: 52px;
    height: 52px;
    border-radius: 100px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(10, 10, 10, 0.22);
    overflow: hidden;
    transition: width 0.3s ease, transform 0.25s ease;
}

.quick-contact .qc-btn svg { width: 24px; height: 24px; flex: 0 0 24px; margin: 0 14px; }

.quick-contact .qc-btn span {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.quick-contact .qc-btn:hover { width: 172px; transform: translateY(-2px); }
.quick-contact .qc-btn:hover span { opacity: 1; }

.quick-contact .qc-wa { background: #25D366; }
.quick-contact .qc-tg { background: #29A0DA; }
.quick-contact .qc-call { background: var(--red, #C41E3A); }

/* ---------------- Адаптив ---------------- */

@media (max-width: 1200px) {
    .catalog-products { grid-template-columns: repeat(3, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .catalog-products { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .catalog,
    .testimonials { padding: 90px 24px; }

    .catalog-products,
    .testimonials-grid { grid-template-columns: 1fr; gap: 20px; }

    .quick-contact .qc-btn:hover { width: 52px; }
    .quick-contact .qc-btn:hover span { opacity: 0; }
}

/* ---------------- Точечные правки типографики ---------------- */

/* Заголовок блока «Почему мы» — компактнее остальных секций */
.about .section-title {
    font-size: 2.5rem;
}

@media (max-width: 768px) {
    .about .section-title { font-size: 1.9rem; }
}
