@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #474a50; 
    color: #000;
}

.header {
    background-color: #474a50;
    height: 120px; 
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 5px solid #000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0; 
    border-left: 5px solid #000;
}

.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    min-width: 300px;
    height: 120px;
    background: #fff;
    border-right: 5px solid #000;
}

.logo-img {
    height: 110px;
    background: transparent;
}

.header-right {
    display: flex;
    flex-direction: column; 
    align-items: flex-end; 
    gap: 8px;
    padding-right: 20px;
}

.header-contacts {
    display: flex;
    flex-direction: row;
    gap: 20px;
    background: #ffffff;
    padding: 6px 12px;
    border: 3px solid #000;
    box-shadow: 4px 4px 0px #000;
    white-space: nowrap;     
}

.header-contacts span {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.header-contacts b {
    font-weight: 900;
    margin-left: 5px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

.main-nav a {
    text-decoration: none;
    color: #000;
    font-weight: 900;
    text-transform: uppercase;
    background-color: #fff;
    border: 3px solid #000;
    padding: 8px 16px;
    position: relative;
    display: inline-block;
    transition: all .1s;
}

.main-nav a:after {
    background-color: #000;
    content: "";
    display: block;
    height: 100%;
    left: 0;
    width: 100%;
    position: absolute;
    top: 0;
    transform: translate(5px, 5px);
    z-index: -1;
}

.main-nav a:hover:after {
    transform: translate(0, 0);
}

.main-nav li.active a {
    background-color: #000;
    color: #ffffff;
}

.main-container {
    margin-top: 120px; 
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 120px);
}

.layout-wrapper {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background-color: #fff;
    border-left: 5px solid #000;
    border-right: 5px solid #000;
}

.sidebar {
    width: 300px;
    background-color: #ffffff;
    border-right: 5px solid #000;
    padding: 25px 20px;
    flex-shrink: 0;
}

.filter-section h3 {
    text-transform: uppercase;
    font-weight: 900;
    font-size: 15px;
    margin-bottom: 15px;
    margin-top: 25px;
    padding-bottom: 5px;
    border-bottom: 3px solid #888;
    display: inline-block;
}

.filter-section label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
    cursor: pointer;
}

.filter-section input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 3px solid #000;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.filter-section input[type="checkbox"]:checked {
    background: #333;
}

.filter-section input[type="checkbox"]:checked::after {
    content: "✕";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 900;
    color: #fff;
}

.filter-section select {
    width: 100%;
    padding: 10px;
    border: 3px solid #000;
    font-weight: 700;
    font-family: inherit;
    background: #fff;
    outline: none;
}

.filter-section select:focus {
    box-shadow: 4px 4px 0px #888;
}

.btn-reset-filters {
    display: inline-block;
    margin-top: 20px;
    color: #e63946;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 13px;
}

.content {
    flex-grow: 1;
    padding: 30px;
    background: #fff;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    align-items: start;
}

.card {
    border: 4px solid #000;
    padding: 15px;
    background: #fff;
    box-shadow: 8px 8px 0px #000;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border: 3px solid #000;
    margin-bottom: 12px;
}

.card-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-top: auto;
}

.text-block {
    flex: 1;
}

.tile-name { font-size: 16px; text-transform: uppercase; margin-bottom: 5px; }
.tile-price { color: #e63946; font-weight: 900; font-size: 18px; margin-bottom: 5px; }
.tile-details { font-size: 12px; font-weight: 700; color: #333; line-height: 1.4; }

.size-image-block {
    width: 75px;
    height: 75px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
    background: #f9f9f9;
}

.size-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.info-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.contact-card {
    background: #fff;
    border: 5px solid #000;
    padding: 40px;
    box-shadow: 15px 15px 0px #000;
}

.contact-title {
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 25px;
    border-bottom: 6px solid #888;
    display: inline-block;
}

.company-name { font-size: 26px; font-weight: 900; text-transform: uppercase; margin-bottom: 10px; }
.address-text { font-size: 18px; font-weight: 700; margin-bottom: 30px; color: #333; }

.phone-list { display: flex; flex-direction: column; gap: 15px; }
.phone-item {
    font-size: 24px;
    font-weight: 900;
    color: #e63946;
    text-decoration: none;
    transition: 0.1s;
}

.phone-item:hover { transform: translateX(10px); color: #000; }

.google-map {
    border: 5px solid #000;
    box-shadow: 15px 15px 0px #000;
}

.page-title {
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 30px;
    border-left: 10px solid #888;
    padding-left: 15px;
}

.table-wrapper {
    background: #fff;
    border: 4px solid #000;
    box-shadow: 12px 12px 0px #000;
    overflow-x: auto;
    width: 100%;
}

.excel-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.excel-table th, 
.excel-table td {
    border: 1px solid #eee;
    padding: 12px 15px;
    font-size: 16px;
    vertical-align: middle;
    word-wrap: break-word;
}

.excel-table th {
    background-color: #f2f2f2;
    border: 1px solid #ccc;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 14px;
    text-align: center;
}

.excel-table th:nth-child(1) { width: 35%; text-align: left; }
.excel-table th:nth-child(2) { width: 30%; }
.excel-table th:nth-child(3) { width: 15%; }
.excel-table th:nth-child(4) { width: 20%; text-align: right; }

.excel-table td {
    text-align: center;
}

.excel-table td:nth-child(1) { 
    text-align: left;
    font-weight: 700;
}

.excel-table td:nth-child(4) { 
    text-align: right;
    font-weight: 900;
}

.table-category td {
    background-color: #fdfdfd !important;
    font-weight: 900;
    text-align: left !important;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    border-bottom: 2px solid #000;
    padding: 15px !important;
}

.excel-table tbody tr:nth-child(even) { background-color: #fafafa; }
.excel-table tbody tr:hover { background-color: #f2f2f2; }

@media (max-width: 1024px) {
    .header { height: auto; position: relative; }
    .header-container { flex-direction: column; border-left: none; }
    .logo-area { width: 100%; border-right: none; border-bottom: 5px solid #000; }
    .main-container { margin-top: 20px; }
    .layout-wrapper { flex-direction: column; border: none; }
    .sidebar { width: 100%; border-right: none; border-bottom: 5px solid #000; }
    .info-layout { grid-template-columns: 1fr; padding: 20px; }
}

@media (max-width: 768px) {

    /* HEADER */
    .header {
        height: auto;
        position: relative;
    }

    .header-container {
        flex-direction: column;
        align-items: stretch;
    }

    .logo-area {
        width: 100%;
        height: auto;
        padding: 10px;
        border-right: none;
        border-bottom: 5px solid #000;
    }

    .logo-img {
        height: 80px;
    }

    .header-right {
        align-items: center;
        padding: 10px;
    }

    .header-contacts {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    /* NAV */
    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav a {
        width: 100%;
        text-align: center;
    }

    /* LAYOUT */
    .layout-wrapper {
        flex-direction: column;
    }

    /* SIDEBAR */
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 5px solid #000;
    }

    /* CONTENT */
    .content {
        padding: 15px;
    }

    /* GRID */
    .grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* CARD */
    .card {
        padding: 10px;
        box-shadow: 5px 5px 0px #000;
    }

    .card img {
        height: 180px;
    }

    .tile-name {
        font-size: 14px;
    }

    .tile-price {
        font-size: 16px;
    }

    .tile-details {
        font-size: 11px;
    }

    .size-image-block {
        width: 60px;
        height: 60px;
    }

    /* INFO PAGE */
    .info-layout {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .contact-card {
        padding: 20px;
        box-shadow: 8px 8px 0px #000;
    }

    .contact-title {
        font-size: 24px;
    }

    .company-name {
        font-size: 20px;
    }

    .address-text {
        font-size: 16px;
    }

    .phone-item {
        font-size: 18px;
    }

    /* TABLE */
    .excel-table th,
    .excel-table td {
        font-size: 12px;
        padding: 8px;
    }
}