* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    background: #c7c7c7;
    font-family: Arial, "Segoe UI", Tahoma, sans-serif;
    margin: 0;
    color: #222;
}
.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.main-container {
    flex: 1 0 auto;
    max-width: 1200px;
    width: 100%;
    padding-top: 34px;
    padding-bottom: 40px;
}
.navbar {
    background: #2c3e50 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    min-height: 60px;
}
.nav-container, .footer .container, main.container { max-width: 1200px; }
.navbar-brand {
    color: #fff !important;
    font-weight: 700;
    font-size: 1.45rem;
}
.navbar-nav .nav-link {
    color: rgba(255,255,255,.95) !important;
    padding: 8px 10px !important;
    border-radius: 8px;
    font-size: 15px;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #fff !important;
    background: rgba(255,255,255,.08);
}
.nav-user .nav-link { font-weight: 700; }
button.nav-link {
    background: transparent !important;
    border: 0 !important;
}
.footer {
    margin-top: auto;
    background: #2c3e50;
    color: #fff;
    padding: 18px 0;
    text-align: center;
}
.footer p { margin: 0; }

h1, h2, h3, h4, h5, h6 { color: #2c2c2c; font-weight: 700; }
.section-title {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 20px;
}
.section-subtitle {
    text-align: center;
    color: #555;
    font-size: 1.15rem;
    margin: 0 auto;
    max-width: 760px;
}
.page-section { margin-bottom: 52px; }
.hero-box {
    max-width: 1000px;
    margin: 30px auto 55px;
    background: #f1f1f1;
    border-radius: 22px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    padding: 55px 25px;
}
.hero-box h1 {
    font-size: 4rem;
    margin-bottom: 14px;
}
.hero-box p {
    margin: 0;
    font-size: 1.25rem;
    color: #555;
}
.home-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.product-card-lite, .catalog-card, .category-icon-card, .contact-info-card,
.card, .auth-card, .table-card {
    background: #f7f7f7;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    overflow: hidden;
}
.product-card-lite {
    padding: 0 0 20px;
    text-align: center;
}
.product-card-lite img {
    display: block;
    width: 100%;
    height: 215px;
    object-fit: cover;
    border-radius: 12px;
}
.product-card-lite h3 {
    font-size: 1.85rem;
    margin: 16px 16px 10px;
}
.product-card-lite p {
    color: #4f4f4f;
    margin: 0 14px;
    line-height: 1.45;
    font-size: 1.05rem;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.why-card {
    text-align: center;
    padding: 30px 24px;
    background: #f6f6f6;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.why-icon {
    font-size: 3rem;
    color: #0d6efd;
    margin-bottom: 12px;
}
.why-card h3 { margin-bottom: 12px; }
.why-card p { color: #4f4f4f; margin: 0; }

.category-icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.category-icon-card {
    text-align: center;
    padding: 28px 16px;
}
.icon-circle {
    font-size: 2.1rem;
    color: #0d6efd;
    margin-bottom: 10px;
}
.category-icon-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.category-icon-card p {
    color: #555;
    margin: 0;
}
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.catalog-card {
    text-align: center;
    padding: 18px 16px 22px;
}
.catalog-card h3 {
    font-size: 1.15rem;
    margin-bottom: 16px;
}
.catalog-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}
.catalog-card p {
    min-height: 64px;
    color: #444;
    line-height: 1.45;
    margin-bottom: 14px;
}
.price-line {
    font-weight: 700;
    margin-bottom: 12px;
}
.feature-line {
    color: #4e4e4e;
    margin-bottom: 10px;
    line-height: 1.45;
}
.stock-line {
    color: #1f65ff;
    margin-bottom: 10px;
}
.maker-line {
    color: #159157;
}
.contact-box { max-width: 780px; margin-left: auto; margin-right: auto; }
.contact-info-card { padding: 28px 28px 18px; }
.contact-info-card h3 { text-align: center; margin-bottom: 18px; }
.contact-row { margin-bottom: 12px; font-size: 1.05rem; }
.contact-gallery .product-card-lite img { height: 205px; }

.pointer { cursor: pointer; }
.subtitle { color: #444; }
.home-photo { height: 220px; object-fit: cover; }
.detail-card .product-show-image { min-height: 320px; max-height: 420px; object-fit: cover; }
.alert { border-radius: 10px; }
.form-card { background: #fff; }
.form-label { font-weight: 600; }
.form-control {
    border: 1px solid #cfd4da;
    border-radius: 9px;
    padding: 10px 12px;
}
.form-control:focus {
    border-color: #6ea8fe;
    box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
}
.btn {
    border-radius: 9px;
    border: 0;
    font-weight: 600;
    padding: 8px 16px;
    white-space: nowrap;
}
.btn-sm { padding: 6px 10px; min-width: 36px; }
.btn-primary { background: #0d6efd !important; color: #fff !important; }
.btn-success { background: #20a957 !important; color: #fff !important; }
.btn-danger { background: #dc3545 !important; color: #fff !important; }
.btn-info { background: #17a2b8 !important; color: #fff !important; }
.btn-warning { background: #ffc107 !important; color: #222 !important; }
.btn-secondary { background: #6c757d !important; color: #fff !important; }

.data-table {
    background: #fff;
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}
.data-table thead th {
    background: #2c3e50;
    color: #fff;
    padding: 14px 14px;
    font-weight: 700;
    border: 0;
    vertical-align: middle;
}
.data-table tbody td {
    padding: 13px 14px;
    border-top: 1px solid #e9ecef;
    vertical-align: middle;
}
.data-table tbody tr:nth-child(even) td { background: #f8f9fa; }
.data-table tbody tr:hover td { background: #eef5ff; }
.table-img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 9px;
    border: 1px solid #e2e2e2;
    background: #fff;
}
.table-desc { max-width: 320px; color: #444; line-height: 1.35; }
.table-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.price { color: #129b42; }
.badge { font-size: .82rem; padding: 7px 9px; }
.table-card { background: #fff; }
.category-responsive { overflow-x: visible; }
.category-table {
    width: 100%;
    table-layout: fixed;
    font-size: 14px;
}
.category-table th, .category-table td { padding: 10px 10px; overflow-wrap: anywhere; }
.category-table .col-id { width: 45px; }
.category-table .col-photo { width: 72px; }
.category-table .col-title { width: 160px; }
.category-table .col-link { width: 95px; }
.category-table .col-desc { width: 245px; }
.category-table .col-type { width: 110px; }
.category-table .col-order { width: 78px; }
.category-table .col-status { width: 90px; }
.category-table .col-date { width: 115px; }
.category-table .col-actions { width: 130px; }
.category-table .col-actions-user { width: 82px; }
.category-table .table-desc {
    max-width: 245px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.category-table .table-img { width: 52px; height: 52px; }
.pagination-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 15px 18px;
    border-top: 1px solid #e9ecef;
    background: #fff;
}
.pagination-wrap nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}
.page-btn {
    min-width: 38px;
    padding: 7px 11px;
    border: 1px solid #cfd4da;
    background: #fff;
    border-radius: 8px;
    color: #2c3e50;
    font-weight: 600;
}
.page-btn:hover:not(:disabled) { background: #eef5ff; }
.page-btn.active { background: #2c3e50; color: #fff; border-color: #2c3e50; }
.page-btn:disabled, .page-btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

.auth-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    text-align: center;
    color: #fff;
}
.register-header { background: linear-gradient(135deg, #48bb78 0%, #38a169 100%); }
.auth-header h3, .auth-header i { color: #fff; }
.auth-body { padding: 30px; background: #fff; }
.auth-footer { text-align: center; padding: 20px; background: #f8f9fa; border-top: 1px solid #e9ecef; }
.auth-footer a { color: #0d6efd; text-decoration: none; font-weight: 700; }

code { color: #0d6efd; }

@media (max-width: 992px) {
    .home-grid-3, .why-grid, .catalog-grid, .category-icon-grid { grid-template-columns: repeat(2, 1fr); }
    .category-responsive { overflow-x: auto; }
    .category-table { min-width: 1080px; }
    .pagination-wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
    .hero-box h1 { font-size: 2.5rem; }
    .hero-box p { font-size: 1.05rem; }
    .section-title { font-size: 2rem; }
    .home-grid-3, .why-grid, .catalog-grid, .category-icon-grid { grid-template-columns: 1fr; }
    .data-table { min-width: 820px; }
}


/* Контакты как в Node/Vue версии */
.contacts-node-section {
    max-width: 1100px;
    margin: 0 auto 40px;
}
.contacts-title {
    text-align: left;
    font-size: 2.5rem;
    margin: 0 0 10px;
}
.contacts-grid-node {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 8px;
}
.contact-person-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
    padding: 24px 22px 26px;
    text-align: center;
    min-height: 420px;
}
.contact-person-card img {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,.16);
    margin: 0 auto 18px;
    display: block;
}
.contact-person-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0 0 10px;
    color: #111;
}
.contact-person-card .position {
    color: #606060;
    margin-bottom: 18px;
}
.contact-person-card p {
    margin: 0 0 13px;
    color: #222;
    font-size: 1rem;
    line-height: 1.3;
}
.contact-person-card i {
    margin-right: 7px;
    color: #111;
}
.contact-person-card .worktime {
    color: #606060;
    font-size: .92rem;
    margin-top: 18px;
}
@media (max-width: 992px) {
    .contacts-grid-node { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .contacts-title { text-align: center; }
    .contacts-grid-node { grid-template-columns: 1fr; }
}
