/*
Theme Name: SANY Запчасти
Description: Тема для сайта запчастей техники SANY
Version: 1.0.0
Author: SANY Theme Dev
License: GPL v2 
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sany-theme
Domain Path: /languages
Requires at least: 6.0
Requires PHP: 8.0
*/

/* ============================================================
   RESET & BASE STYLES
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #1a2a4a;
    background-color: #f5f8fa;
}

a {
    color: #e63946;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #c92935;
    text-decoration: underline;
}

button, input[type="button"], input[type="submit"] {
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */

header.site-header {
    background-color: #1a2a4a;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.site-title a,
.site-title .custom-logo-link {
    display: inline-flex;
    align-items: center;
    color: white;
}

.site-title > a:not(.custom-logo-link) {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.site-title a:hover,
.site-title .custom-logo-link:hover {
    text-decoration: none;
    color: white;
}

.site-title .custom-logo-link img,
.site-title img.custom-logo {
    display: block;
    width: 48px;
    height: auto;
    max-height: 42px;
    object-fit: contain;
    border-radius: 6px;
    vertical-align: middle;
}

.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    margin-left: auto;
    margin-right: 1.5rem;
    opacity: 0.82;
}

.header-contacts a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.78rem;
    line-height: 1.4;
}

.header-contacts a:hover {
    color: white;
    text-decoration: none;
}

.user-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.user-menu a {
    color: white;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.user-menu a:hover {
    background-color: #e63946;
    border-color: #e63946;
    color: white;
    text-decoration: none;
}

/* ============================================================
   HERO BLOCK
   ============================================================ */

.hero-block {
    position: relative;
    min-height: 700px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.hero-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: white;
    width: 100%;
    max-width: 760px;
    padding: 0 20px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15em;
}

.hero-content h1 span {
    display: block;
}

.hero-content .subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
    text-align: left;
}

.search-wrapper {
    margin: 2rem 0 0;
    max-width: 600px;
    width: 100%;
    position: relative;
    overflow: visible;
}

.search-wrapper .search-form {
    position: relative;
    z-index: 2;
}

.search-form {
    display: flex;
    gap: 0;
    background: white;
    border-radius: 4px;
    overflow: visible;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.search-form input[type="text"] {
    flex: 1;
    padding: 1rem;
    border: none;
    outline: none;
    font-size: 1rem;
    min-width: 0;
}

.search-form button {
    padding: 1rem 2rem;
    background-color: #e63946;
    color: white;
    border: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.search-form button:hover {
    background-color: #c92935;
}

.search-description {
    position: relative;
    z-index: 1;
    margin-top: -0.2rem;
    padding-top: 1.5rem;
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================================
   SEARCH SUGGESTIONS
   ============================================================ */

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f5f8fa;
}

.suggestion-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.suggestion-part-number {
    font-weight: 700;
    color: #1a2a4a;
    min-width: 140px;
    white-space: nowrap;
}

.suggestion-part-number.suggestion-link {
    cursor: pointer;
}

.suggestion-part-number.suggestion-link:hover {
    color: #e63946;
}

.suggestion-empty {
    cursor: default;
    color: #5a6a7a;
}

.suggestion-description {
    font-size: 0.85rem;
    color: #5a6a7a;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.suggestion-action {
    display: flex;
    gap: 0.5rem;
    flex-wrap: nowrap;
    align-items: center;
}

.suggestion-action button,
.suggestion-action a.btn-view-article,
.suggestion-action a.btn-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.suggestion-action a.btn-view-article,
.suggestion-action a.btn-view-all {
    background-color: #5a6a7a;
    color: white;
}

.suggestion-action a.btn-view-article:hover,
.suggestion-action a.btn-view-all:hover {
    background-color: #3a4a5a;
    text-decoration: none;
}

.btn-request-price {
    background-color: #3d4f66;
    color: white;
    font-weight: 600;
    border: 1px solid #3d4f66;
}

.btn-request-price:hover {
    background-color: #2b3d57;
    border-color: #2b3d57;
    color: white;
}

.btn-view-article {
    background-color: #5a6a7a;
    color: white;
}

.btn-view-article:hover {
    background-color: #3a4a5a;
}

/* ============================================================
   EQUIPMENT BLOCKS
   ============================================================ */

.equipment-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 20px;
}

.equipment-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: #1a2a4a;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.equipment-card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.equipment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.equipment-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: #f0f0f0;
}

.equipment-content {
    padding: 1.5rem;
}

.equipment-model-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 0.5rem;
}

.equipment-description {
    color: #5a6a7a;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */

.site-main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.site-main.front-page-main {
    max-width: none;
    width: 100%;
    padding: 0;
}

.search-results-page {
    max-width: 1200px;
    width: 100%;
    padding: 2rem 20px 4rem;
}

.search-result-list {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.search-result-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: white;
    border: 1px solid #e7edf3;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 4px rgba(26, 42, 74, 0.05);
}

.search-result-card strong {
    display: block;
    font-size: 1.05rem;
    color: #1a2a4a;
}

.search-result-meta {
    color: #5a6a7a;
    font-size: 0.9rem;
    line-height: 1.5;
}

.search-result-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.search-result-actions button,
.search-result-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.15rem;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.2;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-result-actions .btn-request-price {
    background: linear-gradient(180deg, #536b8a 0%, #3d4f66 100%);
    color: white;
    border: 1px solid #3d4f66;
    box-shadow: 0 3px 10px rgba(26, 42, 74, 0.15);
    font-weight: 700;
}

.search-result-actions .btn-request-price:hover {
    background: linear-gradient(180deg, #495f7e 0%, #2b3d57 100%);
    border-color: #2b3d57;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.search-result-actions a {
    background-color: #5a6a7a;
    color: white;
    border: 1px solid #5a6a7a;
}

.search-result-actions a:hover {
    background-color: #3a4a5a;
    border-color: #3a4a5a;
    color: white;
    text-decoration: none;
}

.front-page-main .hero-block {
    min-height: 700px;
    height: auto;
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================================
   FOOTER
   ============================================================ */

/* ============================================================
   LANDING SECTIONS
   ============================================================ */

.landing-section {
    padding: 2rem 0 5rem;
    background: #fff;
}

.landing-section-gray {
    background: #f5f8fa;
}

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

.landing-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 0.8rem;
    text-align: center;
    letter-spacing: -0.3px;
}

.landing-subtitle {
    text-align: center;
    color: #6b7a90;
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

.landing-features-grid,
.landing-categories-grid,
.landing-models-grid,
.landing-process-grid,
.landing-stats-grid {
    display: grid;
    gap: 1.8rem;
}

.landing-features-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
    text-align: center;
    padding: 1.5rem 1rem;
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 12px;
    background: #f5f8fa;
    color: #e63946;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #6b7a90;
    font-size: 0.9rem;
    line-height: 1.6;
}

.landing-categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-category-card {
    background: white;
    border: 1px solid #e4ebf2;
    border-radius: 10px;
    padding: 2rem 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.landing-category-card:hover {
    border-color: #e63946;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(26, 42, 74, 0.08);
}

.landing-category-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 0.5rem;
}

.landing-category-card p {
    color: #6b7a90;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.landing-category-card a {
    color: #e63946;
    font-weight: 700;
    font-size: 0.9rem;
}

.landing-models-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-model-card {
    background: #fff;
    border: 1px solid #e4ebf2;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.landing-model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(26, 42, 74, 0.1);
}

.landing-model-img {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f8fa;
    color: #6b7a90;
    font-size: 1.3rem;
    font-weight: 700;
}

.landing-model-image,
.landing-model-card img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: #f5f8fa;
}

.landing-model-info {
    padding: 1.25rem 1rem;
}

.landing-model-info h4 {
    color: #1a2a4a;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.landing-model-info p {
    color: #6b7a90;
    font-size: 0.82rem;
}

.landing-process-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-process-step {
    text-align: center;
    position: relative;
}

.landing-step-number {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #e63946;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.landing-process-step h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 0.5rem;
}

.landing-process-step p {
    color: #6b7a90;
    font-size: 0.9rem;
    line-height: 1.6;
}

.landing-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    text-align: center;
}

.landing-stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: #e63946;
    line-height: 1;
    margin-bottom: 0.7rem;
}

.landing-stat-label {
    color: #6b7a90;
    font-size: 0.9rem;
}

.landing-cta {
    background: #1a2a4a;
    color: white;
    text-align: center;
    padding: 4.5rem 0;
}

.landing-cta h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.landing-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.landing-cta-btn {
    display: inline-block;
    background: #e63946;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
}

.landing-cta-btn:hover {
    background: #c62d3a;
    color: white;
    text-decoration: none;
}

footer.site-footer {
    background-color: #1a2a4a;
    color: white;
    padding: 3rem 20px;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    font-size: 0.9rem;
    color: #b0c0d0;
    line-height: 1.8;
}

.company-requisites {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.company-requisites p {
    margin: 0.25rem 0;
    font-size: 0.82rem;
    line-height: 1.6;
    color: #d7e1ef;
}

.footer-section a {
    color: #b0c0d0;
}

.footer-section a:hover {
    color: #e63946;
}

.footer-contacts {
    list-style: none;
}

.footer-contacts li {
    margin-bottom: 0.75rem;
    color: #b0c0d0;
}

.footer-contacts a {
    color: #b0c0d0;
    transition: color 0.3s ease;
}

.footer-contacts a:hover {
    color: #e63946;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #2a3a5a;
    padding-top: 1.5rem;
    text-align: center;
    color: #8a9aaa;
    font-size: 0.85rem;
}

.legal-page {
    padding: 3rem 20px;
}

.legal-container {
    max-width: 980px;
    margin: 0 auto;
}

.legal-content {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.07);
    color: #1f2937;
}

.legal-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #1a2a4a;
}

.legal-content h2 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
    color: #1a2a4a;
}

.legal-content p,
.legal-content li {
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
}

.legal-content ul {
    margin-left: 1.5rem;
    padding-left: 1rem;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 24, 40, 0.96);
    color: white;
    z-index: 1002;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.18);
}

.cookie-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-banner__content p {
    margin: 0;
    color: #edf3ff;
    font-size: 0.92rem;
    line-height: 1.5;
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-banner__button,
.cookie-banner__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cookie-banner__button {
    background: #e63946;
    color: white;
    border: none;
    cursor: pointer;
}

.cookie-banner__button:hover {
    background: #c92935;
    color: white;
    text-decoration: none;
}

.cookie-banner__actions a {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

.cookie-banner__actions a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    text-decoration: none;
}

/* ============================================================
   FORMS & INPUTS
   ============================================================ */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: #e63946;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a2a4a;
}

.form-group label .required {
    color: #e63946;
}

.form-help {
    font-size: 0.85rem;
    color: #5a6a7a;
    margin-top: 0.25rem;
}

button.btn,
input[type="submit"],
a.btn {
    padding: 0.75rem 1.5rem;
    background-color: #e63946;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

button.btn:hover,
input[type="submit"]:hover,
a.btn:hover {
    background-color: #c92935;
    text-decoration: none;
}

button.btn.secondary,
a.btn.secondary {
    background-color: #5a6a7a;
}

button.btn.secondary:hover,
a.btn.secondary:hover {
    background-color: #3a4a5a;
}

button.btn.btn-request-price,
a.btn.btn-request-price,
.btn-request-price {
    background-color: #3d4f66;
    color: white;
    border: 1px solid #3d4f66;
    box-shadow: 0 2px 8px rgba(26, 42, 74, 0.12);
}

button.btn.btn-request-price:hover,
a.btn.btn-request-price:hover,
.btn-request-price:hover {
    background-color: #2b3d57;
    border-color: #2b3d57;
    color: white;
    text-decoration: none;
}

button.btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* ============================================================
   MODAL / POPUP
   ============================================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #5a6a7a;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #1a2a4a;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a2a4a;
}

/* ============================================================
   ALERTS & MESSAGES
   ============================================================ */

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert.alert-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert.alert-danger {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert.alert-info {
    background-color: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.alert.alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* ============================================================
   TABLES
   ============================================================ */

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background: white;
}

table thead {
    background-color: #1a2a4a;
    color: white;
}

table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
}

table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #ddd;
}

table tbody tr:hover {
    background-color: #f5f8fa;
}

/* ============================================================
   BADGES & STATUS
   ============================================================ */

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-new {
    background-color: #ffc107;
    color: #000;
}

.badge-in-progress {
    background-color: #17a2b8;
    color: white;
}

.badge-completed {
    background-color: #28a745;
    color: white;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav.primary-menu {
        gap: 1rem;
        width: 100%;
        flex-wrap: wrap;
    }

    .hero-block {
        height: 350px;
    }

    .front-page-main .hero-block {
        min-height: 420px;
        padding: 3.5rem 0;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content .subtitle {
        font-size: 1rem;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form button {
        width: 100%;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .site-main {
        padding: 1.5rem 20px;
    }

    table {
        font-size: 0.85rem;
    }

    table th,
    table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-block {
        height: 280px;
    }

    .front-page-main .hero-block {
        min-height: 360px;
        padding: 3rem 0;
    }

    .hero-content h1 {
        font-size: 1.4rem;
    }

    .hero-content .subtitle {
        font-size: 0.9rem;
    }

    .site-title {
        font-size: 1.2rem;
    }

    nav.primary-menu {
        gap: 0.5rem;
    }

    nav.primary-menu a {
        padding: 0.25rem 0.5rem;
        font-size: 0.85rem;
    }

    .user-menu {
        gap: 0.5rem;
    }

    .user-menu a {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .equipment-section {
        margin: 2rem auto;
    }

    footer.site-footer {
        padding: 2rem 20px;
    }
}

/* ============================================================
   ACCOUNT PAGE
   ============================================================ */

.account-page {
    max-width: 1000px;
    margin: 0 auto;
}

.account-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #ddd;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.account-tabs button {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    color: #5a6a7a;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.account-tabs button.active {
    color: #e63946;
    border-bottom-color: #e63946;
}

.account-tabs button:hover {
    color: #1a2a4a;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.account-profile {
    background: white;
    padding: 2rem;
    border-radius: 6px;
}

.account-profile-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

/* ============================================================
   LOGIN/REGISTER PAGES
   ============================================================ */

.auth-container {
    max-width: 400px;
    margin: 3rem auto;
    background: white;
    padding: 2rem;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-container h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.auth-form {
    margin-top: 1.5rem;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.auth-links a {
    color: #e63946;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.text-center {
    text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }

.hidden {
    display: none !important;
}

.invisible {
    visibility: hidden;
}

.text-muted {
    color: #5a6a7a;
}

.text-danger {
    color: #e63946;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ============================================================
   PART PAGE
   ============================================================ */

.part-page {
    background: white;
    padding: 2rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.part-detail h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.part-description {
    color: #5a6a7a;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.part-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
