* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 50%, #dde4ec 100%);
    color: #2d3748;
    padding-top: 140px;
    display: flex;
    flex-direction: column;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-top {
    background: #2b3349;
    padding: 0.5rem 1.5rem;
}

.header-top-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1.5rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2.25rem;
}

.header-top .address,
.header-top .phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 0.875rem;
}

.header-top .phone {
    text-decoration: none;
    margin-left: 200px;
}

.header-top .phone:hover {
    opacity: 0.9;
}

.header-top .icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    fill: #fff;
}

.header-main {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.35rem 1.5rem;
    align-items: start;
}

.header-logo-wrap {
    grid-row: 1 / -1;
    align-self: center;
}

.header-logo {
    height: 71px;
    width: auto;
}

.header-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding-top: 0.25rem;
    margin-top: -8px;
}

.header-nav a {
    color: #2d3748;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
    color: #c45c26;
    font-weight: 600;
}

.header-search {
    width: 100%;
    max-width: 420px;
    margin-left: 15px;
    margin-top: -3px;
}

.header-search-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.header-search-icon {
    width: 17px;
    height: 17px;
    fill: #9ca3af;
    align-self: center;
    margin-left: 10px;
    flex-shrink: 0;
}

.header-search-input {
    flex: 1 1 auto;
    border: none;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    min-width: 0;
    color: #6b7280;
}

.header-search-input::placeholder {
    color: #9ca3af;
}

.header-search-input:focus {
    outline: none;
}

.header-search-btn {
    flex-shrink: 0;
    background: #2b3349;
    color: #fff;
    border: none;
    padding: 0.4rem 1.5rem;
    font-size: 0.65rem;
    font-weight: 400;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.header-search-btn:hover {
    background: #c45c26;
}

@media (max-width: 768px) {
    .header-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    .header-logo-wrap { grid-row: auto; }
    .header-search { max-width: none; }
}

.search-section {
    margin-bottom: 2rem;
}

.search-section h2 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #2d3748;
}

.search-results {
    list-style: none;
}

.search-results li {
    margin-bottom: 0.5rem;
}

.search-results a {
    color: #2d3748;
    text-decoration: none;
}

.search-results a:hover {
    color: #c45c26;
}

.search-category {
    color: #718096;
    font-size: 0.9rem;
}

.search-price {
    margin-left: 0.5rem;
    font-weight: 600;
    color: #c45c26;
}

.main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
}

.page-content h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.page-content p {
    line-height: 1.6;
    opacity: 0.9;
}

.catalog-intro {
    margin-bottom: 2rem;
    max-width: 700px;
}

.catalog-with-sidebar {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    align-items: flex-start;
}

.catalog-sidebar {
    flex: 0 0 320px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.catalog-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.catalog-sidebar-list > li {
    display: block;
}

.catalog-sidebar-item {
    border-bottom: 1px solid #e5e7eb;
}

.catalog-sidebar-item:last-child {
    border-bottom: none;
}

.catalog-sidebar-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1f2937;
    transition: background 0.2s;
}

.catalog-sidebar-link:hover {
    background: #f9fafb;
}

.catalog-sidebar-link:hover .catalog-sidebar-label {
    color: #c45c26;
}

.catalog-sidebar-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #6b7280;
}

.catalog-sidebar-icon svg {
    width: 36px;
    height: 36px;
}

.catalog-sidebar-label {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
    min-width: 0;
}

.catalog-main {
    min-height: 200px;
}

.catalog-panel {
    position: relative;
    min-height: 280px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 1.25rem 1.5rem;
}

.catalog-panel-hint {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
    padding-top: 0.5rem;
}

.catalog-panel-content {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.25rem 1.5rem;
    overflow: auto;
    background: #fff;
}

.catalog-panel-content.is-active {
    display: block;
}

.catalog-panel-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2b3349;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.catalog-panel-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem 2rem;
}

.catalog-panel-col {
    min-width: 0;
}

.catalog-panel-list {
    list-style: none;
}

.catalog-panel-list li {
    margin-bottom: 0.35rem;
}

.catalog-panel-list a {
    color: #4a5568;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
}

.catalog-panel-list a:hover {
    color: #c45c26;
}

.catalog-panel-empty {
    margin: 0;
    font-size: 0.95rem;
}

.catalog-panel-empty a {
    color: #c45c26;
}

.catalog-sidebar-hint {
    color: #6b7280;
    font-size: 0.95rem;
}

@media (max-width: 1024px) {
    .catalog-panel-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .catalog-with-sidebar {
        flex-direction: column;
    }
    .catalog-sidebar {
        flex: 1 1 100%;
    }
    .catalog-panel-content {
        position: static;
    }
    .catalog-panel-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .catalog-panel { min-height: 120px; }
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.catalog-section {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.catalog-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #c45c26;
}

.catalog-list {
    list-style: none;
}

.catalog-list li {
    margin-bottom: 0.4rem;
}

.catalog-list a {
    color: #4a5568;
    text-decoration: none;
    font-size: 0.95rem;
}

.catalog-list a:hover {
    color: #c45c26;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 0.75rem;
}

.breadcrumb a {
    color: #c45c26;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 3rem;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.card h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    opacity: 0.85;
}

.status {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.5rem 1rem;
    background: #48bb78;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.footer {
    margin-top: 3rem;
    background: #e8ecf1;
    padding: 2.5rem 1.5rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-contact {
    flex: 0 0 280px;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.footer-title-underline {
    width: 50px;
    height: 3px;
    background: #c45c26;
    margin-bottom: 1.25rem;
}

.footer-address {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-phone {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
}

.footer-phone a {
    color: inherit;
    text-decoration: none;
}

.footer-phone a:hover {
    color: #c45c26;
}

.footer-directions {
    margin-top: 0.75rem;
}

.footer-directions a {
    font-size: 0.9rem;
    color: #4a5568;
    text-decoration: none;
    border-bottom: 1px dashed #4a5568;
}

.footer-directions a:hover {
    color: #c45c26;
    border-bottom-color: #c45c26;
}

.footer-nav {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-col-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.75rem;
}

.footer-col-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
}

.footer-col-links a {
    font-size: 0.9rem;
    color: #4a5568;
    text-decoration: none;
}

.footer-col-links a:hover {
    color: #c45c26;
}
