
* {
    box-sizing: border-box;
}

:root {
    --black: #080909;
    --dark: #101211;
    --panel: #161816;
    --line: #30332e;
    --text: #e8e6dc;
    --muted: #96978f;
    --warning: #d7a928;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

/* HEADER */
header {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 5%;
    background: rgba(8, 9, 9, .90);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.logo {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 6px;
}

.logo small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 3px;
}

nav {
    display: flex;
    gap: 30px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
}

nav a:hover {
    color: var(--warning);
}

/* HERO */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .15), rgba(0, 0, 0, .30) 55%, var(--black)), url('/bin/img/hero.jpg') center/cover no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 120px 30px 60px;
}

.classified {
    display: inline-block;
    margin-bottom: 25px;
    padding: 7px 12px;
    border: 1px solid var(--warning);
    color: var(--warning);
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 4px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(45px, 7vw, 100px);
    line-height: .9;
    letter-spacing: 12px;
}

.hero h2 {
    margin: 20px 0;
    color: var(--warning);
    font-size: clamp(14px, 2vw, 22px);
    font-weight: normal;
    letter-spacing: 7px;
}

.hero p {
    max-width: 580px;
    margin: 25px auto 35px;
    color: #b6b7b0;
    line-height: 1.8;
    font-size: 14px;
}

.hero-code {
    position: absolute;
    bottom: 25px;
    left: 5%;
    color: #555850;
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 2px;
}

/* COMMON */
section {
    padding: 100px 5%;
}

.section-head {
    max-width: 1400px;
    margin: 0 auto 45px;
}

.section-label {
    color: var(--warning);
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 3px;
}

.section-head h2 {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 50px);
    letter-spacing: 4px;
}

.button {
    display: inline-block;
    padding: 15px 25px;
    background: none;
    border: 1px solid var(--text);
    color: var(--text);
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 3px;
    transition: .2s;
}

.button:hover {
    background: var(--text);
    color: var(--black);
}

.button.warning {
    border-color: var(--warning);
    color: var(--warning);
}

.button.warning:hover {
    background: var(--warning);
    color: var(--black);
}

/* PRODUCTS */
.products {
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 20px;
}

.product {
    position: relative;
    min-height: 460px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    transition: .25s;
}

.product:hover {
    border-color: #3c4039;
}

.product-number {
    position: absolute;
    top: 25px;
    right: 25px;
    color: #4d5049;
    font-family: monospace;
    font-size: 11px;
}

.product-image {
    position: absolute;
    inset: 25px 25px 190px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity .25s;
}

.product-image .normal {
    opacity: 1;
}

.product-image .hover {
    opacity: 0;
}

.product:hover .product-image .normal {
    opacity: 0;
}

.product:hover .product-image .hover {
    opacity: 1;
}

.product small {
    position: relative;
    color: var(--warning);
    font-size: 9px;
    letter-spacing: 3px;
}

.product h3 {
    text-shadow: 0px 0px 5px #000;
    position: relative;
    margin: 12px 0;
    font-size: 25px;
    line-height: 1.2;
    letter-spacing: 1px;
}

.product p {
    position: relative;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.product-buy {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.product-buy strong {
    color: var(--warning);
    font-family: monospace;
}

.product-buy button {
    padding: 10px 14px;
    background: none;
    border: 1px solid var(--line);
    color: var(--text);
    cursor: pointer;
    font-size: 9px;
    letter-spacing: 2px;
}

.product-buy button:hover {
    border-color: var(--warning);
    color: var(--warning);
}

/* PROJECTS */
.projects {
    max-width: 1400px;
    margin: auto;
    border-top: 1px solid var(--line);
}

.project {
    display: grid;
    grid-template-columns:100px 1fr auto;
    align-items: center;
    gap: 30px;
    padding: 30px 10px;
    border-bottom: 1px solid var(--line);
    transition: .2s;
}

.project:hover {
    padding-left: 20px;
    background: #101210;
}

.project-id, .project-status, .project small {
    color: var(--warning);
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 2px;
}

.project h3 {
    margin: 6px 0;
    font-size: 24px;
    letter-spacing: 2px;
}

.project p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.project-status {
    color: var(--muted);
}

/* BASKET */
#basket {
    background: #0c0d0c;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.basket {
    max-width: 1400px;
    margin: auto;
}

.basket-empty {
    padding: 35px 10px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 2px;
}

.basket-empty strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
}

.basket-item {
    display: grid;
    grid-template-columns:90px 1fr auto 140px 80px;
    align-items: center;
    gap: 25px;
    padding: 22px 10px;
    border-bottom: 1px solid var(--line);
}

.basket-id {
    color: var(--warning);
    font-family: monospace;
    font-size: 10px;
}

.basket-name {
    font-size: 13px;
    letter-spacing: 1px;
}

.basket-price {
    font-family: monospace;
    font-size: 12px;
    text-align: right;
}

.quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.quantity button, .remove {
    background: none;
    border: 1px solid var(--line);
    color: var(--text);
    cursor: pointer;
}

.quantity button {
    width: 30px;
    height: 30px;
}

.quantity button:hover, .remove:hover {
    border-color: var(--warning);
    color: var(--warning);
}

.quantity span {
    min-width: 20px;
    text-align: center;
    font-family: monospace;
}

.remove {
    padding: 8px;
    font-size: 8px;
    letter-spacing: 1px;
}

.basket-total {
    margin: 30px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-family: monospace;
    font-size: 12px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 10px;
}

.total-row:first-child {
    padding-top: 20px;
}

.total-row:last-child {
    padding: 20px 10px;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.total-row strong {
    color: var(--warning);
}

.checkout-row {
    display: flex;
    justify-content: flex-end;
}

/* MANIFESTO */
.manifesto {
    text-align: center;
}

.manifesto-inner {
    max-width: 1000px;
    margin: auto;
}

.manifesto .symbol {
    margin-bottom: 25px;
    color: var(--warning);
    font-size: 30px;
}

.manifesto blockquote {
    margin: 0;
    font-size: clamp(28px, 5vw, 60px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 2px;
}

.manifesto p {
    margin-top: 30px;
    color: var(--muted);
    font-family: monospace;
    font-size: 11px;
    letter-spacing: 2px;
}

/* DEPARTMENTS */
.departments {
    max-width: 1400px;
    margin: auto;
    border-top: 1px solid var(--line);
}

.department {
    display: grid;
    grid-template-columns:80px 1fr auto;
    align-items: center;
    gap: 25px;
    padding: 25px 10px;
    border-bottom: 1px solid var(--line);
    transition: .2s;
}

.department:hover {
    padding-left: 20px;
    background: #101210;
}

.department .number {
    color: var(--warning);
    font-family: monospace;
}

.department strong {
    letter-spacing: 2px;
}

.department span:last-child {
    color: var(--muted);
    font-size: 11px;
}

/* ERROR PAGES */
.error-page {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--black);
    border-top: 1px solid var(--line);
}

.error-box {
    width: min(750px, 90%);
    padding: 70px 50px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, #111311, #0b0c0b);
}

.error-code {
    margin-bottom: 35px;
    color: var(--warning);
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 3px;
}

.error-symbol {
    width: 70px;
    height: 70px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--warning);
    color: var(--warning);
    font-family: monospace;
    font-size: 35px;
}

.error-box h2 {
    margin: 0;
    font-size: clamp(38px, 6vw, 70px);
    line-height: .95;
    letter-spacing: 4px;
}

.error-box p {
    margin: 30px auto;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.error-status {
    max-width: 400px;
    margin: 35px auto;
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 2px;
}

.error-status strong {
    color: var(--warning);
}

.error-box small {
    display: block;
    margin-top: 35px;
    color: #555850;
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 2px;
}

.error-box em {
    display: block;
    margin-top: 8px;
    color: #3e403b;
    font-family: monospace;
    font-size: 8px;
    font-style: normal;
}

.security-error {
    background: repeating-linear-gradient(135deg, #090a09, #090a09 20px, #0c0d0c 20px, #0c0d0c 40px);
}

.security-error .error-box {
    border-color: #593b26;
    box-shadow: inset 4px 0 0 var(--warning);
}

.security-error .error-code, .security-error .error-symbol, .security-error .error-status strong {
    color: #d16a42;
}

.security-error .error-symbol {
    border-color: #d16a42;
}

/* CHECKOUT MODAL */
.modal-overlay {
    position: fixed;
    z-index: 900;
    inset: 0;
    background: rgba(0, 0, 0, .82);
    opacity: 0;
    visibility: hidden;
    transition: .2s;
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    z-index: 901;
    top: 50%;
    left: 50%;
    width: min(680px, calc(100% - 40px));
    max-height: 90vh;
    overflow: auto;
    transform: translate(-50%, -46%);
    background: #101211;
    border: 1px solid var(--line);
    box-shadow: 0 30px 100px #000;
    opacity: 0;
    visibility: hidden;
    transition: .2s;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 25px;
    border-bottom: 1px solid var(--line);
}

.modal-head small {
    display: block;
    margin-bottom: 6px;
    color: var(--warning);
    font-family: monospace;
    font-size: 8px;
    letter-spacing: 2px;
}

.modal-head strong {
    font-size: 14px;
    letter-spacing: 2px;
}

.modal-close {
    width: 38px;
    height: 38px;
    background: none;
    border: 1px solid var(--line);
    color: var(--text);
    cursor: pointer;
    font-size: 20px;
}

.modal-close:hover {
    border-color: var(--warning);
    color: var(--warning);
}

.modal-content {
    padding: 30px 25px;
}

.modal-warning {
    margin-bottom: 25px;
    padding: 12px;
    border-left: 3px solid var(--warning);
    background: #151611;
    color: var(--warning);
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 2px;
}

.modal-content p {
    margin: 0 0 30px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--line);
    cursor: pointer;
    font-size: 11px;
    line-height: 1.6;
}

.terms-check input {
    display: none;
}

.checkmark {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #555;
}

.terms-check input:checked + .checkmark {
    border-color: var(--warning);
    background: var(--warning);
}

.terms-check input:checked + .checkmark:after {
    content: "✓";
    color: var(--black);
    font-weight: bold;
}

.terms_and_conditions {
    color: var(--warning);
    text-decoration: underline;
}

.terms-error {
    display: none;
    margin-top: 12px;
    color: #d16a42;
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 1px;
}

.terms-error.show {
    display: block;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
}

.modal-foot {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    color: #555850;
    font-family: monospace;
    font-size: 8px;
    letter-spacing: 2px;
}

/* FOOTER */
footer {
    padding: 60px 5%;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    color: #62645e;
    font-family: monospace;
    font-size: 10px;
    border-top: 1px solid var(--line);
}

footer strong {
    color: var(--text);
    letter-spacing: 4px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    header {
        padding: 20px;
    }

    nav {
        display: none;
    }

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

    .hero {
        min-height: 800px;
    }

    .hero h1 {
        letter-spacing: 5px;
    }

    .basket-item {
        grid-template-columns:60px 1fr auto;
    }

    .basket-price, .remove {
        display: none;
    }

    .department {
        grid-template-columns:50px 1fr;
    }

    .department span:last-child {
        display: none;
    }

    footer {
        flex-direction: column;
    }

    .contact {
        grid-template-columns:1fr 1fr
    }

}

@media (max-width: 700px) {
    .project {
        grid-template-columns:70px 1fr;
    }

    .project-status {
        display: none;
    }

    .product-buy {
        align-items: flex-start;
        flex-direction: column;
    }

    .error-box {
        padding: 50px 25px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .button {
        width: 100%;
    }

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

    .size-select {
        width: 100%;
    }

    .size-options {
        left: 0;
        right: auto;
        width: 100%;
    }

}


#contact {
    background: #0c0d0c;
    border-top: 1px solid var(--line)
}

.contact {
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line)
}

.contact-block {
    min-height: 180px;
    padding: 30px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

.contact-block small {
    display: block;
    margin-bottom: 15px;
    color: var(--warning);
    font-family: monospace;
    font-size: 9px;
    letter-spacing: 2px
}

.contact-block strong {
    display: block;
    margin-bottom: 15px;
    font-size: 13px;
    letter-spacing: 2px
}

.contact-block p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.9
}

.contact-block a:hover {
    color: var(--warning)
}

.contact-status {
    color: var(--warning)
}


/* CUSTOM SIZE DROPDOWN */
.size-select {
    position: relative;
    min-width: 190px
}

.size-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 11px 14px;
    background: none;
    border: 1px solid var(--line);
    color: var(--text);
    cursor: pointer;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 2px;
}

.size-toggle:hover,
.size-select.open .size-toggle {
    border-color: var(--warning);
    color: var(--warning);
}

.size-toggle b {
    font-size: 14px;
    transition: transform .2s;
}

.size-select.open .size-toggle b {
    transform: rotate(180deg);
}

.size-options {
    position: absolute;
    z-index: 20;
    right: 0;
    bottom: calc(100% + 6px);
    width: 320px;
    display: none;
    background: #101211;
    border: 1px solid var(--line);
    box-shadow: 0 15px 40px #000;
}

.size-select.open .size-options {
    display: block;
}

.size-option {
    display: grid;
    grid-template-columns:45px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
}

.size-option:last-child {
    border-bottom: 0;
}

.size-option:hover {
    background: #161816;
}

.size-option strong {
    color: var(--text);
    font-family: monospace;
    font-size: 12px;
}

.size-option span {
    color: var(--muted);
    font-family: monospace;
    font-size: 8px;
    letter-spacing: 1px;
}

.size-option button {
    padding: 8px 10px;
    background: none;
    border: 1px solid var(--line);
    color: var(--text);
    cursor: pointer;
    font-size: 8px;
    letter-spacing: 1px;
}

.size-option button:hover {
    border-color: var(--warning);
    color: var(--warning);
}
