:root {
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-7: 56px;
    --space-8: 64px;

    --spacing: 16px;

    --padding: 16px;
    --margin: 24px;
    --gap: 48px;

    --general-font-color: #000;
    --general-font: "EB Garamond";

    --border-color: #000;
    --border-size: 2px;

    --button-background: #000;

    --logo-height: var(--space-4);
    --logo-width: 172px;

    --header-color: #001219;
    --max-width: 1440px;
}

html {
    background: #F8F3E7 url("img/bg.png") repeat;
    padding: 0 var(--space-1);
    scroll-behavior: smooth;
    scroll-padding-top: var(--space-4);
}

body {
    color: var(--general-font-color);
    font-family: var(--general-font), serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    letter-spacing: -0.6px;
    -webkit-font-smoothing: antialiased;
}

strong {
    font-weight: 600;
}

em {
    font-style: italic;
}

a {
    color: #000;
    text-decoration: underline;
    font-weight: 600;
}

a:hover {
    text-decoration: none;
}

.layout {
    display: grid;
    border: var(--border-size) solid var(--border-color);
    max-width: var(--max-width);
    margin: var(--margin) auto;
}

.main {
    display: grid;
    gap: var(--space-3);
}

.header {
    position: sticky;
    top: var(--space-2);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: var(--space-2) var(--space-3);
    align-items: center;
    z-index: 999;
}

.footer {
    display: flex;
}

.footer__image {
    width: 100%;
}

.navigation {
    line-height: 26px;
}

.navigation__mobile-button {
    position: fixed;
    right: var(--space-3);
    bottom: var(--space-3);
}

.navigation__menu {
    display: none;
    flex-direction: row;
    gap: var(--space-2);
}

.container {
    padding: var(--space-3);
}

.container__paragraph {
    margin: 0 auto;
    max-width: 700px;
    text-align: center;
}

.container__paragraph + .container__paragraph {
    margin-top: var(--space-3);
}

.columns-2x {
    display: grid;
    padding: var(--space-3);
    gap: var(--space-3);
    flex: 1 0 0;
    align-self: stretch;
    grid-template-columns: 1fr;
}

@media (min-width: 800px) {
    body {
        font-size: 20px;
    }

    .hero__title {
        margin-top: 83px;
        margin-bottom: var(--space-2);
        font-size: 230px;
        line-height: 190px; /* 82.609% */
    }

    .hero__subtitle {
        font-size: 32px;
        line-height: normal;
    }

    .columns-2x {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6);
    }

    .navigation__menu {
        display: flex!important;
    }
}

.container__header {
    color: var(--header-color);
    text-align: center;
    font-family: "EB Garamond", sans-serif;
    font-size: 48px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: -1.44px;
    line-height: normal;
}

.container__subheader {
    color: var(--header-color);
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
}

.container__image,
.container__image img {
    width: 100%;
    height: auto;
}

.container__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.logo {
    display: flex;
}

.logo__img {
    max-width: var(--logo-width);
    max-height: var(--logo-height);
}

.big-button {
    position: relative;
    display: flex;
    border: var(--border-size) solid var(--border-color);
    padding: var(--space-3);
    text-decoration: none;
    color: var(--general-font-color);
}

.big-button::after {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    content: '';
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><mask id="mask0_113_2110" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24"><rect width="24" height="24" fill="%23D9D9D9"/></mask><g mask="url(%23mask0_113_2110)"><path d="M16.627 12.75H4.5V11.25H16.627L10.9308 5.55375L12 4.5L19.5 12L12 19.5L10.9308 18.4462L16.627 12.75Z" fill="%231C1B1F"/></g></svg>') no-repeat top right;
}

.big-button:focus::after,
.big-button:hover::after {
    animation: shake ease 600ms infinite alternate;
}

@keyframes shake {
    50% {
        transform: translate3d(20px, 0, 0);
    }
}

.button {
    box-sizing: border-box;
    display: inline-flex;
    padding: var(--space-1) var(--space-2);
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: var(--border-size) solid var(--border-color);
    background: var(--button-background);
    color: #F8F3E7;
    text-decoration: none;
    font-weight: 600;
}

.button:hover {
    text-decoration: underline;
}

.button--secondary {
    background: #F8F3E7 url("img/bg.png") repeat;
    color: #000;
}

.button--neutral {
    border-color: transparent;
    background: #F8F3E7 url("img/bg.png") repeat;
    color: #000;
}

.divider {
    margin: 0 var(--space-3);
    height: 2px;
    background: var(--border-color);
    border: 0;
}

.header-3 {
    margin-bottom: 12px;
    color: var(--header-color);
    font-size: 32px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: -0.96px;
}

.timetable {
    text-align: left;
}

.timetable__body {
    border-top: var(--space-1) solid var(--border-color);
}

.timetable__header {
    font-weight: bold;
    text-transform: uppercase;
}

.timetable__row:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.timetable__row > th, td {
    padding: var(--space-2) 0;
}

.timetable__row > th {
    padding-right: var(--space-2);
}

.timetable__row > td {
    font-weight: 600;
}

.faq__articles {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.faq__article {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.has-border {
    margin: 0 var(--space-3);
    border: 2px solid var(--border-color)
}

.crt-container {
    position: relative;
    width: 80%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    border: 5px solid rgba(255, 255, 255, 0.2); /* Faint glow border */
    box-shadow: 0 0 50px rgba(0, 255, 0, 0.5); /* Green CRT-like glow */
    overflow: hidden; /* Ensure overlays stay within the container */
    background: black;
}

.crt-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.crt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Ensure overlays don’t block interactions with the video */
}

.scanlines {
    background: repeating-linear-gradient(
            transparent 0px,
            rgba(0, 0, 0, 0.3) 1px
    );
    background-size: 100% 2px; /* Creates the scanlines effect */
    mix-blend-mode: multiply; /* Blend scanlines with video */
}

.noise {
    background-image: url('noise.png'); /* Noise texture */
    opacity: 0.2; /* Makes the noise subtle */
    animation: flicker 0.1s infinite;
}

@keyframes flicker {
    from {
        opacity: 0.15;
    }
    to {
        opacity: 0.25;
    }
}

.crt-container:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.2), transparent 70%);
    pointer-events: none;
}
