.karton-section img,
.karton-section svg {
    max-width: 100%;
    height: auto;
    display: block;
}

.karton-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


.karton-section .page-title {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
}

.karton-section .page-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.karton-section {
    padding: 40px 0 60px;
}

/* Облако тегов */
.karton-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.karton-tag {
    display: inline-block;
    padding: 10px 18px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: border-color 0.3s, background 0.3s, color 0.3s;
    cursor: pointer;
}

.karton-tag:hover {
    border-color: #333;
    background: #fafafa;
    color: #222;
}

/* Карточка типа короба */
.karton-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 40px;
    overflow: hidden;
    border: 1px solid #f0ede8;
}

.karton-card__header {
    background: #f5f3f0;
    padding: 20px 28px;
    border-bottom: 1px solid #e8e5e0;
}

.karton-card__title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.karton-card__code {
    font-size: 14px;
    color: #888;
    margin-top: 4px;
}

.karton-card__body {
    display: flex;
    gap: 32px;
    padding: 28px;
    align-items: flex-start;
}

.karton-card__image {
    flex: 0 0 380px;
    max-width: 380px;
}

.karton-card__image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.karton-card__table-wrap {
    flex: 1;
    min-width: 0;
}

/* Таблица */
.karton-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.karton-table thead th {
    background: #faf9f7;
    padding: 14px 18px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    border-bottom: 2px solid #e8e5e0;
    white-space: nowrap;
}

.karton-table tbody td {
    padding: 13px 18px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0ede8;
}

.karton-table tbody tr:last-child td {
    border-bottom: none;
}

.karton-table tbody tr:hover {
    background: #fdfcfa;
}

.karton-table tbody td:nth-child(3) {
    font-weight: 600;
    color: #d42a2a;
    white-space: nowrap;
}

.karton-table tbody td:nth-child(3)::after {
    content: " руб.";
}

/* Мобильная адаптация */
@media (max-width: 991px) {
    .karton-card__body {
        flex-direction: column;
        gap: 24px;
    }

    .karton-card__image {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        text-align: center;
    }

    .karton-card__image img {
        max-width: 420px;
        margin: 0 auto;
    }

    .karton-card__table-wrap {
        width: 100%;
        overflow-x: auto;
    }

    .karton-table {
        min-width: 360px;
    }
}

@media (max-width: 767px) {
    .karton-section .page-title {
        font-size: 26px;
    }

    .karton-section .page-subtitle {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .karton-card__header {
        padding: 16px 20px;
    }

    .karton-card__title {
        font-size: 18px;
    }

    .karton-card__body {
        padding: 20px;
    }

    .karton-table thead th,
    .karton-table tbody td {
        padding: 11px 14px;
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .karton-tags {
        gap: 8px;
        margin-bottom: 28px;
    }

    .karton-tag {
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .karton-section .container {
        padding: 0 16px;
    }

    .karton-section .page-title {
        font-size: 22px;
    }

    .karton-card__body {
        padding: 16px;
    }

    .karton-table {
        min-width: 280px;
    }

    .karton-table thead th,
    .karton-table tbody td {
        padding: 10px 12px;
        font-size: 13px;
    }
}
/* Форма обратной связи */
.karton-form {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 40px;
}

.karton-form__text {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 16px;
}

.karton-form__text strong {
    font-weight: 600;
    color: #222;
}

.karton-form__fields {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.karton-form__input {
    flex: 1 1 200px;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.karton-form__input:focus {
    border-color: #999;
}

.karton-form__input::placeholder {
    color: #aaa;
}

.karton-form__button {
    flex: 0 0 auto;
    padding: 12px 28px;
    background: #8b1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.karton-form__button:hover {
    background: #a02020;
}

.karton-form__message {
    margin-top: 12px;
    font-size: 14px;
    min-height: 20px;
}

.karton-form__message--success {
    color: #2e7d32;
}

.karton-form__message--error {
    color: #c62828;
}

@media (max-width: 767px) {
    .karton-form {
        padding: 20px;
    }

    .karton-form__fields {
        flex-direction: column;
        align-items: stretch;
    }

    .karton-form__input,
    .karton-form__button {
        width: 100%;
        flex: 1 1 auto;
    }
}
