@charset "UTF-8";

@font-face {
    font-family: "GlacialIndifference";
    src: url("../fonts/optimized/glacial-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "GlacialIndifference";
    src: url("../fonts/optimized/glacial-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/optimized/montserrat-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/optimized/montserrat-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink-950: #090a0c;
    --ink-900: #0f1115;
    --ink-850: #15171c;
    --ink-800: #1b1e24;
    --silver-50: #faf9f7;
    --silver-100: #f1efeb;
    --silver-200: #e3dfd8;
    --silver-300: #ccc7be;
    --silver-500: #948f87;
    --accent: #c9bca7;
    --accent-bright: #e4dacb;
    --accent-muted: rgba(201, 188, 167, 0.16);
    --line-dark: rgba(255, 255, 255, 0.1);
    --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.28);
    --radius-sm: 12px;
    --radius-md: 22px;
    --radius-lg: 32px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    color: var(--silver-100);
    background: var(--ink-950);
    font-family: "Montserrat", Arial, sans-serif;
    font-size: clamp(16px, 0.35vw + 14px, 20px);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3 {
    font-family: "GlacialIndifference", Arial, sans-serif;
    font-weight: 700;
    line-height: 1.08;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

img,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

button,
a {
    font: inherit;
}

button {
    border: 0;
}

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

b {
    color: var(--silver-50);
    font-weight: 700;
}

::selection {
    color: var(--ink-950);
    background: var(--accent-bright);
}

:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 5px;
}

.container-large,
.container-small {
    position: relative;
    width: min(calc(100% - 48px), 1440px);
    margin-inline: auto;
}

.container-small {
    max-width: 1180px;
}

.padding {
    padding-block: clamp(84px, 10vw, 150px);
}

.txt-extra {
    font-size: clamp(3rem, 6vw, 5.5rem);
}

.txt-big {
    font-size: clamp(2.35rem, 5.2vw, 5rem);
    letter-spacing: -0.035em;
}

.txt-large {
    font-size: clamp(1.15rem, 2.3vw, 1.8rem);
}

.txt-small {
    font-size: 0.78rem;
}

.txt-minuscule {
    font-size: 0.7rem;
}

.flex-center-center,
.flex-center-between {
    display: flex;
    align-items: center;
}

.flex-center-center {
    justify-content: center;
}

.flex-center-between {
    justify-content: space-between;
}

.deferred-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
}

.has-js .scroll-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.has-js .scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.popup-wallpaper {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
}

.popup-wallpaper.is-open {
    display: block;
}

.popup {
    position: fixed;
    z-index: 1001;
    top: 50%;
    left: 50%;
    width: min(calc(100% - 32px), 620px);
    overflow: hidden;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-md);
    background: var(--ink-850);
    box-shadow: var(--shadow-lg);
    transform: translate(-50%, -50%);
}

.popup-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line-dark);
}

.popup-header-count {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.popup-btn-close {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    color: var(--silver-50);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.popup-count {
    max-height: calc(100vh - 220px);
    padding: 24px;
    overflow: auto;
    color: var(--ink-900);
    background: var(--silver-50);
}

.content-cookie {
    position: fixed;
    z-index: 990;
    right: 18px;
    bottom: 18px;
    width: min(calc(100% - 36px), 620px);
    padding: 16px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-sm);
    background: rgba(15, 17, 21, 0.94);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
}

.content-cookie[hidden] {
    display: none;
}

.cookie-inner {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 18px;
}

.cookie-text {
    flex: 1;
    color: var(--silver-200);
    font-size: 0.72rem;
    line-height: 1.5;
}

.cookie-btn {
    min-width: 56px;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--ink-950);
    background: var(--accent-bright);
    font-weight: 700;
    cursor: pointer;
}
