/* ==========================================
   ГЛАВНАЯ СТРАНИЦА — адаптировано под темы
========================================== */

.main-block {
    position: relative;
    min-height: 92vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(
            rgba(7, 7, 7, 0.60),
            rgba(7, 7, 7, 0.80)
        ),
        var(--hero-bg-image);
    background-size: cover;
    background-position: center;
}

.centered-text {
    position: relative;
    z-index: 2;
    width: min(900px, 90%);
    text-align: center;
}

/* ===== ТЕКСТ ПОВЕРХ ФОНА — ВСЕГДА БЕЛЫЙ ===== */
.centered-text h1 {
    margin: 0;
    font-size: clamp(18px, 2vw, 22px);
    letter-spacing: 10px;
    text-transform: uppercase;
    color: var(--accent) !important; /* акцентный цвет */
    font-weight: 600;
}

.centered-text h2 {
    margin: 30px 0;
    font-size: clamp(44px, 6vw, 82px);
    line-height: 1.05;
    color: #ffffff !important;
    font-weight: 700;
}

.centered-text p {
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 22px;
    line-height: 1.9;
}

/* Кнопки на герое */
.hero-button {
    color: #ffffff !important;
}

.hero-primary {
    background: var(--accent-gradient);
    color: var(--accent-text) !important;
    font-weight: 700;
}

.hero-secondary {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
    backdrop-filter: blur(12px);
}

.hero-secondary:hover {
    border-color: var(--accent);
    color: var(--accent) !important;
}

/* ==========================================
   БЛОК КАТАЛОГА НА ГЛАВНОЙ
========================================== */

.catalog-block {
    padding: 10px 50px 30px;
    background: var(--bg-primary);
}

.catalog-block h2 {
    margin: 0;
    font-size: 44px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.catalog-block h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    margin: 10px auto 0;
    background: var(--accent);
    border-radius: 30px;
}

.catalog-subtitle {
    max-width: 760px;
    margin: 22px auto 45px;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.8;
}

/* ==========================================
   КАТЕГОРИИ НА ГЛАВНОЙ
========================================== */

.categories-wrapper {
    max-width: 1700px;
    margin: 0 auto;
    overflow: visible;
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px;
    padding: 0 40px;
    margin: 35px auto 80px;
    max-width: 1700px;
}

.category {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: 0.45s;
    box-shadow: 0 20px 45px var(--shadow-color);
    display: block;
    text-decoration: none;
}

.category img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    transition: 0.7s;
    display: block;
}

.category::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(9, 9, 9, 0.92) 5%,
        rgba(9, 9, 9, 0.45) 45%,
        rgba(0, 0, 0, 0.08) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.category::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: 0.45s;
    background: linear-gradient(
        135deg,
        var(--accent-light),
        transparent 45%
    );
    z-index: 3;
    pointer-events: none;
}

.category-title {
    position: absolute;
    left: 35px;
    bottom: 35px;
    z-index: 5;
    color: #ffffff !important; /* белый для всех тем */
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 0.8px;
    pointer-events: none;
}

.category-title::after {
    content: "";
    display: block;
    width: 65px;
    height: 2px;
    margin-top: 16px;
    background: var(--accent);
}

.category-arrow {
    margin-top: 20px;
    color: var(--accent);
    font-size: 34px;
    transition: 0.35s;
    display: block;
}

.category:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 25px 70px var(--shadow-hover);
}

.category:hover img {
    transform: scale(1.08);
}

.category:hover::after {
    opacity: 1;
}

.category:hover .category-arrow {
    transform: translateX(10px);
}

/* ==========================================
   АДАПТИВ ДЛЯ КАТЕГОРИЙ
========================================== */

@media (max-width: 1200px) {
    .categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 0 30px;
        margin: 30px auto 60px;
    }
}

@media (max-width: 768px) {
    .catalog-block {
        padding: 30px 0 10px;
    }

    .catalog-block h2 {
        font-size: 32px;
        padding: 0 15px;
    }

    .catalog-subtitle {
        font-size: 15px;
        padding: 0 15px;
        margin: 15px auto 25px;
    }

    .categories-wrapper {
        overflow-x: auto;
        overflow-y: visible;
        padding: 5px 0 10px 15px;
        margin: 0 0 30px 0;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 15px;
    }

    .categories-wrapper::-webkit-scrollbar {
        height: 4px;
    }

    .categories-wrapper::-webkit-scrollbar-track {
        background: var(--border-color);
        border-radius: 10px;
    }

    .categories-wrapper::-webkit-scrollbar-thumb {
        background: var(--accent);
        border-radius: 10px;
    }

    .categories {
        display: flex;
        gap: 16px;
        width: max-content;
        padding-right: 15px;
        margin: 10px 0 20px 0;
        grid-template-columns: none;
    }

    .category {
        flex: 0 0 280px;
        scroll-snap-align: start;
        min-width: 240px;
        max-width: 320px;
        min-height: auto;
        border-radius: 20px;
    }

    .category img {
        height: 200px;
        width: 100%;
    }

    .category-title {
        left: 20px;
        bottom: 20px;
        font-size: 22px;
    }

    .category-title::after {
        width: 40px;
        margin-top: 10px;
    }

    .category-arrow {
        font-size: 20px;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .category {
        flex: 0 0 220px;
        min-width: 190px;
        max-width: 260px;
        border-radius: 16px;
    }

    .category img {
        height: 160px;
    }

    .category-title {
        left: 15px;
        bottom: 15px;
        font-size: 18px;
    }

    .category-title::after {
        width: 30px;
        margin-top: 8px;
        height: 2px;
    }

    .category-arrow {
        font-size: 16px;
        margin-top: 6px;
    }

    .categories-wrapper {
        padding: 5px 0 8px 10px;
        margin: 0 0 20px 0;
    }

    .categories {
        gap: 12px;
        padding-right: 10px;
    }

    .catalog-block h2 {
        font-size: 26px;
    }

    .catalog-subtitle {
        font-size: 14px;
    }
}

/* ==========================================
   БЛОК ЗАЯВКИ ("Свяжитесь с нами")
========================================== */

.contact-section {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    max-width: 1600px;
    margin: 20px auto 20px auto;
    padding: 60px 90px;
    border-radius: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.contact-section::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: var(--accent-gradient);
}

.contact-section::after {
    content: "";
    position: absolute;
    right: -250px;
    top: -250px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(
        var(--accent-light),
        transparent 70%
    );
}

.contact-section .contacts-info {
    width: 45%;
    position: relative;
    z-index: 2;
    text-align: left;
}

.contact-section .contacts-info h2 {
    margin: 0 0 20px;
    font-size: 56px;
    line-height: 1.1;
    color: var(--text-secondary);
    font-weight: 700;
}

.contact-section .contact-text {
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1.8;
    max-width: 650px;
    margin-bottom: 30px;
}

.contact-section .advantages {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 0;
}

.contact-section .advantages div {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 18px;
}

.contact-section .advantages div::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.contact-section .contact-form {
    width: 45%;
    position: relative;
    z-index: 2;
}

.contact-section .contact-form form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-section .contact-form input,
.contact-section .contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    transition: 0.3s;
    box-sizing: border-box;
}

.contact-section .contact-form input:focus,
.contact-section .contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-light);
}

.contact-section .contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-section .contact-form button {
    background: var(--accent-gradient);
    color: var(--accent-text);
    border: none;
    border-radius: 14px;
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.contact-section .contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px var(--accent-glow);
}

@media (max-width: 992px) {
    .contact-section {
        flex-direction: column;
        padding: 40px 30px;
        gap: 40px;
        margin: 40px auto;
    }

    .contact-section .contacts-info,
    .contact-section .contact-form {
        width: 100%;
    }

    .contact-section .contacts-info h2 {
        font-size: 40px;
        text-align: center;
    }

    .contact-section .contact-text {
        text-align: center;
        font-size: 18px;
    }

    .contact-section .advantages div {
        justify-content: center;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 30px 20px;
        gap: 30px;
        margin: 30px auto;
        border-radius: 30px;
    }

    .contact-section .contacts-info h2 {
        font-size: 32px;
    }

    .contact-section .contact-text {
        font-size: 16px;
    }

    .contact-section .advantages div {
        font-size: 15px;
    }

    .contact-section .contact-form input,
    .contact-section .contact-form textarea {
        font-size: 15px;
        padding: 14px 16px;
    }

    .contact-section .contact-form button {
        font-size: 16px;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 20px 15px;
        gap: 20px;
        margin: 20px auto;
        border-radius: 20px;
    }

    .contact-section .contacts-info h2 {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .contact-section .contact-text {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .contact-section .advantages div {
        font-size: 14px;
    }

    .contact-section .contact-form input,
    .contact-section .contact-form textarea {
        font-size: 14px;
        padding: 12px 14px;
    }

    .contact-section .contact-form button {
        font-size: 15px;
        padding: 14px;
    }
}

/* ==========================================
   БЛОК КОНТАКТОВ
========================================== */

.contacts-section {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    max-width: 1600px;
    margin: 30px auto;
    padding: 60px 90px;
    border-radius: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.contacts-section::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: var(--accent-gradient);
}

.contacts-section::after {
    content: "";
    position: absolute;
    right: -250px;
    top: -250px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(
        var(--accent-light),
        transparent 70%
    );
}

.contacts-section .contacts-info {
    width: 42%;
    position: relative;
    z-index: 2;
    text-align: left;
}

.contacts-section .contacts-info h2 {
    margin: 0 0 35px;
    font-size: 56px;
    line-height: 1.1;
    color: var(--text-secondary);
    font-weight: 700;
}

.contacts-section .contacts-info .contact-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 22px 28px;
    color: var(--text-secondary);
    transition: 0.35s;
    margin-bottom: 16px;
}

.contacts-section .contacts-info .contact-item:last-child {
    margin-bottom: 0;
}

.contacts-section .contacts-info .contact-item:hover {
    border-color: var(--accent);
}

.contacts-section .contacts-info .contact-item h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 600;
}

.contacts-section .contacts-info .contact-item p {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.contacts-section .contacts-info .contact-item a {
    color: var(--accent);
    text-decoration: none;
    transition: 0.3s;
}

.contacts-section .contacts-info .contact-item a:hover {
    color: var(--accent-hover);
}

.contacts-map {
    width: 55%;
    height: 500px;
    overflow: hidden;
    border-radius: 25px;
    position: relative;
    z-index: 2;
}

.contacts-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 992px) {
    .contacts-section {
        flex-direction: column;
        padding: 40px 30px;
        gap: 40px;
        margin: 40px auto;
    }

    .contacts-section .contacts-info {
        width: 100%;
    }

    .contacts-section .contacts-info h2 {
        font-size: 40px;
        text-align: center;
    }

    .contacts-section .contacts-info .contact-item {
        text-align: center;
    }

    .contacts-map {
        width: 100%;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .contacts-section {
        padding: 30px 20px;
        gap: 30px;
        margin: 30px auto;
        border-radius: 30px;
    }

    .contacts-section .contacts-info h2 {
        font-size: 32px;
        margin-bottom: 25px;
    }

    .contacts-section .contacts-info .contact-item {
        padding: 16px 20px;
    }

    .contacts-section .contacts-info .contact-item p {
        font-size: 16px;
    }

    .contacts-map {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .contacts-section {
        padding: 20px 15px;
        gap: 20px;
        margin: 20px auto;
        border-radius: 20px;
    }

    .contacts-section .contacts-info h2 {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .contacts-section .contacts-info .contact-item {
        padding: 12px 16px;
    }

    .contacts-section .contacts-info .contact-item p {
        font-size: 14px;
    }

    .contacts-map {
        height: 250px;
    }
}

/* ==========================================
   ОТЗЫВЫ
========================================== */

.reviews-header-section {
    max-width: 900px;
    margin: 20px auto 20px;
    padding: 0 20px;
    text-align: center;
    position: relative;
}

.reviews-header-content h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.reviews-header-content h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    margin: 14px auto 0;
    background: var(--accent);
    border-radius: 30px;
}

.reviews-header-content p {
    color: var(--text-muted);
    font-size: 18px;
    margin-top: 12px;
}

/* ==========================================
   ОТЗЫВЫ — ОБЁРТКА И ТРЕК
========================================== */

.reviews-wrapper {
    max-width: 1600px;
    margin: 30px auto 60px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 45px;
}

.reviews-track {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: 0.3s;
}

/* ==========================================
   КАРТОЧКА ОТЗЫВА
========================================== */

.review-card {
    background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
    border: 1px solid var(--border-light);
    border-radius: 32px;
    padding: 30px 35px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: 0.45s;
    overflow: hidden;
    position: relative;
}

.review-stars {
    margin: 10px 0 12px;
    color: #f8c44f;
    font-size: 18px;
    letter-spacing: 2px;
}

.review-date {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 12px;
    letter-spacing: 0.4px;
}

.review-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
}

.review-card.side {
    width: 370px;
    height: 220px;
    opacity: 0.28;
    transform: scale(0.88);
    padding: 25px 30px;
}

.review-card.active {
    width: 620px;
    min-height: auto;
    padding: 30px 35px;
    transform: translateY(0);
    opacity: 1;
    border-color: var(--accent-border);
    box-shadow: 0 30px 80px var(--shadow-color);
}

.review-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 17px;
    margin: 0;
}

.review-card h3 {
    margin: 0 0 12px;
    font-size: 26px;
    color: var(--text-primary);
    font-weight: 700;
}

.review-card.side p {
    max-height: 70px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.5;
}

.review-card.active p {
    max-height: none;
}

.review-card.side h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.review-card.active h3 {
    font-size: 24px;
}

/* ==========================================
   СТРЕЛКИ (только на ПК)
========================================== */

.review-arrow {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    background: var(--bg-secondary);
    color: var(--accent);
    font-size: 30px;
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
}

.review-arrow:hover {
    background: var(--accent);
    color: var(--accent-text);
    transform: scale(1.08);
}

.left {
    left: 0;
}

.right {
    right: 0;
}

/* ==========================================
   МОБИЛЬНАЯ ВЕРСИЯ — ГОРИЗОНТАЛЬНЫЙ СКРОЛЛ
========================================== */

@media (max-width: 768px) {
    .review-arrow {
        display: none !important;
    }

    .reviews-wrapper {
        margin: 20px auto 40px;
        padding: 0 10px;
        overflow: hidden;
        gap: 0;
        max-width: 100%;
        justify-content: center;
    }

    .reviews-track {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0;
        padding: 5px 0 10px 0;
        margin: 0 auto;
        overflow: visible;
        width: 100%;
        flex-wrap: nowrap;
        transition: transform 0.4s ease;
        touch-action: pan-y;
    }

    .review-card.side {
        display: none !important;
    }

    .review-card.active {
        width: 100%;
        max-width: 400px;
        min-width: 280px;
        transform: none;
        min-height: auto;
        padding: 20px 22px;
        flex-shrink: 0;
        margin: 0 auto;
        box-shadow: 0 15px 40px var(--shadow-color);
    }

    .review-card.active h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .review-card.active p {
        font-size: 15px;
        line-height: 1.6;
        max-height: 110px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
    }

    .review-stars {
        font-size: 16px;
        margin: 6px 0 10px;
    }

    .reviews-header-section {
        margin: 20px auto 10px;
        padding: 0 15px;
    }

    .reviews-header-content h2 {
        font-size: 32px;
    }

    .reviews-header-content p {
        font-size: 15px;
        margin-top: 6px;
    }

    .reviews-header-content h2::after {
        width: 60px;
        margin: 10px auto 0;
    }
}

@media (max-width: 480px) {
    .reviews-wrapper {
        margin: 15px auto 30px;
        padding: 0 5px;
    }

    .review-card.active {
        min-width: 240px;
        padding: 16px 18px;
        max-width: 300px;
    }

    .review-card.active h3 {
        font-size: 17px;
    }

    .review-card.active p {
        font-size: 13px;
        -webkit-line-clamp: 3;
        max-height: 90px;
    }

    .review-stars {
        font-size: 14px;
        margin: 4px 0 8px;
    }

    .reviews-header-section {
        margin: 15px auto 8px;
    }

    .reviews-header-content h2 {
        font-size: 26px;
    }

    .reviews-header-content p {
        font-size: 13px;
    }

    .reviews-header-content h2::after {
        width: 40px;
        margin: 8px auto 0;
    }
}

/* ==========================================
   МОДАЛЬНОЕ ОКНО ОТЗЫВА
========================================== */

.review-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.review-modal-content {
    background: var(--bg-modal);
    padding: 40px;
    border-radius: 25px;
    width: 90%;
    max-width: 600px;
    border: 1px solid var(--border-color);
}

.review-modal input,
.review-modal textarea {
    width: 100%;
    padding: 18px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    background: var(--bg-input);
    color: var(--text-primary);
}

.review-modal input:focus,
.review-modal textarea:focus {
    border-color: var(--accent);
    outline: none;
}

.close-review {
    float: right;
    font-size: 35px;
    cursor: pointer;
    color: var(--text-muted);
    background: none;
    border: none;
}

.close-review:hover {
    color: var(--accent);
}

.review-button-block {
    margin-top: 20px;
    margin-bottom: 40px;
}

.review-button {
    background: var(--accent-gradient);
    color: var(--accent-text);
    border: none;
    padding: 20px 42px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.35s;
}

.review-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px var(--accent-glow);
}

/* ==========================================
   НАШИ ИЗДЕЛИЯ (полноценный блок)
========================================== */

.works-section {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    max-width: 1600px;
    margin: 20px auto 20px auto;
    padding: 60px 90px;
    border-radius: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.works-section::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: var(--accent-gradient);
}

.works-section::after {
    content: "";
    position: absolute;
    right: -250px;
    top: -250px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(
        var(--accent-light),
        transparent 70%
    );
}

.works-content {
    width: 45%;
    position: relative;
    z-index: 2;
    text-align: left;
}

.works-content h2 {
    margin: 0 0 20px;
    font-size: 56px;
    line-height: 1.1;
    color: var(--text-secondary);
    font-weight: 700;
}

.works-content p {
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1.8;
    max-width: 650px;
    margin-bottom: 30px;
}

.works-content .advantages {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 0;
}

.works-content .advantages div {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 18px;
}

.works-content .advantages div::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.works-grid-wrapper {
    width: 50%;
    position: relative;
    z-index: 2;
}

.works-grid-wrapper .works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.works-grid-wrapper .work-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: 0.3s;
    text-decoration: none;
    color: var(--text-primary);
}

.works-grid-wrapper .work-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.works-grid-wrapper .work-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}

.works-grid-wrapper .work-item .work-item-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ==========================================
   АДАПТИВ ДЛЯ "НАШИ ИЗДЕЛИЯ"
========================================== */

@media (max-width: 1200px) {
    .works-section {
        flex-direction: column;
        padding: 40px 30px;
        gap: 40px;
        margin: 40px auto;
    }

    .works-content {
        width: 100%;
        text-align: center;
    }

    .works-content h2 {
        font-size: 40px;
        text-align: center;
    }

    .works-content p {
        text-align: center;
        font-size: 18px;
    }

    .works-content .advantages div {
        justify-content: center;
        font-size: 16px;
    }

    .works-grid-wrapper {
        width: 100%;
    }

    .works-grid-wrapper .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .works-section {
        padding: 30px 20px;
        gap: 30px;
        margin: 30px auto;
        border-radius: 30px;
    }

    .works-content h2 {
        font-size: 32px;
    }

    .works-content p {
        font-size: 16px;
    }

    .works-content .advantages div {
        font-size: 15px;
    }

    .works-grid-wrapper .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .works-grid-wrapper .work-item img {
        height: 120px;
    }

    .works-grid-wrapper .work-item .work-item-title {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .works-section {
        padding: 20px 15px;
        gap: 20px;
        margin: 20px auto;
        border-radius: 20px;
    }

    .works-content h2 {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .works-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .works-content .advantages div {
        font-size: 14px;
    }

    .works-grid-wrapper .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .works-grid-wrapper .work-item {
        padding: 12px;
    }

    .works-grid-wrapper .work-item img {
        height: 90px;
    }

    .works-grid-wrapper .work-item .work-item-title {
        font-size: 12px;
    }
}

/* ==========================================
   КНОПКИ ГЕРОЯ
========================================== */

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.hero-button {
    padding: 18px 38px;
    border-radius: 999px;
    font-size: 18px;
    text-decoration: none;
    transition: 0.35s;
}

.hero-primary {
    background: var(--accent-gradient);
    color: var(--accent-text);
    font-weight: 700;
}

.hero-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px var(--accent-glow);
}

.hero-secondary {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text-primary);
    backdrop-filter: blur(12px);
}

.hero-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 768px) {
    .main-block {
        min-height: 75vh;
    }

    .centered-text h2 {
        font-size: 42px;
    }

    .centered-text p {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-button {
        width: 100%;
        max-width: 320px;
    }
}

/* ==========================================
   НОВОСТИ НА ГЛАВНОЙ (мини-предивью)
========================================== */

.news-preview {
    padding: 10px 20px 30px;
    background: var(--bg-primary);
    position: relative;
}

.news-preview::after {
    content: "";
    display: block;
    width: 60%;
    max-width: 600px;
    height: 3px;
    margin: 10px auto 0;
    background: var(--accent);
    border-radius: 20px;
    opacity: 0.6;
}

.news-preview-header {
    text-align: center;
    margin-bottom: 30px;
}

.news-preview-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.news-preview-header h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    margin: 12px auto 0;
    background: var(--accent);
    border-radius: 30px;
}

.news-preview-header p {
    color: var(--text-muted);
    font-size: 18px;
    margin-top: 8px;
}

.news-preview-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.news-preview-link:hover {
    color: var(--accent-hover);
    transform: translateX(5px);
}

.news-preview-grid-wrapper {
    max-width: 1200px;
    margin: 10px auto 0;
    overflow: visible;
}

.news-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.news-preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.4s;
    min-width: 0;
}

.news-preview-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 15px 40px var(--shadow-hover);
}

.news-preview-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.news-preview-card:hover .news-preview-image img {
    transform: scale(1.05);
}

.news-preview-body {
    padding: 20px 22px 24px;
}

.news-preview-category {
    display: inline-block;
    background: var(--accent);
    color: var(--accent-text);
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.news-preview-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.news-preview-date {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 10px;
    opacity: 0.7;
}

.news-preview-body p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-preview-btn {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
}

.news-preview-btn:hover {
    color: var(--accent-hover);
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .news-preview {
        padding: 30px 0 40px;
    }

    .news-preview-header {
        padding: 0 15px;
    }

    .news-preview-header h2 {
        font-size: 32px;
    }

    .news-preview-header p {
        font-size: 16px;
    }

    .news-preview-grid-wrapper {
        overflow-x: auto;
        overflow-y: visible;
        padding: 5px 0 10px 15px;
        margin: 0;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 15px;
    }

    .news-preview-grid-wrapper::-webkit-scrollbar {
        height: 4px;
    }

    .news-preview-grid-wrapper::-webkit-scrollbar-track {
        background: var(--border-color);
        border-radius: 10px;
    }

    .news-preview-grid-wrapper::-webkit-scrollbar-thumb {
        background: var(--accent);
        border-radius: 10px;
    }

    .news-preview-grid {
        display: flex;
        gap: 16px;
        width: max-content;
        padding-right: 15px;
        grid-template-columns: none;
    }

    .news-preview-card {
        flex: 0 0 280px;
        scroll-snap-align: start;
        min-width: 260px;
        max-width: 300px;
    }

    .news-preview-image {
        height: 160px;
    }

    .news-preview-body h3 {
        font-size: 16px;
    }

    .news-preview-body p {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .news-preview::after {
        width: 70%;
        margin: 25px auto 0;
    }
}

@media (max-width: 480px) {
    .news-preview {
        padding: 20px 0 30px;
    }

    .news-preview-header h2 {
        font-size: 26px;
    }

    .news-preview-header p {
        font-size: 14px;
    }

    .news-preview-card {
        flex: 0 0 240px;
        min-width: 220px;
        max-width: 260px;
    }

    .news-preview-image {
        height: 140px;
    }

    .news-preview-body {
        padding: 14px 16px 18px;
    }

    .news-preview-body h3 {
        font-size: 15px;
    }

    .news-preview-body p {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .news-preview::after {
        width: 80%;
        margin: 20px auto 0;
    }
}

/* ==========================================
   НОВОСТИ — стилизованный блок
========================================== */

.news-section {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    max-width: 1600px;
    margin: 20px auto 20px auto;
    padding: 60px 90px;
    border-radius: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.news-section::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: var(--accent-gradient);
}

.news-section::after {
    content: "";
    position: absolute;
    right: -250px;
    top: -250px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(
        var(--accent-light),
        transparent 70%
    );
}

.news-content {
    width: 45%;
    position: relative;
    z-index: 2;
    text-align: left;
}

.news-content h2 {
    margin: 0 0 20px;
    font-size: 56px;
    line-height: 1.1;
    color: var(--text-secondary);
    font-weight: 700;
}

.news-content p {
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1.8;
    max-width: 650px;
    margin-bottom: 30px;
}

.news-content .advantages {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 0;
}

.news-content .advantages div {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 18px;
}

.news-content .advantages div::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.news-grid-wrapper {
    width: 50%;
    position: relative;
    z-index: 2;
}

.news-grid-wrapper .news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.news-grid-wrapper .news-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    transition: 0.3s;
    text-decoration: none;
    color: var(--text-primary);
}

.news-grid-wrapper .news-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px var(--shadow-hover);
}

.news-grid-wrapper .news-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}

.news-grid-wrapper .news-card .news-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.news-grid-wrapper .news-card .news-date {
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ==========================================
   АДАПТИВ ДЛЯ БЛОКА НОВОСТЕЙ
========================================== */

@media (max-width: 1200px) {
    .news-section {
        flex-direction: column;
        padding: 40px 30px;
        gap: 40px;
        margin: 40px auto;
    }

    .news-content {
        width: 100%;
        text-align: center;
    }

    .news-content h2 {
        font-size: 40px;
        text-align: center;
    }

    .news-content p {
        text-align: center;
        font-size: 18px;
    }

    .news-content .advantages div {
        justify-content: center;
        font-size: 16px;
    }

    .news-grid-wrapper {
        width: 100%;
    }

    .news-grid-wrapper .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 30px 20px;
        gap: 30px;
        margin: 30px auto;
        border-radius: 30px;
    }

    .news-content h2 {
        font-size: 32px;
    }

    .news-content p {
        font-size: 16px;
    }

    .news-content .advantages div {
        font-size: 15px;
    }

    .news-grid-wrapper .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .news-grid-wrapper .news-card img {
        height: 120px;
    }

    .news-grid-wrapper .news-card .news-title {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .news-section {
        padding: 20px 15px;
        gap: 20px;
        margin: 20px auto;
        border-radius: 20px;
    }

    .news-content h2 {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .news-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .news-content .advantages div {
        font-size: 14px;
    }

    .news-grid-wrapper .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .news-grid-wrapper .news-card {
        padding: 12px;
    }

    .news-grid-wrapper .news-card img {
        height: 90px;
    }

    .news-grid-wrapper .news-card .news-title {
        font-size: 12px;
    }
}

/* ==========================================
   ТОЧЕЧНАЯ ЗАЩИТА ОТ ВЫХОДА ЗА ЭКРАН
========================================== */

p,
h1,
h2,
h3,
.category-title,
.contact-text,
.advantages {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

@media (max-width: 768px) {
    .hero-button {
        max-width: 100% !important;
        min-width: 140px !important;
        text-align: center !important;
        padding: 14px 24px !important;
        font-size: 16px !important;
        box-sizing: border-box !important;
    }

    .hero-buttons {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
    }

    body {
        overflow-x: hidden !important;
    }
}

@media (max-width: 400px) {
    .hero-button {
        min-width: 120px !important;
        font-size: 13px !important;
        padding: 10px 16px !important;
    }

    .centered-text h2 {
        font-size: 28px !important;
    }

    .centered-text p {
        font-size: 15px !important;
        padding: 0 10px !important;
    }

    .catalog-block h2 {
        font-size: 28px !important;
    }

    body {
        padding-left: 8px !important;
        padding-right: 8px !important;
        overflow-x: hidden !important;
    }
}

/* ==========================================
   КАК МЫ РАБОТАЕМ
========================================== */

.how-we-work {
    max-width: 1600px;
    margin: 40px auto 60px;
    padding: 0 40px;
}

.how-we-work-header {
    text-align: center;
    margin-bottom: 45px;
}

.how-we-work-header h2 {
    font-size: 44px;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
}

.how-we-work-header h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    margin: 12px auto 0;
    background: var(--accent);
    border-radius: 30px;
}

.how-we-work-header p {
    color: var(--text-muted);
    font-size: 18px;
    margin-top: 12px;
}

.how-we-work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px 28px;
    text-align: center;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.step:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 20px 50px var(--shadow-hover);
}

/* Золотая полоса сверху */
.step::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    opacity: 0.6;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: var(--accent-text);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 8px 25px var(--accent-glow);
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
}

.step-content p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.step-phone {
    display: inline-block;
    margin-top: 8px;
    color: var(--accent);
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    transition: 0.3s;
}

.step-phone:hover {
    color: var(--accent-hover);
    transform: scale(1.05);
}

/* ==========================================
   АДАПТИВ
========================================== */

@media (max-width: 992px) {
    .how-we-work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .how-we-work {
        padding: 0 20px;
        margin: 30px auto 40px;
    }

    .how-we-work-header h2 {
        font-size: 32px;
    }

    .how-we-work-header p {
        font-size: 16px;
    }

    .how-we-work-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .step {
        padding: 24px 20px;
        display: flex;
        align-items: center;
        gap: 20px;
        text-align: left;
    }

    .step::before {
        top: 0;
        left: 0;
        right: auto;
        bottom: 0;
        width: 4px;
        height: 100%;
    }

    .step-number {
        width: 48px;
        height: 48px;
        font-size: 20px;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .step-content h3 {
        font-size: 18px;
    }

    .step-content p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .how-we-work {
        padding: 0 15px;
        margin: 20px auto 30px;
    }

    .how-we-work-header h2 {
        font-size: 26px;
    }

    .how-we-work-header p {
        font-size: 14px;
    }

    .step {
        padding: 18px 16px;
        gap: 14px;
        border-radius: 18px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    .step-content h3 {
        font-size: 16px;
    }

    .step-content p {
        font-size: 13px;
    }

    .step-phone {
        font-size: 15px;
    }
}