:root {
    --bg: #071111;
    --panel: rgba(255, 255, 255, 0.05);
    --panel-strong: rgba(255, 255, 255, 0.08);
    --text: #f3ffff;
    --muted: rgba(229, 255, 255, 0.78);
    --aqua: #16f7dd;
    --mint: #8cffd6;
    --deep: #003d42;
    --line: rgba(255, 255, 255, 0.15);
    --shadow: rgb(63, 63, 63);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

button,
a,
[role="button"],
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

button:focus,
a:focus,
[role="button"]:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

::selection {
    background: rgba(128, 128, 128, 0.35);
    color: inherit;
}

::-moz-selection {
    background: rgba(128, 128, 128, 0.35);
    color: inherit;
}

html {
    overflow-x: hidden;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    min-height: 100%;
    min-height: 100dvh;
    overflow-x: hidden;
    color: var(--text);
    font-family: "Open Sans", Arial, sans-serif;
    line-height: 1.45;
    background: var(--bg);
}

button,
a {
    font: inherit;
}

button {
    cursor: pointer;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    width: 100dvw;
    height: 100%;
    height: 100lvh;
    min-height: 100%;
    z-index: -3;
    background-color: var(--bg);
    background-image: url('gardi_wall2.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    filter: brightness(2) contrast(1.2);
    pointer-events: none;
    transform: translateZ(0);
    will-change: auto;
}

.background::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.17;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: radial-gradient(circle at center, black, transparent 78%);
    pointer-events: none;
}

.glow-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100lvh;
    min-height: 100%;
    z-index: -2;
    pointer-events: none;
}

.navbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0);
    padding: 0;
    height: 60px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    height: 100%;
}

.nav-logo h1 {
    font-size: 40px;
    line-height: 1;
    margin-left: 20px;
    padding: 0;
}

.nav-logo h2,
h1,
h2,
h3 {
    font-family: "Montserrat", Arial, sans-serif;
    letter-spacing: 0;
}

.nav-logo h2 {
    line-height: 1;
    font-size: 1.35rem;
    text-shadow: 0 0 8px var(--shadow), 0 0 18px rgb(255, 255, 255);
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
}

.nav-btn {
    min-height: 32px;
    border: 1px solid rgba(255, 255, 255, 0);
    border-radius: 24px;
    padding: 0 17px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.5s ease;
}

.nav-btn:hover,
.nav-btn.active {
    color: #021313;
    background: var(--aqua);
    box-shadow: 0 0 18px var(--shadow);
}

.section {
    display: none;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 118px 0 70px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

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

.glass-panel {
    border: 1px solid rgba(255, 255, 255, 0);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 0 34px rgba(0, 0, 0, 0.15);
}

.eyebrow {
    margin-bottom: 13px;
    color: var(--mint);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

h1 {
    margin-bottom: 0;
    font-size: clamp(2.05rem, 5vw, 4.45rem);
    line-height: 1.04;
    overflow-wrap: anywhere;
    hyphens: auto;
    text-wrap: balance;
    text-shadow: 0 0 12px rgb(63, 63, 63), 0 0 30px var(--shadow);
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(1.85rem, 4vw, 3rem);
    line-height: 1.05;
    text-shadow: 0 0 16px var(--shadow);
}

h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

p {
    color: var(--muted);
    font-size: 1rem;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.76fr);
    gap: 30px;
    align-items: center;
    min-height: calc(100dvh - 188px);
}

.hero-panel {
    padding: clamp(26px, 5vw, 54px);
}

.hero-panel > p:not(.eyebrow) {
    max-width: 690px;
    font-size: 1.12rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.cta-button,
.ghost-button {
    min-height: 48px;
    border-radius: 7px;
    padding: 0 22px;
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    transition: 0.25s ease;
}

.cta-button {
    border: 1px solid transparent;
    color: #021313;
    background: var(--aqua);
    box-shadow: 0 0 22px var(--shadow);
}

.ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.cta-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 26px var(--shadow), inset 0 0 16px rgba(140, 255, 214, 0.18);
}

.hero-preview {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
}

.hero-preview img,
.material-grid img,
.product-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.68) contrast(1.08);
}

.hero-preview img {
    transition: opacity 0.7s ease, transform 1.2s ease;
}

.hero-preview img.is-changing {
    opacity: 0;
    transform: scale(1.025);
}

.hero-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.4));
}

.preview-badge {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 1;
    width: min(220px, calc(100% - 36px));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.preview-badge strong,
.preview-badge span {
    display: block;
}

.preview-badge strong {
    color: var(--aqua);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 1.25rem;
}

.preview-badge span {
    color: var(--muted);
}

.split-layout,
.contact-layout {
    display: grid;
    grid-template-columns: 0.58fr 1.42fr;
    gap: 24px;
    align-items: stretch;
}

.split-layout .glass-panel,
.order-panel,
.contact-card {
    padding: clamp(24px, 4vw, 42px);
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.feature-list span {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 10px 13px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.material-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 165px;
    grid-auto-flow: dense;
    gap: 16px;
}

.material-grid article,
.product-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.material-grid article {
    min-height: 100%;
    position: relative;
    display: block;
}

.material-grid article:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.material-grid article:nth-child(2) { grid-column: span 3; grid-row: span 1; }
.material-grid article:nth-child(3) { grid-column: span 3; grid-row: span 1; }
.material-grid article:nth-child(4) { grid-column: span 2; grid-row: span 2; }
.material-grid article:nth-child(5) { grid-column: span 2; grid-row: span 1; }
.material-grid article:nth-child(6) { grid-column: span 2; grid-row: span 1; }
.material-grid article:nth-child(7) { grid-column: span 4; grid-row: span 1; }
.material-grid article:nth-child(8) { grid-column: span 2; grid-row: span 1; }
.material-grid article:nth-child(9) { grid-column: span 2; grid-row: span 1; }
.material-grid article:nth-child(10) { grid-column: span 2; grid-row: span 1; }
.material-grid article:nth-child(11) { grid-column: span 6; grid-row: span 1; }

.material-grid .text-tile {
    padding: 18px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 32px rgba(255, 255, 255, 0.02);
}

.material-grid .text-tile span,
.material-grid .text-tile h3,
.material-grid .text-tile p {
    position: relative;
    z-index: 1;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 0;
}

.material-grid .text-tile span {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--aqua);
    font-family: "Montserrat", Arial, sans-serif;
    font-weight: 800;
    text-shadow: 0 0 14px var(--shadow);
}

.material-grid .text-tile h3 {
    margin-bottom: 8px;
}

.material-grid .accent-tile {
    background: rgba(255, 255, 255, 0.06);
}

.material-grid img {
    position: absolute;
    inset: 0;
    height: 100%;
    min-height: 0;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.material-grid article::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 42%, rgba(0, 0, 0, 0.7) 100%);
}

.material-grid article:hover img {
    transform: scale(1.05);
    filter: saturate(0.82) contrast(1.14);
}

.material-grid h3,
.material-grid p {
    position: absolute;
    z-index: 1;
    left: 18px;
    right: 18px;
}

.material-grid h3 {
    bottom: 48px;
    margin-bottom: 0;
    text-shadow: 0 0 16px rgba(0, 0, 0, 0.8);
}

.material-grid p {
    bottom: 18px;
    font-size: 0.92rem;
    line-height: 1.28;
}

.catalog-panel {
    padding: clamp(20px, 4vw, 42px);
}

.catalog-panel > h2,
.catalog-panel > .eyebrow {
    text-align: center;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.product-card {
    min-height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 24px rgba(22, 247, 221, 0.18);
}

.product-card img {
    height: 210px;
}

.product-body {
    padding: 18px;
}

.product-body strong {
    display: inline-block;
    margin-top: 18px;
    color: var(--aqua);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 1.1rem;
}

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

.steps {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.steps div {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    align-items: start;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}

.steps span {
    color: var(--aqua);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-links {
    display: grid;
    gap: 10px;
}

.contact-links a {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 13px 14px;
    color: var(--text);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    transition: 0.25s ease;
}

.contact-links a:hover {
    color: #021313;
    background: var(--mint);
}

.contact-card .cta-button {
    width: 100%;
    margin-top: auto;
}

@media (max-width: 980px) {
    .hero-content,
    .split-layout,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .hero-preview {
        min-height: 380px;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .material-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: 155px;
    }

    .material-grid article:nth-child(n) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .material-grid article:nth-child(2),
    .material-grid article:nth-child(6),
    .material-grid article:nth-child(7),
    .material-grid article:nth-child(9),
    .material-grid article:nth-child(10),
    .material-grid article:nth-child(11) {
        grid-row: span 1;
    }
}

@media (max-width: 720px) {
    .navbar {
        height: auto;
        padding: 4px 0;
    }

    .nav-container {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding-inline: 12px;
        height: auto;
    }

    .nav-menu {
        width: 100%;
        gap: 6px;
    }

    .nav-btn {
        flex: 1;
        min-width: 0;
        padding: 0 8px;
        font-size: 0.68rem;
        white-space: nowrap;
        min-height: 28px;
    }

    .section {
        padding-top: 132px;
        min-height: auto;
    }

    .container {
        width: min(100% - 24px, 1200px);
    }

    .hero-content {
        min-height: auto;
    }

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

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

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

    .material-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .material-grid article:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
    }

    .hero-preview {
        min-height: 310px;
    }

    .product-card img {
        height: 230px;
    }

    .material-grid article:not(.text-tile) {
        display: flex;
        flex-direction: column;
        background: rgba(8, 16, 16, 0.55);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .material-grid article:not(.text-tile) img {
        position: static;
        height: 220px;
        width: 100%;
        flex-shrink: 0;
        object-fit: cover;
    }

    .material-grid article::after {
        display: none;
    }

    .material-grid article:not(.text-tile) h3,
    .material-grid article:not(.text-tile) p {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        margin: 0;
        padding: 0;
    }

    .material-grid article:not(.text-tile) h3 {
        padding: 14px 16px 6px;
        text-shadow: none;
        color: #fff;
    }

    .material-grid article:not(.text-tile) p {
        padding: 0 16px 16px;
        color: rgba(229, 255, 255, 0.85);
    }

    .material-grid .text-tile {
        background: rgba(8, 16, 16, 0.6);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        padding: 18px 16px;
    }

    .product-body {
        background: rgba(8, 16, 16, 0.55);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .nav-logo h2 {
        font-size: 1.1rem;
    }
}

@media (max-width: 420px) {
    .nav-btn {
        font-size: 0.6rem;
    }

    .steps div {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

.glass-panel {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.navbar {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.preview-badge {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
