/* ========================================
   VINOGRAD SECTION
======================================== */

.vineyard-section {
    background: #efe6d5;
    color: #171411;

    padding:
        140px 0 120px;
}

.vineyard-section__inner {
    width: min(1320px, calc(100% - 80px));
    margin: 0 auto;
}

.vineyard-section__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;

    margin-bottom: 70px;
}

.vineyard-section__chapter {
    display: flex;
    align-items: center;
    gap: 14px;
}

.vineyard-section__section-label {
    width: 100%;

    text-align: center;

    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 1.6vw, 1.7rem);
    font-weight: 400;

    letter-spacing: 0.10em;
    text-transform: uppercase;

    color: rgba(23, 20, 17, 0.58);

    margin-bottom: 72px;

    position: relative;
}

.vineyard-section__section-label::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -14px;

    width: 38px;
    height: 1px;

    background: rgba(23, 20, 17, 0.28);

    transform: translateX(-50%);
}

/* MAIN */

.vineyard-section__hero {
    display: grid;
    grid-template-columns: 1fr 0.95fr;
    gap: 70px;
    align-items: center;
}

.vineyard-section__content {
    max-width: 620px;
}

.vineyard-section__title {
    font-family: var(--font-serif);
    font-size: clamp(3.8rem, 6.4vw, 7rem);
    font-weight: 400;
    line-height: 0.94;
    letter-spacing: -0.045em;
}

.vineyard-section__lead {
    margin-top: 28px;
    max-width: 540px;

    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.74;
}

.vineyard-section__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;

    margin-top: 34px;
}

.vineyard-section__button {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    position: relative;
    overflow: hidden;

    min-width: 160px;
    padding: 14px 22px;

    border-radius: 999px;

    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        background 0.28s ease,
        color 0.28s ease,
        border-color 0.28s ease;
}

.vineyard-section__button::before {
    content: "";

    position: absolute;
    top: -70%;
    left: -45%;

    width: 38%;
    height: 240%;

    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.32),
            transparent);

    transform:
        rotate(18deg) translateX(-240%);

    transition:
        transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);

    pointer-events: none;

    z-index: 1;
}

.vineyard-section__button--primary {
    background: #4b171d;
    color: #efe6d5;

    border: 1px solid #4b171d;

    box-shadow:
        0 10px 24px rgba(75, 23, 29, 0.16);
}

.vineyard-section__button--primary:hover {
    background: #5a1d25;

    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(75, 23, 29, 0.22);
}

.vineyard-section__button--secondary {
    background: rgba(255, 255, 255, 0.20);

    color: #171411;

    border: 1px solid rgba(23, 20, 17, 0.22);
}

.vineyard-section__button--secondary:hover {
    background: rgba(255, 255, 255, 0.42);

    border-color: rgba(23, 20, 17, 0.34);

    transform: translateY(-2px);
}

.vineyard-section__button:hover::before {
    transform:
        rotate(18deg) translateX(520%);
}

.vineyard-section__button--secondary::before {
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.55),
            transparent);
}

.vineyard-section__button:active {
    transform: translateY(0);
}

.vineyard-section__media {
    margin: 0;
}

.vineyard-section__image-frame {
    position: relative;

    width: 100%;

    border-radius: 8px;
    overflow: hidden;

    background: transparent;

    transform: translateZ(0);

    transition:
        transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.95s ease;
}

.vineyard-section__image-frame:hover {
    transform:
        translateY(-4px) scale(1.003) translateZ(0);

    box-shadow:
        0 16px 34px rgba(23, 20, 17, 0.11);
}

.vineyard-section__image {
    width: 100%;
    height: clamp(420px, 34vw, 560px);

    display: block;

    object-fit: cover;
    object-position: center;

    transform: none;
}

.vineyard-section__caption {
    display: block;

    margin-top: 14px;

    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    opacity: 0.56;
}

.vineyard-section__story {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1fr);
    gap: 90px;

    width: min(1080px, 100%);
    margin: 110px auto 0;
}

.vineyard-section__story-lead p {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 2.5vw, 3rem);
    line-height: 1.24;
    letter-spacing: -0.02em;
}

.vineyard-section__story-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.vineyard-section__story-text p {
    font-size: 0.96rem;
    line-height: 1.82;
    opacity: 0.74;
}

.vineyard-section__section-label {
    display: flex;
    justify-content: center;

    margin-bottom: 64px;
}

.vineyard-section__section-label span {
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;

    opacity: 0.62;

    position: relative;
}

.vineyard-section__section-label span::after {
    content: "";

    position: absolute;
    left: 50%;
    bottom: -14px;

    width: 34px;
    height: 1px;

    background: rgba(23, 20, 17, 0.35);

    transform: translateX(-50%);
}


/* FOOTER TAGS */

.vineyard-section__footer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    margin-top: 90px;

    border-top: 1px solid rgba(23, 20, 17, 0.16);
    border-bottom: 1px solid rgba(23, 20, 17, 0.16);
}

.vineyard-section__footer span {
    padding: 18px 12px;

    text-align: center;

    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    opacity: 0.65;
}

.vineyard-section__footer span:not(:last-child) {
    border-right: 1px solid rgba(23, 20, 17, 0.14);
}

/* ========================================
   VINA
======================================== */

.wines-section {
    position: relative;

    background: #341015;
    color: #efe6d5;

    padding:
        clamp(120px, 13vw, 185px) 0 clamp(120px, 13vw, 180px);

    overflow: hidden;
}

.wines-section__inner {
    width: min(1320px, calc(100% - 80px));
    margin: 0 auto;
}


/* LABEL */

.wines-section__section-label {
    position: relative;

    width: 100%;

    margin-bottom: 85px;

    text-align: center;

    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 1.6vw, 1.7rem);
    font-weight: 400;

    letter-spacing: 0.1em;
    text-transform: uppercase;

    color: rgba(239, 230, 213, 0.62);
}

.wines-section__section-label::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -14px;

    width: 38px;
    height: 1px;

    background: rgba(239, 230, 213, 0.28);

    transform: translateX(-50%);
}


/* HEADER */

.wines-section__header {
    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    gap: 64px;

    margin-bottom: clamp(80px, 9vw, 120px);
}

.wines-section__title {
    font-family: var(--font-serif);

    font-size: clamp(3.8rem, 6.5vw, 7rem);
    font-weight: 400;

    line-height: 0.95;
    letter-spacing: -0.045em;

    max-width: 900px;
}

.wines-section__intro {
    max-width: 560px;
    padding: 0;

    font-size: 0.98rem;
    line-height: 1.8;

    color: rgba(239, 230, 213, 0.68);
}


/* ========================================
   WINE GRID
======================================== */

.wines-section__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: clamp(40px, 5vw, 80px);
}


/* INDIVIDUAL WINE */

.wine-card {
    position: relative;

    text-align: center;
}

.wine-card__visual {
    position: relative;

    height: clamp(460px, 40vw, 600px);

    display: flex;
    align-items: flex-end;
    justify-content: center;

    margin-bottom: 18px;
}

.wine-card__visual::before {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 10%;

    width: 62%;
    height: 58%;

    background: radial-gradient(ellipse at center,
            rgba(239, 230, 213, 0.10) 0%,
            rgba(239, 230, 213, 0.055) 28%,
            rgba(239, 230, 213, 0.018) 52%,
            transparent 72%);

    transform: translateX(-50%) scale(0.96);

    opacity: 0.72;

    filter: blur(8px);

    pointer-events: none;

    transition:
        opacity 0.8s ease,
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.wine-card__image {
    position: relative;
    z-index: 2;

    width: auto;
    max-width: 82%;
    height: 100%;

    object-fit: contain;

    transition:
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);

    filter:
        drop-shadow(0 24px 22px rgba(0, 0, 0, 0.20));
}

.wine-card:hover .wine-card__image {
    transform: translateY(-5px);
}

.wine-card:hover .wine-card__visual::before {
    opacity: 1;

    transform:
        translateX(-50%) scale(1.02);
}


/* ========================================
   SEKCIJA ZA VINA
======================================== */

.wine-card__info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wine-card__year {
    margin-bottom: 10px;

    font-size: 0.6rem;
    letter-spacing: 0.18em;

    color: rgba(239, 230, 213, 0.46);
}

.wine-card__name {
    font-family: var(--font-serif);

    font-size: clamp(1.8rem, 2.4vw, 2.8rem);
    font-weight: 400;

    line-height: 1.1;
}

.wine-card__type {
    margin-top: 8px;

    font-size: 0.78rem;
    letter-spacing: 0.06em;

    color: rgba(239, 230, 213, 0.54);
}

.wine-card__link {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-top: 24px;

    padding-bottom: 5px;

    font-size: 0.66rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;

    color: rgba(239, 230, 213, 0.78);

    transition:
        color 0.3s ease,
        gap 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.wine-card__link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 1px;

    background: rgba(239, 230, 213, 0.38);

    transform-origin: left;
    transform: scaleX(0.3);

    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.wine-card__link:hover {
    color: #efe6d5;
    gap: 14px;
}

.wine-card__link:hover::after {
    transform: scaleX(1);
}

/* ========================================
   WINE DETAIL
======================================== */

body.wine-detail-lock {
    overflow: hidden;
}

body.wine-detail-lock .back-to-top {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.wine-detail {
    display: none;

    position: relative;

    min-height: 760px;

    padding-top: 110px;
}

/* BACK BUTTON */

.wine-detail__back {
    position: relative;
    z-index: 20;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-top: 34px;
    margin-bottom: 28px;

    padding: 12px 18px;

    border: 1px solid rgba(239, 230, 213, 0.18);
    border-radius: 999px;

    background: rgba(239, 230, 213, 0.06);

    color: rgba(239, 230, 213, 0.78);

    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    cursor: pointer;
    pointer-events: auto;

    transition:
        background 0.35s ease,
        color 0.35s ease,
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        gap 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.wine-detail__back:hover {
    background: rgba(239, 230, 213, 0.12);

    color: #efe6d5;

    transform: translateX(-3px);

    gap: 16px;
}


/* ========================================
   LAYOUT
======================================== */

.wine-detail__layout {
    display: grid;

    grid-template-columns:
        minmax(380px, 0.9fr) minmax(460px, 1fr);

    align-items: center;

    gap: clamp(80px, 10vw, 150px);

    min-height: 640px;
}


/* ========================================
   BOTTLE
======================================== */

.wine-detail__visual {
    position: relative;

    height: 640px;

    display: flex;

    align-items: center;
    justify-content: center;
}


/* GLOW IZA */

.wine-detail__glow {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 72%;
    aspect-ratio: 1;

    transform:
        translate(-50%, -50%);

    background: radial-gradient(circle,
            rgba(239, 230, 213, 0.10) 0%,
            rgba(239, 230, 213, 0.045) 35%,
            transparent 70%);

    filter: blur(10px);

    pointer-events: none;
}


.wine-detail__image {
    position: relative;

    z-index: 2;

    width: auto;
    height: 95%;

    object-fit: contain;

    filter:
        drop-shadow(0 30px 28px rgba(0, 0, 0, 0.22));
}

.wine-detail__layout {
    position: relative;
    z-index: 1;
}

.wine-detail__glow,
.wine-detail__image {
    pointer-events: none;
}

/* ========================================
   CONTENT
======================================== */

.wine-detail__content {
    max-width: 620px;
}


.wine-detail__year {
    display: block;

    margin-bottom: 13px;

    font-size: 0.6rem;

    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: rgba(239, 230, 213, 0.45);
}


.wine-detail__name {
    font-family: var(--font-serif);

    font-size: clamp(4rem, 6vw, 6.8rem);
    font-weight: 400;

    line-height: 0.9;
    letter-spacing: -0.045em;
}


.wine-detail__type {
    margin-top: 15px;

    font-size: 0.78rem;

    letter-spacing: 0.08em;

    color: rgba(239, 230, 213, 0.55);
}


/* STORY */

.wine-detail__story {
    max-width: 560px;

    margin-top: 38px;
}

.wine-detail__story p {
    font-size: 0.96rem;
    line-height: 1.85;

    color: rgba(239, 230, 213, 0.72);
}


/* ========================================
   SPECIFIKACIJE VINA
======================================== */

.wine-detail__specs {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    margin-top: 42px;

    border-top:
        1px solid rgba(239, 230, 213, 0.16);

    border-bottom:
        1px solid rgba(239, 230, 213, 0.16);
}


.wine-spec {
    padding: 20px 0;
}


.wine-spec:nth-child(odd) {
    padding-right: 30px;

    border-right:
        1px solid rgba(239, 230, 213, 0.12);
}


.wine-spec:nth-child(even) {
    padding-left: 30px;
}


.wine-spec:nth-child(-n + 2) {
    border-bottom:
        1px solid rgba(239, 230, 213, 0.12);
}


.wine-spec__label {
    display: block;

    margin-bottom: 7px;

    font-size: 0.55rem;

    letter-spacing: 0.17em;
    text-transform: uppercase;

    color: rgba(239, 230, 213, 0.42);
}


.wine-spec__value {
    font-family: var(--font-serif);

    font-size: 1.15rem;

    color: rgba(239, 230, 213, 0.90);
}


/* ========================================
   NOTES
======================================== */

.wine-detail__notes {
    margin-top: 30px;
}


.wine-detail__notes-label {
    display: block;

    margin-bottom: 14px;

    font-size: 0.55rem;

    letter-spacing: 0.17em;
    text-transform: uppercase;

    color: rgba(239, 230, 213, 0.42);
}


.wine-detail__notes-list {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;
}


.wine-detail__notes-list span {
    padding:
        8px 13px;

    border:
        1px solid rgba(239, 230, 213, 0.16);

    border-radius: 999px;

    font-size: 0.68rem;

    color: rgba(239, 230, 213, 0.70);
}


/* ========================================
   CTA
======================================== */

.wine-detail__cta {
    position: relative;

    overflow: hidden;

    display: inline-flex;

    align-items: center;

    gap: 15px;

    margin-top: 36px;

    padding:
        15px 24px;

    border-radius: 999px;

    background: #efe6d5;
    color: #341015;

    font-size: 0.68rem;

    letter-spacing: 0.13em;
    text-transform: uppercase;

    transition:
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        gap 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}


.wine-detail__cta:hover {
    transform: translateY(-3px);

    gap: 20px;
}

/* ========================================
   VINA  — OPEN / CLOSE
======================================== */

.wines-section__header,
.wines-section__grid,
.wines-section__section-label {
    transition:
        opacity 0.5s ease,
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.wine-detail {
    opacity: 0;
    transform: translateY(24px);

    transition:
        opacity 0.65s ease,
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.wines-section.wine-detail-open .wines-section__header,
.wines-section.wine-detail-open .wines-section__grid,
.wines-section.wine-detail-open .wines-section__section-label {
    opacity: 0;
    transform: translateY(-18px);

    pointer-events: none;
}

.wines-section.wine-detail-open .wine-detail {
    display: block;
}

.wine-detail.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.wine-detail__visual {
    opacity: 0;

    transform:
        translateX(40px) scale(0.97);

    transition:
        opacity 0.75s ease,
        transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}


.wine-detail__content {
    opacity: 0;

    transform: translateX(30px);

    transition:
        opacity 0.75s ease 0.10s,
        transform 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.10s;
}


.wine-detail.is-visible .wine-detail__visual {
    opacity: 1;

    transform:
        translateX(0) scale(1);
}


.wine-detail.is-visible .wine-detail__content {
    opacity: 1;

    transform: translateX(0);
}

/* ========================================
   Kontakt i footer
======================================== */

.visit-section {
    background: #806149;
    color: #efe6d5;

    padding: 90px 0 80px;
}

.visit-section__inner {
    width: min(1320px, calc(100% - 80px));
    margin: 0 auto;
}


/* naslov */

.visit-section__section-label {
    position: relative;

    text-align: center;

    margin-bottom: 60px;

    font-family: var(--font-serif);
    font-size: 1.35rem;

    letter-spacing: 0.10em;
    text-transform: uppercase;

    color: rgba(239, 230, 213, 0.68);
}

.visit-section__section-label::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -13px;

    width: 38px;
    height: 1px;

    background: rgba(239, 230, 213, 0.30);

    transform: translateX(-50%);
}


/* ========================================
   info za kontakt
======================================== */

.visit-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 30px;

    padding-bottom: 42px;

    border-bottom: 1px solid rgba(239, 230, 213, 0.17);
}

.visit-info__item {
    display: flex;

    align-items: center;

    gap: 18px;
}

.visit-info__icon {
    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(239, 230, 213, 0.24);
    border-radius: 50%;
}

.visit-info__icon svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;

    opacity: 0.82;
}

.visit-info__content {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.visit-info__label {
    margin-bottom: 3px;

    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: rgba(239, 230, 213, 0.60);
}

.visit-info__content strong,
.visit-info__content a {
    font-family: var(--font-serif);

    font-size: 1.15rem;
    font-weight: 400;

    color: #efe6d5;
}

.visit-info__content>span:last-child {
    font-size: 0.76rem;

    color: rgba(239, 230, 213, 0.68);
}


/* ========================================
   drustvene mreze
======================================== */

.visit-socials {
    margin-top: 28px;

    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 16px;
}

.visit-socials__label {
    font-size: 0.68rem;

    letter-spacing: 0.15em;
    text-transform: uppercase;

    color: rgba(239, 230, 213, 0.64);
}

.visit-socials__links {
    display: flex;

    gap: 9px;
}

.social-link {
    width: 39px;
    height: 39px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(239, 230, 213, 0.22);
    border-radius: 50%;

    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.35s ease,
        color 0.35s ease;
}

.social-link svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.5;
}

.social-link:hover {
    transform: translateY(-3px);

    background: #efe6d5;

    color: #806149;
}

.social-link:last-child svg {
    fill: currentColor;
    stroke: none;
}


/* ========================================
   polje za mail
======================================== */

.visit-newsletter {
    margin-top: 54px;

    padding: 38px 42px;

    display: grid;
    grid-template-columns: 1fr 0.9fr;

    align-items: center;

    gap: 70px;

    background: rgba(45, 29, 22, 0.22);

    border: 1px solid rgba(239, 230, 213, 0.14);
    border-radius: 20px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.visit-newsletter__eyebrow {
    display: block;

    margin-bottom: 10px;

    font-size: 0.62rem;

    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: rgba(239, 230, 213, 0.64);
}

.visit-newsletter h3 {
    font-family: var(--font-serif);

    font-size: clamp(1.8rem, 2.7vw, 2.8rem);
    font-weight: 400;

    line-height: 1.04;
}

.visit-newsletter p {
    margin-top: 12px;

    font-size: 0.86rem;
    line-height: 1.55;

    color: rgba(239, 230, 213, 0.70);
}


/* kontakt forma */

.newsletter-form {
    display: flex;

    align-items: center;

    padding: 6px 6px 6px 20px;

    background: rgba(239, 230, 213, 0.96);

    border-radius: 999px;
}

.newsletter-form input {
    width: 100%;

    padding: 13px 0;

    border: 0;
    outline: none;

    background: transparent;

    color: #171411;

    font-family: inherit;

    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: rgba(23, 20, 17, 0.46);
}

.newsletter-form button {
    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #4b171d;
    color: #efe6d5;

    transition:
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.3s ease;
}

.newsletter-form button svg {
    width: 18px;
    height: 18px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.newsletter-form button:hover {
    transform: translateX(3px);

    background: #5b1c24;
}

/* ========================================
   FOOTER
======================================== */

.site-footer {
    background: #1c1714;
    color: #efe6d5;

    padding: 34px 0;
}

.site-footer__inner {
    width: min(1320px, calc(100% - 80px));
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    gap: 40px;
}

.site-footer__brand {
    font-family: var(--font-serif);

    font-size: 1.2rem;

    letter-spacing: 0.08em;
}

.site-footer__nav {
    display: flex;
    gap: 28px;
}

.site-footer__nav a {
    font-size: 0.72rem;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: rgba(239, 230, 213, 0.74);
}

.site-footer__meta {
    justify-self: end;

    display: flex;
    flex-direction: column;

    align-items: flex-end;

    gap: 4px;

    font-size: 0.62rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;

    color: rgba(239, 230, 213, 0.58);
}

/* ========================================
   BACK TO TOP
======================================== */

.back-to-top {
    position: fixed;

    right: 28px;
    bottom: 28px;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(239, 230, 213, 0.18);
    border-radius: 50%;

    background: rgba(52, 16, 21, 0.88);
    color: #efe6d5;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    opacity: 0;
    visibility: hidden;

    transform: translateY(12px);

    pointer-events: none;

    z-index: 900;

    transition:
        opacity 0.4s ease,
        visibility 0.4s ease,
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.3s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);

    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-4px);

    background: #4b171d;
}

.back-to-top svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-footer__developer {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

    color: inherit;

    text-decoration: none;

    opacity: 0.72;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.site-footer__developer:hover {
    opacity: 1;

    transform: translateY(-1px);
}

.site-footer__developer span {
    font-size: 0.62rem;

    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-footer__developer-logo {
    display: block;

    width: 32px;
    height: 32px;

    object-fit: contain;
}

@media (max-width: 900px) {

    .site-footer__developer {
        justify-content: center;
    }

    .site-footer__developer-logo {
        width: 28px;
        height: 28px;
    }
}