@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg: #151617;
    --surface: #202326;
    --surface-2: #292d31;
    --line: #3a4045;
    --text: #f8fafc;
    --muted: #aab4c0;
    --soft: #d5dbe3;
    --orange: #f97316;
    --orange-dark: #dc5f0c;
    --green: #10b981;
    --red: #ef4444;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a {
    color: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.map-section {
    width: 100%;
    background: var(--bg);
    line-height: 0;
}

.map-section iframe {
    width: 100%;
    height: 500px;
    border: 0;
    border-radius: 0;
    filter: grayscale(0.2) contrast(1.1); /* Subtle premium filter */
}

    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(21, 22, 23, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.nav-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand img {
    width: 150px;
    height: auto;
    display: block;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-actions a {
    color: var(--soft);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
}

.nav-actions form {
    margin: 0;
}

.nav-button {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--soft);
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    min-height: 36px;
    padding: 0.45rem 0.75rem;
}

.nav-actions a:hover {
    color: var(--orange);
}

.nav-button:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.hero {
    position: relative;
    min-height: 640px;
    display: grid;
    align-items: end;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(21, 22, 23, 0.92), rgba(21, 22, 23, 0.58) 48%, rgba(21, 22, 23, 0.16)),
        linear-gradient(0deg, rgba(21, 22, 23, 0.96), transparent 38%);
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    position: relative;
    padding: 0 0 72px;
}

.eyebrow {
    color: var(--orange);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.hero h1 {
    max-width: 720px;
    font-size: clamp(2.4rem, 7vw, 5.8rem);
    line-height: 0.96;
    letter-spacing: 0;
    margin-bottom: 1.2rem;
}

.hero-copy {
    max-width: 560px;
    color: var(--soft);
    font-size: 1.08rem;
    margin-bottom: 2rem;
}

.btn-primary,
.catalog-card__button,
.admin-button {
    border: 0;
    border-radius: 6px;
    background: var(--orange);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.75rem 1rem;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary:hover,
.catalog-card__button:hover,
.admin-button:hover {
    background: var(--orange-dark);
}

.catalog-section,
.steps-section,
.contact-section {
    padding: 72px 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.section-heading h2,
.contact-layout h2 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.05;
}

.section-heading > p,
.contact-lead {
    color: var(--muted);
    max-width: 410px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
}

.catalog-loading,
.catalog-empty {
    grid-column: 1 / -1;
    min-height: 180px;
    display: grid;
    place-items: center;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.catalog-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-width: 0;
}

.catalog-card__image {
    aspect-ratio: 4 / 3;
    background: #101112;
    overflow: hidden;
}

.catalog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.catalog-card__body {
    padding: 1rem;
}

.catalog-card__name {
    font-size: 1.08rem;
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

.catalog-card__price {
    color: var(--orange);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.65rem;
}

.catalog-card__description {
    color: var(--muted);
    min-height: 3rem;
    margin-bottom: 1rem;
}

.catalog-card__button {
    width: 100%;
}

.steps-section {
    background: var(--surface);
    border-block: 1px solid var(--line);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.step {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.35rem;
}

.step span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(249, 115, 22, 0.14);
    color: var(--orange);
    font-weight: 800;
    margin-bottom: 1rem;
}

.step h3 {
    margin-bottom: 0.45rem;
}

.step p {
    color: var(--muted);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 3rem;
}

.contact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact-list div {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
}

.contact-list strong {
    color: var(--orange);
    display: block;
    margin-bottom: 0.4rem;
}

.contact-list p {
    color: var(--soft);
}

.contact-list a {
    color: var(--soft);
}

.footer {
    border-top: 1px solid var(--line);
    padding: 1.3rem 0;
    color: var(--muted);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.footer a {
    color: var(--muted);
    text-decoration: none;
}

.admin-page {
    min-height: 100vh;
}

.admin-shell {
    padding: 2rem 0 4rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-header h1 {
    font-size: 2rem;
}

.admin-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.admin-login {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
}

.admin-login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.admin-login-card {
    width: min(100%, 420px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.admin-login-card img {
    width: 150px;
    height: auto;
    display: block;
    margin-bottom: 1.25rem;
}

.admin-login-card h1 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.admin-login-card form {
    display: grid;
    gap: 0.75rem;
}

.admin-login-card > a {
    color: var(--muted);
    display: inline-block;
    margin-top: 0.8rem;
}

.admin-input,
.admin-table input,
.admin-table textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    font: inherit;
    padding: 0.75rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--line);
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-table textarea {
    min-height: 74px;
    resize: vertical;
}

.admin-thumb {
    width: 86px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line);
}

.admin-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.admin-image-field {
    display: grid;
    gap: 0.5rem;
    min-width: 240px;
}

.admin-file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--soft);
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 800;
    padding: 0.55rem 0.8rem;
}

.admin-file-button input {
    display: none;
}

.admin-button--ghost {
    background: var(--surface-2);
}

.admin-button--danger {
    background: var(--red);
}

.admin-status {
    color: var(--muted);
    min-height: 1.5rem;
    margin-top: 0.75rem;
}

.admin-save-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 80;
    transform: translate(-50%, 24px);
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #0f2f24;
    color: #d9fff0;
    border: 1px solid rgba(16, 185, 129, 0.5);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 0.9rem 1.1rem;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.admin-save-toast span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--green);
    color: #052015;
    font-weight: 900;
}

.admin-save-toast--visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 920px) {
    .catalog-grid,
    .steps-grid,
    .contact-layout,
    .contact-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .nav-inner,
    .section-heading,
    .footer .container,
    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero {
        min-height: 560px;
    }

    .catalog-grid,
    .steps-grid,
    .contact-layout,
    .contact-list {
        grid-template-columns: 1fr;
    }

    .admin-login {
        grid-template-columns: 1fr;
    }

    .admin-table {
        min-width: 900px;
    }

    .admin-panel--table {
        overflow-x: auto;
    }
}
