/*
Theme Name: Vila Ljubač
Theme URI: https://digitam.media
Author: Digitam Media
Author URI: https://digitam-media.com
Description: Custom theme for the Ljubač villa sales website. Built for WPBakery Page Builder and Advanced Custom Fields, with a Bootstrap-style grid.
Version: 2.0
Requires PHP: 8.0
Text Domain: villaljubac
Tags: custom-menu, featured-images, translation-ready, one-column
*/

:root {
    --bg: #eef1ef;
    --paper: #f8f9f7;
    --ink: #0d2226;
    --ink-soft: #3c5155;
    --sea: #17414a;
    --aqua: #8fd3c8;
    --aqua-soft: #cfe8e2;
    --stone: #d8d2c4;
    --muted: #627375;
    --line: rgba(13, 34, 38, 0.14);
    --line-light: rgba(255, 255, 255, 0.16);
    --pad: clamp(1.25rem, 4vw, 4rem);
    --container: 1360px;
    --container-wide: 1600px;
    --gutter: var(--pad);
    --edge: max(var(--gutter), (100vw - var(--container)) / 2);
    --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
    --font: "Geist", "Helvetica Neue", Arial, sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    border-radius: 0;
    cursor: pointer;
}

ul {
    list-style: none;
}

::selection {
    background: var(--aqua);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--aqua);
    outline-offset: 3px;
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 500;
}

section > .container > .row + .row {
    margin-top: calc(var(--row-space, 0px) - var(--gy));
}

.label + .h2 {
    margin-top: 1.6rem;
}

.h2 {
    font-family: var(--display);
    font-size: clamp(2.6rem, 6vw, 6.4rem);
    font-weight: 500;
    font-stretch: 96%;
    line-height: 0.96;
    letter-spacing: -0.03em;
}

.label {
    display: inline-flex;
    align-items: baseline;
    gap: 0.9rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.label span {
    font-weight: 600;
    color: var(--ink);
}

.label-light {
    color: rgba(255, 255, 255, 0.6);
}

.label-light span {
    color: var(--aqua);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.05rem 1.4rem;
    font-size: 0.92rem;
    font-weight: 500;
    transition: background-color 0.4s, color 0.4s;
}

.btn i {
    font-style: normal;
    transition: transform 0.5s var(--ease);
}

.btn:hover i {
    transform: translate(3px, -3px);
}

.btn-dark {
    width: 100%;
    background: var(--ink);
    color: #fff;
}

.btn-dark:hover {
    background: var(--sea);
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1.2rem 0;
    color: #fff;
    transition: background-color 0.5s, color 0.5s, padding 0.5s var(--ease), box-shadow 0.5s;
}

.nav.is-solid {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    background: rgba(238, 241, 239, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--ink);
    box-shadow: 0 1px 0 var(--line);
}

.logo {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.logo span {
    font-weight: 300;
    color: var(--aqua);
}

.nav.is-solid .logo span {
    color: var(--sea);
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a {
    position: relative;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}

.nav-links a:hover {
    opacity: 1;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    padding: 0.75rem 1.2rem;
    border: 1px solid currentColor;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}

.nav-cta:hover {
    background: #fff;
    border-color: #fff;
    color: var(--ink);
}

.nav.is-solid .nav-cta:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.nav-burger {
    display: block;
    position: relative;
    width: 2.9rem;
    height: 2.9rem;
    border: 1px solid currentColor;
}

.nav-burger span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.1rem;
    height: 1px;
    background: currentColor;
    transition: transform 0.5s var(--ease);
}

.nav-burger span:first-child {
    transform: translate(-50%, -4px);
}

.nav-burger span:last-child {
    transform: translate(-50%, 4px);
}

.nav-burger[aria-expanded="true"] span:first-child {
    transform: translate(-50%, 0) rotate(45deg);
}

.nav-burger[aria-expanded="true"] span:last-child {
    transform: translate(-50%, 0) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem var(--pad) 3rem;
    background: var(--ink);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-menu li a {
    display: block;
}

.mobile-menu a {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line-light);
    font-family: var(--display);
    font-size: clamp(2.4rem, 11vw, 3.6rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: max(100svh, 560px);
    padding-top: 7rem;
    overflow: hidden;
    color: #fff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 115%;
    object-fit: cover;
    object-position: 50% 40%;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
            linear-gradient(180deg, rgba(6, 20, 24, 0.55) 0%, rgba(6, 20, 24, 0) 26%),
            linear-gradient(0deg, rgba(6, 20, 24, 0.82) 0%, rgba(6, 20, 24, 0.35) 40%, rgba(6, 20, 24, 0) 65%);
}

.hero-content {
    position: relative;
}

.hero-kicker {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.hero-title {
    margin: 1.4rem 0 2.2rem;
    font-size: clamp(3.4rem, min(13vw, 21vh), 15rem);
    font-weight: 500;
    font-stretch: 96%;
    line-height: 0.86;
    letter-spacing: -0.035em;
}

.hero-title .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.06em;
}

.hero-title .line span {
    display: block;
}

.hero-lead {
    max-width: 31rem;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}

.hero-price {
    display: grid;
    min-width: 300px;
    padding: 1.4rem;
    background: var(--paper);
    color: var(--ink);
}

.hero-price-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero-price strong {
    margin: 0.3rem 0 1.2rem;
    font-family: var(--display);
    font-size: 2.6rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
}

.hero-facts {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 2.4rem;
    padding: 1.4rem 0 1.8rem;
    border-top: 1px solid var(--line-light);
}

.hero-facts li {
    display: grid;
    gap: 0.1rem;
}

.hero-facts b {
    font-family: var(--display);
    font-size: 1.7rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-facts span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.68);
}

@media (max-height: 780px) and (min-width: 992px) {
    .hero-title {
        margin: 1rem 0 1.4rem;
    }

    .hero-price {
        min-width: 270px;
        padding: 1.1rem;
    }

    .hero-price strong {
        margin: 0.2rem 0 0.9rem;
        font-size: 2.1rem;
    }

    .hero-facts {
        margin-top: 1.6rem;
        padding: 1rem 0 1.2rem;
    }

    .hero-facts b {
        font-size: 1.4rem;
    }
}

.about {
    --row-space: 12vh;
    padding: 18vh 0 14vh;
}

.about > .container > .row:last-child {
    --row-space: 20vh;
}

.about-text {
    font-family: var(--display);
    font-size: clamp(1.6rem, 2.9vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.about-img,
.loc-media,
.specs-band {
    position: relative;
    overflow: hidden;
}

.about-img-main {
    aspect-ratio: 4 / 3;
}

.about-img img,
.loc-media img,
.specs-band img {
    position: absolute;
    left: 0;
    top: -10%;
    width: 100%;
    height: 120%;
    object-fit: cover;
}

.facts-title {
    margin-bottom: 2.6rem;
    font-family: var(--display);
    font-size: clamp(1.9rem, 2.8vw, 2.9rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.035em;
}

.facts {
    border-top: 1px solid var(--line);
}

.facts li {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--line);
}

.icon {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: var(--sea);
    stroke-width: 1.2;
    stroke-linecap: square;
    stroke-linejoin: miter;
}

.facts span {
    font-size: 0.92rem;
    color: var(--muted);
}

.facts b {
    font-family: var(--display);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-align: right;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
}

.stat {
    padding: 2rem 1.5rem 0 0;
}

.stat + .stat {
    padding-left: 1.5rem;
    border-left: 1px solid var(--line);
}

.stat b {
    display: block;
    font-family: var(--display);
    font-size: clamp(3rem, 6vw, 6.2rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.05em;
}

.stat p {
    margin-top: 0.7rem;
    font-size: 0.92rem;
    color: var(--muted);
}

.features {
    --row-space: 10vh;
    padding-top: 8vh;
}

.feature-media {
    position: sticky;
    top: 5.5rem;
    height: calc(100vh - 7rem);
    overflow: hidden;
    background: var(--ink);
}

.fm {
    position: absolute;
    inset: 0;
    clip-path: inset(100% 0% 0% 0%);
}

.fm:first-child {
    clip-path: inset(0% 0% 0% 0%);
}

.fm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fm-index {
    position: absolute;
    left: 2rem;
    bottom: 2rem;
    z-index: 2;
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.fm-index b {
    font-family: var(--display);
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.05em;
}

.fm-index span {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.8;
}

.feature {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 86vh;
    padding: 12vh 0;
    border-bottom: 1px solid var(--line);
    opacity: 0.22;
    transition: opacity 0.7s var(--ease);
}

.feature:last-child {
    border-bottom: 0;
}

.feature.is-active {
    opacity: 1;
}

.feature-img {
    display: none;
}

.feature-no {
    margin-bottom: 1.8rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sea);
}

.feature h3 {
    max-width: 12ch;
    font-size: clamp(2.4rem, 4vw, 4.4rem);
    font-weight: 500;
    font-stretch: 96%;
    line-height: 1;
    letter-spacing: -0.03em;
}

.feature p {
    max-width: 30rem;
    margin: 1.8rem 0 2.2rem;
    color: var(--ink-soft);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    max-width: 30rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    font-weight: 500;
}

.tags li:not(:last-child)::after {
    content: "/";
    margin: 0 0.7rem;
    opacity: 0.35;
}

.gallery {
    --row-space: 6vh;
    padding: 16vh 0 14vh;
    border-top: 1px solid var(--line);
    overflow-x: clip;
}

.gallery-nav {
    display: flex;
    align-items: center;
}

.gallery-count {
    margin-right: 1.4rem;
    font-size: 0.9rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.gallery-count b {
    color: var(--ink);
    font-weight: 600;
}

.sq-btn {
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    border: 1px solid var(--line);
    font-size: 1.1rem;
    transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}

.sq-btn + .sq-btn {
    border-left: 0;
}

.sq-btn:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.gallery-track {
    --bleed: var(--edge);
    display: flex;
    gap: 1rem;
    margin-inline: calc(var(--bleed) * -1);
    padding-inline: var(--bleed);
    overflow-x: auto;
    scroll-padding-inline: var(--bleed);
    scrollbar-width: none;
    cursor: grab;
    outline: none;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-track.is-drag {
    cursor: grabbing;
}

@media (pointer: coarse) {
    .gallery-track {
        scroll-snap-type: x mandatory;
    }
}

.gallery-track.is-drag img {
    pointer-events: none;
}

.g-item {
    position: relative;
    flex: none;
    height: 62vh;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    scroll-snap-align: start;
    background: var(--stone);
    user-select: none;
}

.g-wide {
    aspect-ratio: 3 / 2;
}

.g-tall {
    aspect-ratio: 3 / 4;
}

.g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
    user-select: none;
    -webkit-user-drag: none;
}

.g-item:hover img {
    transform: scale(1.05);
}

.g-item::after {
    content: "";
    position: absolute;
    inset: 55% 0 0;
    background: linear-gradient(0deg, rgba(6, 20, 24, 0.55), rgba(6, 20, 24, 0));
    pointer-events: none;
}

.g-item figcaption {
    position: absolute;
    left: 1.4rem;
    bottom: 1.2rem;
    z-index: 1;
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
}

.g-open {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: zoom-in;
}

.gallery-track.is-drag .g-open {
    cursor: grabbing;
}

.g-open-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    background: rgba(248, 249, 247, 0.92);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.4s, transform 0.5s var(--ease);
}

.g-open-icon .icon {
    width: 18px;
    height: 18px;
    stroke: var(--ink);
}

.g-item:hover .g-open-icon,
.g-open:focus-visible .g-open-icon {
    opacity: 1;
    transform: none;
}

.g-open:focus-visible {
    outline: 2px solid var(--aqua);
    outline-offset: -2px;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    color: #fff;
}

.lightbox[hidden] {
    display: none;
}

.lb-bg {
    position: absolute;
    inset: 0;
    background: #0a1a1d;
}

.lb-stage {
    position: relative;
    display: grid;
    grid-template: minmax(0, 1fr) / minmax(0, 1fr);
    place-items: center;
    min-height: 0;
    padding: 5.5rem var(--pad) 2rem;
    touch-action: pan-y;
}

.lb-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
}

.lb-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 0 var(--pad);
    padding: 1.2rem 0 1.6rem;
    border-top: 1px solid var(--line-light);
}

.lb-caption {
    display: flex;
    align-items: baseline;
    gap: 1.6rem;
    min-width: 0;
}

.lb-count {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-variant-numeric: tabular-nums;
}

.lb-count b {
    font-weight: 600;
    color: #fff;
}

.lb-title {
    font-family: var(--display);
    font-size: clamp(1.3rem, 2vw, 1.8rem);
    font-weight: 500;
    font-stretch: 96%;
    letter-spacing: -0.02em;
}

.lb-nav {
    display: flex;
}

.lightbox .sq-btn {
    border-color: var(--line-light);
    color: #fff;
}

.lightbox .sq-btn:hover {
    background: var(--aqua);
    border-color: var(--aqua);
    color: var(--ink);
}

.lb-close {
    position: absolute;
    top: 1.2rem;
    right: var(--pad);
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    border: 1px solid var(--line-light);
    transition: background-color 0.4s, border-color 0.4s;
}

.lb-close .icon {
    width: 20px;
    height: 20px;
    stroke: #fff;
    transition: stroke 0.4s, transform 0.6s var(--ease);
}

.lb-close:hover {
    background: var(--aqua);
    border-color: var(--aqua);
}

.lb-close:hover .icon {
    stroke: var(--ink);
    transform: rotate(90deg);
}

.gallery-bar {
    height: 1px;
    margin-top: 3rem;
    background: var(--line);
}

.gallery-bar i {
    display: block;
    height: 100%;
    background: var(--ink);
    transform: scaleX(0.1);
    transform-origin: left;
}

.specs {
    --row-space: 14vh;
    padding-top: 16vh;
    background: var(--ink);
    color: #e7efed;
    overflow: clip;
}

.specs .h2 {
    font-size: clamp(2.6rem, 5.2vw, 5.2rem);
}

.specs-intro {
    max-width: 24rem;
    margin: 2rem 0 3.4rem;
    color: rgba(231, 239, 237, 0.62);
}

.spec-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--line-light);
    border-bottom: 0;
}

.spec-tab {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    padding: 1.35rem 1.6rem;
    border-right: 1px solid var(--line-light);
    font-family: var(--display);
    font-size: clamp(1.05rem, 1.3vw, 1.3rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    text-align: left;
    color: rgba(255, 255, 255, 0.6);
    transition: background-color 0.4s, color 0.4s;
}

.spec-tab:last-child {
    border-right: 0;
}

.spec-tab span {
    font-family: var(--font);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--aqua);
}

.spec-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.spec-tab.is-active {
    background: #fff;
    color: var(--ink);
}

.spec-tab.is-active span {
    color: var(--sea);
}

.spec-panel {
    border-top: 1px solid var(--line-light);
    border-left: 1px solid var(--line-light);
}

.spec-panel[hidden] {
    display: none;
}

.spec-cell {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 16rem;
    padding: 2rem 1.8rem 2.2rem;
    border-right: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
    transition: background-color 0.5s;
}

.spec-cell:hover {
    background: rgba(255, 255, 255, 0.035);
}

.spec-cell .icon {
    width: 38px;
    height: 38px;
    margin-bottom: auto;
    stroke: var(--aqua);
}

.spec-cell h3 {
    margin-top: 3rem;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: #fff;
}

.spec-cell p {
    margin-top: 0.55rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(231, 239, 237, 0.6);
}

.specs-band {
    --bleed: var(--edge);
    height: 72vh;
    margin-inline: calc(var(--bleed) * -1);
}

.specs-band p {
    position: absolute;
    left: var(--bleed);
    bottom: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

.location {
    padding: 18vh 0;
}

.loc-media {
    aspect-ratio: 4 / 5;
}

.loc-text {
    max-width: 30rem;
    margin: 2rem 0 3rem;
    color: var(--muted);
}

.dist li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--line);
}

.dist li:first-child {
    border-top: 1px solid var(--line);
}

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

.dist b {
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: -0.04em;
}

.contact {
    border-top: 1px solid var(--line);
    background: linear-gradient(90deg, var(--bg) 50%, var(--ink) 50%);
}

.contact-info {
    padding: 16vh 5vw 14vh 0;
}

.contact-info .h2 {
    font-size: clamp(2.4rem, 4.6vw, 4.8rem);
}

.price-block {
    margin: 7vh 0 5vh;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
}

.price-label {
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-price {
    margin-top: 0.8rem;
    font-family: var(--display);
    font-size: clamp(3.4rem, 7vw, 7.6rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.05em;
}

.perks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.perks li {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    column-gap: 1rem;
    padding: 1.4rem 1.3rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.perks .icon {
    grid-row: span 2;
}

@media (max-width: 1199.98px) {
    .perks {
        grid-template-columns: minmax(0, 1fr);
    }
}

.perks b {
    font-family: var(--display);
    font-size: 1.12rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.perks span {
    margin-top: 0.25rem;
    font-size: 0.86rem;
    line-height: 1.4;
    color: var(--muted);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 3rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--ink);
    font-weight: 500;
    transition: color 0.3s, border-color 0.3s;
}

.contact-link .icon {
    width: 20px;
    height: 20px;
    transition: transform 0.5s var(--ease);
}

.contact-link:hover {
    color: var(--sea);
    border-color: var(--sea);
}

.contact-link:hover .icon {
    transform: translate(2px, -2px);
}

.contact-panel {
    padding: 16vh 0 14vh 5vw;
    color: #fff;
}

.form {
    max-width: 36rem;
}

.form-title {
    font-family: var(--display);
    font-size: clamp(2rem, 2.8vw, 2.8rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
}

.form-sub {
    margin: 0.9rem 0 3rem;
    font-size: 0.95rem;
    color: rgba(231, 239, 237, 0.6);
}

.visit {
    margin-bottom: 2.6rem;
    border: 0;
}

.visit legend,
.field-label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(231, 239, 237, 0.55);
}

.visit-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--line-light);
}

.visit label {
    position: relative;
    cursor: pointer;
}

.visit label + label {
    border-left: 1px solid var(--line-light);
}

.visit input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.visit-card {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    height: 100%;
    padding: 1.2rem 1.1rem 1.1rem;
    font-size: 0.92rem;
    font-weight: 500;
    transition: background-color 0.4s, color 0.4s;
}

.visit-card .icon {
    width: 26px;
    height: 26px;
    stroke: var(--aqua);
    transition: stroke 0.4s;
}

.visit label:hover .visit-card {
    background: rgba(255, 255, 255, 0.05);
}

.visit input:checked + .visit-card {
    background: #fff;
    color: var(--ink);
}

.visit input:checked + .visit-card .icon {
    stroke: var(--sea);
}

.visit input:focus-visible + .visit-card {
    outline: 2px solid var(--aqua);
    outline-offset: -2px;
}

.field {
    display: block;
    margin-bottom: 2rem;
}

.field-label {
    margin-bottom: 0.2rem;
}

.field-box {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    transition: border-color 0.4s;
}

.field-box-area {
    align-items: flex-start;
}

.field-box .icon {
    flex: none;
    width: 20px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.45);
    transition: stroke 0.4s;
}

.field-box-area .icon {
    margin-top: 0.95rem;
}

.field-box input,
.field-box textarea {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 0.85rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 1rem;
    outline: none;
    resize: none;
}

.field-box textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.field-box:focus-within {
    border-color: var(--aqua);
}

.field-box:focus-within .icon {
    stroke: var(--aqua);
}

.field.is-error .field-box {
    border-color: #e3735f;
}

.field.is-error .field-box .icon {
    stroke: #e3735f;
}

.btn-aqua {
    width: 100%;
    margin-top: 0.6rem;
    padding: 1.2rem 1.4rem;
    background: var(--aqua);
    color: var(--ink);
}

.btn-aqua:hover {
    background: #fff;
}

.form-status {
    min-height: 1.4rem;
    margin-top: 1.2rem;
    font-size: 0.92rem;
    color: var(--aqua);
}

.form-status.is-error {
    color: #e3735f;
}

.form-note {
    font-size: 0.8rem;
    color: rgba(231, 239, 237, 0.4);
}

.footer {
    padding-top: 10vh;
    background: var(--sea);
    color: #fff;
    overflow: hidden;
}

.footer .icon {
    width: 18px;
    height: 18px;
    stroke: var(--aqua);
}

.footer-lead {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 2.4rem;
}

@media (min-width: 992px) {
    .footer-links {
        justify-content: flex-end;
    }
}

.footer-links a,
.footer-bottom a {
    transition: color 0.3s;
}

.footer-links a:hover,
.footer-bottom a:hover {
    color: var(--aqua);
}

.footer-brand {
    margin-top: 10vh;
    container-type: inline-size;
}

.footer-mark {
    display: flex;
    justify-content: space-between;
    font-family: var(--display);
    font-size: 23.5cqi;
    font-weight: 500;
    font-stretch: 96%;
    line-height: 0.8;
    letter-spacing: -0.04em;
    white-space: nowrap;
    overflow: hidden;
}

.mark-word {
    display: inline-flex;
    padding-bottom: 0.06em;
}

.mark-light {
    font-weight: 300;
    color: var(--aqua);
}

.mark-char {
    display: inline-block;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.4rem 0;
    border-top: 1px solid var(--line-light);
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.6);
}

.to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: #fff;
    font-weight: 500;
}

.to-top-box {
    display: grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    border: 1px solid var(--line-light);
    transition: background-color 0.3s, border-color 0.3s;
}

.to-top .icon {
    transition: transform 0.5s var(--ease), stroke 0.3s;
}

.to-top:hover .to-top-box {
    background: var(--aqua);
    border-color: var(--aqua);
}

.to-top:hover .icon {
    stroke: var(--ink);
    transform: translateY(-3px);
}

@media (max-width: 991.98px) {
    .hero-price {
        min-width: 0;
    }

    .hero-facts {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 1.6rem;
    }

    .about {
        --row-space: 7vh;
        padding: 12vh 0 10vh;
    }

    .about > .container > .row:last-child {
        --row-space: 10vh;
    }

    .facts-title {
        margin-bottom: 1.8rem;
    }

    .facts li {
        grid-template-columns: 2.2rem minmax(0, 1fr) auto;
        gap: 0.8rem;
    }

    .facts b {
        font-size: 1rem;
    }

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

    .stat,
    .stat + .stat {
        padding: 1.6rem 1rem 1.6rem 0;
        border-left: 0;
        border-bottom: 1px solid var(--line);
    }

    .stat:nth-child(even) {
        padding-left: 1rem;
        border-left: 1px solid var(--line);
    }

    .features {
        --row-space: 4vh;
    }

    .feature {
        min-height: 0;
        padding: 6vh 0 8vh;
        opacity: 1;
    }

    .feature-img {
        display: block;
        aspect-ratio: 4 / 3;
        margin-bottom: 2rem;
        overflow: hidden;
    }

    .feature-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .g-item {
        height: 50vh;
    }

    .specs {
        --row-space: 10vh;
        padding-top: 12vh;
    }

    .specs-intro {
        margin-bottom: 0;
    }

    .spec-tabs {
        grid-template-columns: minmax(0, 1fr);
        border-bottom: 0;
    }

    .spec-tab {
        padding: 1rem 1.1rem;
        border-right: 0;
        border-bottom: 1px solid var(--line-light);
        font-size: 1.05rem;
    }

    .spec-tab:last-child {
        border-bottom: 0;
    }

    .spec-cell {
        min-height: 12.5rem;
        padding: 1.4rem 1.1rem 1.6rem;
    }

    .spec-cell .icon {
        width: 32px;
        height: 32px;
    }

    .spec-cell h3 {
        margin-top: 2rem;
        font-size: 1.12rem;
    }

    .spec-cell p {
        font-size: 0.82rem;
    }

    .specs-band {
        height: 52vh;
    }

    .location {
        padding: 12vh 0;
    }

    .loc-media {
        aspect-ratio: 4 / 3;
    }

    .contact {
        background: var(--bg);
    }

    .contact-info {
        padding: 11vh 0 10vh;
    }

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

    .contact-panel {
        --bleed: var(--edge);
        margin-inline: calc(var(--bleed) * -1);
        padding: 10vh var(--bleed);
        background: var(--ink);
    }

    .visit-card {
        gap: 1.2rem;
        padding: 1rem 0.8rem;
        font-size: 0.84rem;
    }

    .footer {
        padding-top: 8vh;
    }

    .footer-links {
        gap: 0.7rem 1.6rem;
    }

    .footer-brand {
        margin-top: 7vh;
    }

    .footer-bottom {
        flex-wrap: wrap;
        gap: 0.8rem 1.5rem;
    }

    .footer-bottom p {
        flex-basis: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

    .fm {
        clip-path: none;
        opacity: 0;
    }

    .fm.is-active,
    .fm:first-child {
        opacity: 1;
    }
}
/* ── 404 page ───────────────────────────────────────────── */
.not-found {
    display: flex;
    align-items: center;
    min-height: 100svh;
    padding: 6.5rem 0 10vh;
    background: var(--ink);
    color: #e7efed;
    overflow: hidden;
}

.not-found-code {
    font-family: var(--display);
    font-size: clamp(9rem, 30vw, 26rem);
    font-weight: 500;
    font-stretch: 96%;
    line-height: 0.8;
    letter-spacing: -0.06em;
    color: transparent;
    -webkit-text-stroke: 1px var(--aqua);
    user-select: none;
    animation: not-found-in 1.2s var(--ease) both;
}

.not-found .h2 {
    font-size: clamp(2.4rem, 4.4vw, 4.4rem);
    color: #fff;
}

.not-found-text {
    max-width: 26rem;
    margin: 1.6rem 0 2.4rem;
    color: rgba(231, 239, 237, 0.62);
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem 2rem;
}

.not-found .btn-aqua {
    width: auto;
    margin: 0;
}

.not-found-link {
    padding-bottom: 2px;
    border-bottom: 1px solid currentColor;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.3s;
}

.not-found-link:hover {
    color: var(--aqua);
}

.not-found-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.6rem;
    margin-top: 3.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line-light);
    font-size: 0.88rem;
}

.not-found-nav > span {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(231, 239, 237, 0.55);
}

.not-found-nav a {
    transition: color 0.3s;
}

.not-found-nav a:hover {
    color: var(--aqua);
}

@keyframes not-found-in {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 991px) {
    .not-found {
        align-items: flex-start;
        padding-top: 6rem;
    }

    .not-found-code {
        font-size: clamp(7rem, 38vw, 14rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .not-found-code {
        animation: none;
    }
}

/* ── Search page ────────────────────────────────────────── */
.search-page {
    padding: 6.5rem 0 8vh;
    min-height: 60vh;
}

.search-page .h2 {
    margin-top: 1.6rem;
}

.search-page .h2 em {
    font-style: normal;
    color: var(--sea);
}

.search-form {
    margin: 2rem 0 0;
}

.search-form-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.search-form-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--ink);
    transition: border-color 0.4s;
}

.search-form-box .icon {
    flex: none;
    width: 24px;
    height: 24px;
    stroke: var(--ink-soft);
    transition: stroke 0.4s;
}

.search-form-box input {
    flex: 1;
    min-width: 0;
    padding: 1.2rem 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-family: var(--display);
    font-size: clamp(1.3rem, 2.4vw, 2rem);
    letter-spacing: -0.02em;
    outline: none;
}

.search-form-box input::placeholder {
    color: var(--muted);
}

.search-form-box .btn {
    width: auto;
    flex: none;
    margin-bottom: 0.6rem;
}

.search-form-box:focus-within {
    border-color: var(--sea);
}

.search-form-box:focus-within .icon {
    stroke: var(--sea);
}

.search-count {
    margin: 2.4rem 0 0.8rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.search-results {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.search-results li {
    border-bottom: 1px solid var(--line);
}

.search-result {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    gap: 1.2rem;
    align-items: start;
    padding: 1.8rem 0;
    transition: padding 0.5s var(--ease);
}

.search-result:hover {
    padding-left: 0.8rem;
}

.search-result-no {
    padding-top: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--sea);
}

.search-result-body {
    display: grid;
    gap: 0.5rem;
}

.search-result-type {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.search-result h2 {
    font-family: var(--display);
    font-size: clamp(1.5rem, 2.4vw, 2.2rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.search-result-text {
    max-width: 38rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--ink-soft);
}

.search-result mark {
    padding: 0 0.1em;
    background: var(--aqua-soft);
    color: var(--ink);
}

.search-result-arrow {
    font-style: normal;
    font-size: 1.4rem;
    color: var(--sea);
    transition: transform 0.5s var(--ease);
}

.search-result:hover .search-result-arrow {
    transform: translate(3px, -3px);
}

.search-pagination {
    margin-top: 3rem;
}

.search-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.search-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 0.9rem;
    border: 1px solid var(--line);
    font-size: 0.88rem;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.search-pagination a.page-numbers:hover {
    border-color: var(--ink);
}

.search-pagination .page-numbers.current {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.search-empty {
    margin-top: 3.4rem;
}

.search-empty h2 {
    font-family: var(--display);
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    font-weight: 500;
    letter-spacing: -0.03em;
}

.search-empty p {
    margin-top: 0.8rem;
    color: var(--ink-soft);
}

.search-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.6rem;
    margin-top: 3rem;
    font-size: 0.92rem;
}

.search-links > span {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.search-links a:hover {
    color: var(--sea);
}

@media (max-width: 575px) {
    .search-form-box .btn {
        padding: 0.8rem 1rem;
    }

    .search-result {
        grid-template-columns: 2.2rem minmax(0, 1fr);
    }

    .search-result-arrow {
        display: none;
    }
}

/* ── Archive page ───────────────────────────────────────── */
.archive-page {
    padding: 6.5rem 0 8vh;
    min-height: 60vh;
}

.archive-page .h2 {
    margin-top: 1.6rem;
}

.archive-description {
    color: var(--ink-soft);
}

.archive-description p + p {
    margin-top: 0.8rem;
}

.archive-grid {
    margin-top: 2.4rem;
}

.archive-card-link {
    display: grid;
    gap: 0.9rem;
    align-content: start;
    height: 100%;
}

.archive-card-img {
    display: block;
    aspect-ratio: 4 / 3;
    margin-bottom: 0.6rem;
    overflow: hidden;
    background: var(--aqua-soft);
}

.archive-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.archive-card-link:hover .archive-card-img img {
    transform: scale(1.05);
}

.archive-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.archive-card-meta span {
    color: var(--sea);
}

.archive-card h2 {
    font-family: var(--display);
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.archive-card-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--ink-soft);
}

.archive-card-more {
    display: inline-flex;
    gap: 0.5rem;
    margin-top: 0.4rem;
    padding-bottom: 2px;
    border-bottom: 1px solid currentColor;
    width: fit-content;
    font-size: 0.88rem;
    font-weight: 500;
}

.archive-card-more i {
    font-style: normal;
    transition: transform 0.5s var(--ease);
}

.archive-card-link:hover .archive-card-more i {
    transform: translate(3px, -3px);
}

/* ── Single post ────────────────────────────────────────── */
.single-post {
    padding: 6.5rem 0 8vh;
}

.single-post .h2 {
    margin-top: 1.6rem;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.4rem;
    margin-top: 1.2rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.single-post-img {
    margin: 2.2rem 0 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--aqua-soft);
}

.single-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entry-content {
    margin-top: 2.4rem;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--ink-soft);
}

.entry-content > * + * {
    margin-top: 1.4rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2.6rem;
    font-family: var(--display);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.entry-content h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.entry-content h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.entry-content h4 { font-size: 1.2rem; }

.entry-content a {
    color: var(--sea);
    border-bottom: 1px solid currentColor;
    transition: color 0.3s;
}

.entry-content a:hover {
    color: var(--ink);
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.4rem;
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content li + li {
    margin-top: 0.4rem;
}

.entry-content blockquote {
    padding-left: 1.6rem;
    border-left: 2px solid var(--aqua);
    font-family: var(--display);
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.entry-content img {
    width: 100%;
    height: auto;
}

.entry-content figcaption {
    margin-top: 0.6rem;
    font-size: 0.84rem;
    color: var(--muted);
}

.single-post-pages {
    margin-top: 2rem;
    font-size: 0.9rem;
}

.single-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
    padding: 0;
    list-style: none;
}

.single-post-tags a {
    display: block;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--line);
    font-size: 0.82rem;
    transition: border-color 0.3s, background-color 0.3s;
}

.single-post-tags a:hover {
    border-color: var(--ink);
}

.single-post-nav {
    margin-top: 6rem;
    padding-top: 2.4rem;
    border-top: 1px solid var(--line);
}

.single-post-nav a {
    display: grid;
    gap: 0.5rem;
    font-family: var(--display);
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    transition: color 0.3s;
}

.single-post-nav a:hover {
    color: var(--sea);
}

.single-post-nav span {
    font-family: var(--font);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.single-post .not-found-link {
    display: inline-block;
    margin-top: 4rem;
}

@media (max-width: 767px) {
    .single-post-nav .col-md-6 + .col-md-6 {
        margin-top: 1.8rem;
    }
}


.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.lang-switch a {
    position: relative;
    padding: 0.4rem 0.45rem;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    opacity: 0.55;
    transition: opacity 0.3s;
}

.lang-switch a::after {
    content: "";
    position: absolute;
    left: 0.45rem;
    right: 0.45rem;
    bottom: 0.2rem;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}

.lang-switch a:hover,
.lang-switch a[aria-current="true"] {
    opacity: 1;
}

.lang-switch a[aria-current="true"]::after {
    transform: scaleX(1);
}

.mobile-menu .lang-switch {
    gap: 0.6rem;
    margin-top: 2.4rem;
}

.mobile-menu .lang-switch a {
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line-light);
    font-size: 0.9rem;
}

.mobile-menu .lang-switch a::after {
    display: none;
}

.mobile-menu .lang-switch a[aria-current="true"] {
    background: #fff;
    border-color: #fff;
    color: var(--ink);
}

.plan,
.povrsine {
    --row-space: 7vh;
    padding-top: 18vh;
}

.plan-text {
    max-width: 28rem;
    color: var(--muted);
}

.plan-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background: var(--paper);
    border: 1px solid var(--line);
}

@media (min-width: 1400px) {
    .plan-card {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    }
}

.plan-media {
    position: relative;
    min-height: 22rem;
    overflow: hidden;
    background: var(--stone);
}

.plan-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
}

.plan-panel {
    padding: 2.2rem 2.2rem 2rem;
}

@media (max-width: 1399.98px) {
    .plan-media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
}

@media (min-width: 768px) and (max-width: 1399.98px) {
    .plan-panel {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 3.2rem;
        align-content: start;
    }

    .plan-kicker {
        grid-column: 1 / -1;
    }

    .plan-group:first-of-type {
        grid-row: span 2;
    }

    .plan-total {
        align-self: end;
    }
}

@media (max-width: 767.98px) {
    .plan-media {
        aspect-ratio: 4 / 3;
    }
}

.plan-kicker {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sea);
}

.plan-title {
    margin: 1.8rem 0 0.7rem;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.plan-kicker + .plan-title {
    margin-top: 1.1rem;
}

.plan-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    font-variant-numeric: tabular-nums;
}

.plan-table th,
.plan-table td {
    padding: 0.48rem 0;
    border-bottom: 1px solid var(--line);
    font-weight: 400;
    text-align: right;
}

.plan-table th:first-child {
    padding-right: 0.8rem;
    text-align: left;
}

.plan-table td + td,
.plan-table th + th {
    padding-left: 0.8rem;
}

.plan-table thead th {
    padding-top: 0;
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.plan-table tbody td {
    color: var(--ink-soft);
}

.plan-table tfoot th,
.plan-table tfoot td {
    border-bottom: 0;
    font-weight: 600;
    color: var(--ink);
}

.plan-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.6rem;
    padding: 1rem 1.3rem;
    background: var(--sea);
    color: #fff;
}

.plan-total span {
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--aqua-soft);
}

.plan-total b {
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.plan-facts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.plan-facts li {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    column-gap: 0.9rem;
    align-items: center;
    padding: 1.6rem 1.4rem;
}

.plan-facts li + li {
    border-left: 1px solid var(--line);
}

.plan-facts li:first-child {
    padding-left: 0;
}

.plan-facts .icon {
    grid-row: span 2;
}

.plan-facts b {
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.plan-facts span {
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--muted);
}

@media (max-width: 1199.98px) {
    .plan-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .plan-facts li:nth-child(n) {
        padding-left: 1.4rem;
        border-top: 0;
        border-left: 1px solid var(--line);
    }

    .plan-facts li:nth-child(3n + 1) {
        padding-left: 0;
        border-left: 0;
    }

    .plan-facts li:nth-child(n + 4) {
        border-top: 1px solid var(--line);
    }
}

/* Plan facts: 2 columns */
@media (max-width: 767.98px) {
    .plan-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .plan-facts li:nth-child(n) {
        padding: 1.3rem 1rem;
        border-top: 0;
        border-left: 1px solid var(--line);
    }

    .plan-facts li:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .plan-facts li:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .plan-facts li:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .plan-facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .plan-facts li:nth-child(n) {
        padding: 1.1rem 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .plan-facts li:first-child {
        border-top: 0;
    }
}

.wpcf7 form .wpcf7-response-output {
    display: none;
    margin: 1.2rem 0 0;
    padding: 0.9rem 1.1rem;
    border: 0;
    border-left: 2px solid var(--aqua);
    background: rgba(143, 211, 200, 0.08);
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--aqua);
}

.wpcf7 form:not(.init) .wpcf7-response-output {
    display: block;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
    border-left-color: #e3735f;
    background: rgba(227, 115, 95, 0.1);
    color: #e3735f;
}

.wpcf7 form.submitting .wpcf7-response-output {
    display: none;
}