/***** GLOBAL *****/

/* fonts */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../vendor/fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../vendor/fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Instrument Serif";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("../vendor/fonts/instrument-serif-italic-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Instrument Serif";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("../vendor/fonts/instrument-serif-italic-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Instrument Serif";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../vendor/fonts/instrument-serif-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Instrument Serif";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../vendor/fonts/instrument-serif-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --main-color: #1c2a21;
    --main-text-color: #f5f1e8;
    --second-color: #faf8f3;
    --second-text-color: #1c2a21;
    --third-color: #efe9dc;
    --third-text-color: #1c2a21;
    --accent-color: #a0612f;
    --accent-text-color: #ffffff;
    --muted-text-color: #5f6b62;
    --border-color: #e3dccd;

    --base-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --spec-font: "Instrument Serif", Georgia, "Times New Roman", serif;

    --radius: 28px;
    --radius-sm: 16px;
    --header-height: 76px;
    --shadow: 0 24px 60px -24px rgba(28, 42, 33, 0.35);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --transition: 0.3s ease;
}

/* base */
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
    overflow-x: clip;
    font-family: var(--base-font);
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: -0.011em;
    color: var(--second-text-color);
    background: var(--second-color);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

::selection {
    background: var(--accent-color);
    color: var(--accent-text-color);
}

.container {
    padding-left: 25px;
    padding-right: 25px;
}

/* typography */
h1, h2, h3, h4, h5, h6,
.heading {
    margin-bottom: 0.5em;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

h1 { font-size: clamp(2.75rem, 6.4vw, 5.75rem); }
h2 { font-size: clamp(2.25rem, 4.6vw, 4rem); }
h3 { font-size: clamp(1.375rem, 2vw, 1.625rem); letter-spacing: -0.03em; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1em;
}

.spec-font {
    font-family: var(--spec-font);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.lead {
    max-width: 620px;
    font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
    line-height: 1.55;
    color: var(--muted-text-color);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 6px 14px;
    border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0;
}

.eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
}

/* buttons */
.t-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.t-btn:hover {
    transform: translateY(-2px);
}

.t-btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.t-btn svg {
    width: 17px;
    height: 17px;
}

.t-btn.theme {
    background: var(--main-color);
    color: var(--main-text-color);
    border-color: var(--main-color);
}

.t-btn.theme:hover,
.t-btn.theme:focus-visible {
    background: var(--accent-color);
    color: var(--accent-text-color);
    border-color: var(--accent-color);
}

.t-btn.theme2 {
    background: var(--second-color);
    color: var(--second-text-color);
    border-color: var(--second-color);
}

.t-btn.theme2:hover,
.t-btn.theme2:focus-visible {
    background: var(--accent-color);
    color: var(--accent-text-color);
    border-color: var(--accent-color);
}

.t-btn.theme3 {
    background: var(--third-color);
    color: var(--third-text-color);
    border-color: var(--third-color);
}

.t-btn.theme3:hover,
.t-btn.theme3:focus-visible {
    background: var(--main-color);
    color: var(--main-text-color);
    border-color: var(--main-color);
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* sections */
.intro-section {
    padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 5vw, 64px);
}

.intro-section .heading {
    max-width: 980px;
}

.intro-section .lead {
    margin-bottom: 0;
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-sm);
    background: var(--third-color);
    color: var(--muted-text-color);
    font-size: 0.875rem;
}

.photo-placeholder svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.4;
}

/* reveal */
.js .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .reveal.visible {
    opacity: 1;
    transform: none;
}

.reveal-words .word {
    opacity: 0.16;
    transition: opacity 0.4s ease;
}

.reveal-words .word.active {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .t-btn:hover {
        transform: none;
    }
}


/***** HEADER *****/

/* header */
.header {
    position: sticky;
    top: 0;
    z-index: 1030;
    color: var(--second-text-color);
    transition: var(--transition);
}

.header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: color-mix(in srgb, var(--second-color) 92%, transparent);
    border-bottom: 1px solid transparent;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    transition: var(--transition);
}

.header.scrolled::before {
    border-bottom-color: var(--border-color);
}

.header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-height);
}

/* logo */
.header .logo {
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.header .logo .spec-font {
    font-size: 1.15em;
}

/* navigation */
.header .navigation .list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header .navigation .link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
}

.header .navigation .link:hover,
.header .navigation .link.active,
.header .navigation .link[aria-expanded="true"] {
    background: var(--third-color);
}

.header .navigation .link svg {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.header .navigation .link[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.header .navigation .dropdown-toggle::after {
    display: none;
}

.header .dropdown-menu {
    min-width: 220px;
    margin-top: 10px !important;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--second-color);
    box-shadow: var(--shadow);
}

.header .dropdown-item {
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--second-text-color);
    font-size: 0.9375rem;
    font-weight: 500;
}

.header .dropdown-item:hover,
.header .dropdown-item:focus,
.header .dropdown-item.active {
    background: var(--third-color);
    color: var(--third-text-color);
}

/* actions */
.header .actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header .actions .t-btn {
    padding: 11px 20px;
}

.header .menu-toggle,
.header .menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--main-color);
    color: var(--main-text-color);
    transition: var(--transition);
}

.header .menu-close {
    background: var(--third-color);
    color: var(--third-text-color);
}

.header .menu-toggle:hover,
.header .menu-close:hover {
    background: var(--accent-color);
    color: var(--accent-text-color);
}

.header .menu-toggle:focus-visible,
.header .menu-close:focus-visible,
.header .navigation .link:focus-visible,
.header .dropdown-item:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* offcanvas */
.header .offcanvas {
    background: var(--second-color);
    color: var(--second-text-color);
}

.header .offcanvas-header {
    justify-content: space-between;
    padding: 16px 25px;
}

.header .offcanvas-body {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 12px 25px 32px;
}

.header .offcanvas .label {
    margin: 18px 0 6px;
    color: var(--muted-text-color);
    font-size: 0.8125rem;
    font-weight: 500;
}

.header .offcanvas .navigation .list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.header .offcanvas .navigation .link {
    display: block;
    padding: 10px 0;
    border-radius: 0;
    font-size: 1.625rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.header .offcanvas .navigation .link:hover,
.header .offcanvas .navigation .link.active {
    background: transparent;
    color: var(--accent-color);
}


/***** HOME *****/

/* hero */
.home-page .hero-section {
    padding: clamp(40px, 6vw, 80px) 0 0;
}

.home-page .hero-section .heading {
    margin-bottom: 0;
}

.home-page .hero-section .text {
    margin-bottom: 24px;
    font-size: 1.125rem;
    color: var(--muted-text-color);
}

.home-page .hero-section .scene {
    position: relative;
    margin: clamp(36px, 5vw, 64px) 16px 0;
}

.home-page .hero-section .frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.home-page .hero-section .image {
    width: 100%;
    height: auto;
}

.home-page .hero-section .hint {
    position: absolute;
    left: 20px;
    bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 14px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--second-color) 85%, transparent);
    font-size: 0.8125rem;
    font-weight: 500;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.home-page .hero-section .hint svg {
    width: 16px;
    height: 16px;
}

/* hotspots */
.home-page .hero-section .spot {
    position: absolute;
    left: var(--x);
    top: var(--y);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--second-color);
    color: var(--second-text-color);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: var(--transition);
}

.home-page .hero-section .spot::before,
.home-page .hero-section .spot::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 50%;
    background: var(--second-color);
    animation: spot-pulse 2.2s ease-out infinite;
}

.home-page .hero-section .spot::after {
    animation-delay: 1.1s;
}

.home-page .hero-section .spot svg {
    width: 18px;
    height: 18px;
    transition: var(--transition);
}

.home-page .hero-section .spot:hover,
.home-page .hero-section .spot[aria-expanded="true"] {
    background: var(--main-color);
    color: var(--main-text-color);
}

.home-page .hero-section .spot[aria-expanded="true"] svg {
    transform: rotate(45deg);
}

.home-page .hero-section .spot:focus-visible {
    outline: 2px solid var(--second-color);
    outline-offset: 4px;
}

@keyframes spot-pulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(2.4);
    }
}

/* popup */
.home-page .hero-section .popup {
    position: absolute;
    left: calc(var(--x) + 34px);
    top: var(--y);
    z-index: 3;
    width: 330px;
    padding: 26px;
    border-radius: var(--radius-sm);
    background: var(--second-color);
    color: var(--second-text-color);
    box-shadow: var(--shadow);
    transform: translateY(-50%);
    animation: popup-in 0.35s var(--ease);
}

.home-page .hero-section .popup.reverse {
    left: auto;
    right: calc(100% - var(--x) + 34px);
}

.home-page .hero-section .popup .title {
    margin-bottom: 10px;
    padding-right: 36px;
    font-size: 1.5rem;
}

.home-page .hero-section .popup .text {
    margin-bottom: 20px;
    font-size: 0.9375rem;
    color: var(--muted-text-color);
}

.home-page .hero-section .popup .close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--third-color);
    color: var(--third-text-color);
    transition: var(--transition);
}

.home-page .hero-section .popup .close:hover {
    background: var(--main-color);
    color: var(--main-text-color);
}

.home-page .hero-section .popup .close:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.home-page .hero-section .popup .close svg {
    width: 16px;
    height: 16px;
}

@keyframes popup-in {
    from {
        opacity: 0;
        margin-top: 12px;
    }

    to {
        opacity: 1;
        margin-top: 0;
    }
}

/* marquee */
.home-page .marquee-section {
    overflow: hidden;
    padding: clamp(36px, 5vw, 64px) 0;
}

.home-page .marquee-section .track {
    display: flex;
    align-items: center;
    gap: clamp(24px, 3vw, 48px);
    width: max-content;
    animation: marquee 40s linear infinite;
}

.home-page .marquee-section .word {
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1;
    white-space: nowrap;
}

.home-page .marquee-section .dot {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-color);
}

@keyframes marquee {
    to {
        transform: translateX(calc(-50% - clamp(12px, 1.5vw, 24px)));
    }
}

/* about */
.home-page .about-section {
    padding: clamp(48px, 7vw, 100px) 0 clamp(72px, 10vw, 140px);
}

.home-page .about-section .statement {
    max-width: 1100px;
    margin-bottom: clamp(48px, 7vw, 96px);
    font-size: clamp(1.75rem, 3.6vw, 3.25rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.home-page .about-section .stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.home-page .about-section .number {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.05em;
}

.home-page .about-section .label {
    max-width: 260px;
    color: var(--muted-text-color);
}

/* products */
.home-page .products-section {
    position: relative;
    background: var(--main-color);
    color: var(--main-text-color);
}

.home-page .products-section .pin {
    padding: clamp(72px, 9vw, 120px) 0;
}

.home-page .products-section .top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: clamp(32px, 4vw, 56px);
}

.home-page .products-section .heading {
    margin-bottom: 0;
}

.home-page .products-section .progress {
    flex-shrink: 0;
    width: 200px;
    height: 2px;
    margin-bottom: 14px;
    overflow: hidden;
    border-radius: 2px;
    background: color-mix(in srgb, var(--main-text-color) 20%, transparent);
}

.home-page .products-section .bar {
    display: block;
    height: 100%;
    background: var(--main-text-color);
    transform: scaleX(0);
    transform-origin: left;
}

.home-page .products-section .track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    will-change: transform;
}

.home-page .products-section .track::-webkit-scrollbar {
    display: none;
}

.home-page .products-section .item {
    display: flex;
    flex-direction: column;
    flex: 0 0 420px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--second-color);
    color: var(--second-text-color);
    scroll-snap-align: start;
}

.home-page .products-section .image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.home-page .products-section .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.home-page .products-section .item:hover .image img {
    transform: scale(1.05);
}

.home-page .products-section .body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
}

.home-page .products-section .number {
    margin-bottom: 14px;
    color: var(--accent-color);
    font-size: 0.875rem;
    font-weight: 600;
}

.home-page .products-section .title {
    margin-bottom: 10px;
    font-size: 2rem;
}

.home-page .products-section .text {
    margin-bottom: 24px;
    color: var(--muted-text-color);
}

.home-page .products-section .t-btn {
    margin-top: auto;
}

.home-page .products-section .item.custom {
    justify-content: flex-end;
    background: var(--accent-color);
    color: var(--accent-text-color);
}

.home-page .products-section .custom .number,
.home-page .products-section .custom .text {
    color: inherit;
}

.home-page .products-section .custom .title {
    font-size: clamp(2.25rem, 3.4vw, 3rem);
}

.home-page .products-section .custom .t-btn {
    margin-top: 0;
}

.home-page .products-section.pinned .pin {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    height: 100vh;
    padding: var(--header-height) 0 0;
    overflow: hidden;
}

.home-page .products-section.pinned .pin > .container {
    width: 100%;
}

.home-page .products-section.pinned .track {
    overflow: visible;
}

.home-page .products-section.pinned .image {
    aspect-ratio: auto;
    height: min(315px, 34vh);
}

/* process */
.home-page .process-section {
    padding: clamp(72px, 10vw, 140px) 0;
}

.home-page .process-section .content {
    position: sticky;
    top: calc(var(--header-height) + 40px);
}

.home-page .process-section .text {
    max-width: 420px;
    margin-bottom: 28px;
    font-size: 1.125rem;
    color: var(--muted-text-color);
}

.home-page .process-section .steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-page .process-section .item {
    display: flex;
    gap: clamp(20px, 3vw, 40px);
    padding: clamp(28px, 4vw, 48px) 0;
    border-top: 1px solid var(--border-color);
}

.home-page .process-section .item:last-child {
    border-bottom: 1px solid var(--border-color);
}

.home-page .process-section .number {
    flex-shrink: 0;
    width: 64px;
    color: var(--accent-color);
    font-family: var(--spec-font);
    font-size: 2.5rem;
    font-style: italic;
    line-height: 1;
}

.home-page .process-section .item .text {
    margin: 0;
    font-size: 1rem;
}

/* projects */
.home-page .projects-section {
    padding: 0 0 clamp(72px, 10vw, 140px);
}

.home-page .projects-section .panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--third-color);
    color: var(--third-text-color);
}

.home-page .projects-section .content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(32px, 5vw, 72px);
}

.home-page .projects-section .text {
    max-width: 440px;
    margin-bottom: 28px;
    color: var(--muted-text-color);
}

.home-page .projects-section .image img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

@media (max-width: 991.98px) {
    .home-page .hero-section .scene {
        margin-left: 10px;
        margin-right: 10px;
    }

    .home-page .hero-section .spot {
        width: 30px;
        height: 30px;
    }

    .home-page .hero-section .spot svg {
        width: 16px;
        height: 16px;
    }

    .home-page .hero-section .hint {
        display: none;
    }

    .home-page .hero-section .popup,
    .home-page .hero-section .popup.reverse {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        width: auto;
        margin: 0 15px;
        transform: translateY(-24px);
    }

    .home-page .products-section .item {
        flex-basis: min(82vw, 400px);
    }

    .home-page .projects-section .panel {
        grid-template-columns: 1fr;
    }

    .home-page .projects-section .image {
        order: -1;
    }

    .home-page .projects-section .image img {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 767.98px) {
    .home-page .products-section .top {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-page .products-section .progress {
        display: none;
    }

    .home-page .process-section .content {
        position: static;
    }

    .home-page .process-section .number {
        width: 44px;
        font-size: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .hero-section .spot::before,
    .home-page .hero-section .spot::after,
    .home-page .hero-section .popup,
    .home-page .marquee-section .track {
        animation: none;
    }
}


/***** ABOUT *****/

/* visual */
.about-page .visual-section .frame {
    overflow: hidden;
    border-radius: var(--radius);
}

.about-page .visual-section .image {
    width: 100%;
    height: clamp(320px, 46vw, 640px);
    object-fit: cover;
}

/* content */
.about-page .content-section {
    padding: clamp(72px, 9vw, 124px) 0 clamp(40px, 5vw, 64px);
}

.about-page .content-section .text {
    max-width: 640px;
    font-size: 1.125rem;
    color: var(--muted-text-color);
}

.about-page .content-section .card {
    align-items: flex-start;
    padding: 36px;
    border: 0;
    border-radius: var(--radius);
    background: var(--third-color);
    color: var(--third-text-color);
}

.about-page .content-section .card .title {
    font-size: 2rem;
}

.about-page .content-section .card .text {
    margin-bottom: 24px;
    font-size: 1rem;
}

/* values */
.about-page .values-section {
    padding: clamp(40px, 5vw, 64px) 0 clamp(72px, 10vw, 140px);
}

.about-page .values-section .item {
    height: 100%;
    padding: 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.about-page .values-section .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 28px;
    border-radius: 50%;
    background: var(--main-color);
    color: var(--main-text-color);
}

.about-page .values-section .icon svg {
    width: 22px;
    height: 22px;
}

.about-page .values-section .text {
    margin: 0;
    color: var(--muted-text-color);
}


/***** SERVICES *****/

/* intro */
.service-page .intro-section .frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.service-page .intro-section .image {
    width: 100%;
    height: clamp(320px, 40vw, 580px);
    object-fit: cover;
}

.service-page .intro-section .image.left { object-position: 0% 50%; }
.service-page .intro-section .image.center { object-position: 45% 50%; }
.service-page .intro-section .image.right { object-position: 72% 50%; }
.service-page .intro-section .image.far-right { object-position: 100% 50%; }

.service-page .intro-section .caption {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--second-color) 85%, transparent);
    font-size: 0.75rem;
    font-weight: 500;
}

.service-page .intro-section .lead {
    margin-bottom: 32px;
}

/* details */
.service-page .details-section {
    padding: clamp(72px, 9vw, 124px) 0;
}

.service-page .details-section .text {
    max-width: 560px;
    font-size: 1.125rem;
    color: var(--muted-text-color);
}

.service-page .details-section .features {
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-page .details-section .item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.0625rem;
    font-weight: 500;
}

.service-page .details-section .item:first-child {
    border-top: 1px solid var(--border-color);
}

.service-page .details-section .icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--third-color);
    color: var(--accent-color);
}

.service-page .details-section .icon svg {
    width: 16px;
    height: 16px;
}

/* gallery */
.service-page .gallery-section {
    padding: 0 0 clamp(72px, 9vw, 124px);
}

.service-page .gallery-section .top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

.service-page .gallery-section .heading {
    margin-bottom: 0;
}

.service-page .gallery-section .text {
    max-width: 320px;
    margin: 0;
    color: var(--muted-text-color);
}

/* model */
.service-page .model-section {
    padding: 0 0 clamp(72px, 10vw, 140px);
}

.service-page .model-section .panel {
    padding: clamp(32px, 5vw, 72px);
    border-radius: var(--radius);
    background: var(--third-color);
    color: var(--third-text-color);
}

.service-page .model-section .text {
    max-width: 520px;
    margin-bottom: 28px;
    color: var(--muted-text-color);
}

.service-page .model-section .price {
    padding: 36px;
    border-radius: var(--radius-sm);
    background: var(--second-color);
    color: var(--second-text-color);
}

.service-page .model-section .label {
    display: block;
    margin-bottom: 12px;
    color: var(--accent-color);
    font-size: 0.875rem;
    font-weight: 600;
}

.service-page .model-section .value {
    display: block;
    margin-bottom: 16px;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.service-page .model-section .price .text {
    margin: 0;
}

@media (max-width: 767.98px) {
    .service-page .gallery-section .top {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-page .model-section .price {
        padding: 28px;
    }
}


/***** REALIZACIE *****/

.realizacie-page .categories-section {
    padding: 0 0 clamp(72px, 10vw, 140px);
}

.realizacie-page .categories-section .item {
    height: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.realizacie-page .categories-section .content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 12px 8px;
}

.realizacie-page .categories-section .title {
    margin: 0;
    font-size: 1.5rem;
}


/***** FAQ *****/

.faq-page .questions-section {
    padding: 0 0 clamp(72px, 10vw, 140px);
}

.faq-page .accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: var(--border-color);
    --bs-accordion-btn-focus-box-shadow: none;
}

.faq-page .accordion-item {
    border: 0;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
}

.faq-page .accordion-item:first-child {
    border-top: 1px solid var(--border-color);
}

.faq-page .accordion-button {
    padding: 26px 0;
    background: transparent;
    color: var(--second-text-color);
    font-size: clamp(1.125rem, 1.8vw, 1.375rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    box-shadow: none;
}

.faq-page .accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--second-text-color);
    box-shadow: none;
}

.faq-page .accordion-button:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.faq-page .accordion-body {
    max-width: 680px;
    padding: 0 0 28px;
    font-size: 1.0625rem;
    color: var(--muted-text-color);
}

.faq-page .questions-section .card {
    position: sticky;
    top: calc(var(--header-height) + 24px);
    align-items: flex-start;
    padding: 36px;
    border: 0;
    border-radius: var(--radius);
    background: var(--main-color);
    color: var(--main-text-color);
}

.faq-page .questions-section .card .title {
    font-size: 1.75rem;
}

.faq-page .questions-section .card .text {
    margin-bottom: 24px;
    color: color-mix(in srgb, var(--main-text-color) 75%, transparent);
}


/***** CONTACT *****/

.contact-page .info-section {
    padding: 0 0 clamp(72px, 10vw, 140px);
}

.contact-page .info-section .card {
    align-items: flex-start;
    height: 100%;
    padding: clamp(32px, 4vw, 56px);
    border: 0;
    border-radius: var(--radius);
    background: var(--third-color);
    color: var(--third-text-color);
}

.contact-page .info-section .card.dark {
    background: var(--main-color);
    color: var(--main-text-color);
}

.contact-page .info-section .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--accent-text-color);
}

.contact-page .info-section .icon svg {
    width: 22px;
    height: 22px;
}

.contact-page .info-section .label {
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.7;
}

.contact-page .info-section .value {
    margin-bottom: 16px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.045em;
    text-decoration: none;
}

.contact-page .info-section .text {
    max-width: 420px;
    margin-bottom: 28px;
    opacity: 0.75;
}


/***** FOOTER *****/

.footer {
    overflow: hidden;
    margin: 0 16px 16px;
    border-radius: var(--radius);
    background: var(--main-color);
    color: var(--main-text-color);
}

.footer .logo {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.footer .text {
    color: color-mix(in srgb, var(--main-text-color) 70%, transparent);
}

.footer .title {
    margin-bottom: 16px;
    color: color-mix(in srgb, var(--main-text-color) 55%, transparent);
    font-size: 0.875rem;
    font-weight: 500;
}

.footer .list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer .list li + li {
    margin-top: 10px;
}

.footer .list a {
    text-decoration: none;
}

.footer .list a:hover {
    color: var(--accent-color);
}

.footer a:focus-visible {
    outline: 2px solid var(--main-text-color);
    outline-offset: 3px;
}

/* cta */
.footer .cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px);
    border-bottom: 1px solid color-mix(in srgb, var(--main-text-color) 15%, transparent);
}

.footer .cta .heading {
    max-width: 900px;
    font-size: clamp(2.75rem, 6.4vw, 5.75rem);
}

.footer .cta .text {
    max-width: 520px;
    margin-bottom: 32px;
    font-size: 1.125rem;
}

/* main */
.footer .main {
    padding: 56px 0;
}

/* bottom */
.footer .bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding: 24px 0;
    border-top: 1px solid color-mix(in srgb, var(--main-text-color) 15%, transparent);
}

.footer .bottom .text {
    margin: 0;
    font-size: 0.875rem;
}

.footer .brand {
    margin: 0 0 -0.18em;
    color: color-mix(in srgb, var(--main-text-color) 10%, transparent);
    font-size: clamp(4rem, 17.5vw, 17rem);
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    user-select: none;
}

@media (max-width: 991.98px) {
    .footer {
        margin: 0 10px 10px;
    }
}
