@font-face {
    font-family: 'Red Hat Display';
    src: url('/haven-res/font-assets/redhatdisplay-regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Red Hat Display';
    src: url('/haven-res/font-assets/redhatdisplay-bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Chivo Mono';
    src: url('/haven-res/font-assets/chivomono-regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Font Awesome 6 Solid';
    src: url('/haven-res/font-assets/fontawesome-solid.woff2') format('woff2');
    font-weight: 900;
    font-display: block;
}

:root {
    --hue-primary: 210;
    --color-base: hsl(var(--hue-primary), 25%, 10%);
    --color-surface: hsl(var(--hue-primary), 20%, 16%);
    --color-accent: hsl(45, 85%, 60%);
    --color-text: hsl(0, 0%, 92%);
    --color-muted: hsl(var(--hue-primary), 15%, 65%);
    --container-width-max: 84.375rem;
    --container-inner-width: 64rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Red Hat Display', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--color-base);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.haven-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.haven-age-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.5rem;
}
#haven-age-toggle:checked ~ .haven-age-modal {
    display: none;
}
#haven-age-toggle:checked ~ .haven-age-modal[aria-hidden],
#haven-age-toggle:checked ~ .haven-age-modal[inert] {
    display: none;
}
.haven-age-modal__content {
    background-color: var(--color-surface);
    padding: 3rem;
    border-radius: 1rem;
    max-width: 600px;
    text-align: center;
    border: 2px solid var(--color-accent);
}
.haven-age-modal__content h2 {
    font-family: 'Chivo Mono', monospace;
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}
.haven-age-modal__content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--color-muted);
}
.haven-age-modal__content a {
    color: var(--color-accent);
    text-decoration: underline;
}
.haven-age-modal__button {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-base);
    font-family: 'Chivo Mono', monospace;
    font-weight: 700;
    padding: 1rem 3rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.25rem;
    transition: background-color 0.3s ease;
}
.haven-age-modal__button:hover,
.haven-age-modal__button:focus {
    background-color: hsl(45, 85%, 70%);
}

.haven-header,
.haven-main,
.haven-footer {
    width: 100%;
}

@media (max-width: 768px) {
    .no-mobile-anim * {
        animation: none !important;
        transition: none !important;
    }
    .haven-age-modal {
        align-items: flex-start;
        padding-top: 3rem;
        overflow-y: auto;
    }
    .haven-age-modal__content {
        max-height: 90vh;
        margin-top: 2rem;
        padding: 2rem 1.5rem;
    }
}

.haven-combined-modals {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1000;
    font-family: 'Red Hat Display', system-ui, -apple-system, sans-serif;
}
.haven-combined-modals__tab {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
    background-color: var(--color-accent);
    color: var(--color-base);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem 0.5rem 0 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Chivo Mono', monospace;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}
.haven-combined-modals__tab:hover {
    background-color: hsl(45, 85%, 70%);
}
.haven-combined-modals__tab-icon {
    font-family: 'Font Awesome 6 Solid';
    font-weight: 900;
    order: 2;
    transform: rotate(90deg);
}
.haven-combined-modals__tab-text {
    order: 1;
}
.haven-combined-modals__container {
    width: 28rem;
    background-color: var(--color-surface);
    border-left: 4px solid var(--color-accent);
    padding: 2.5rem;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    max-height: 85vh;
    overflow-y: auto;
}
#haven-modals-main-toggle:checked ~ .haven-combined-modals .haven-combined-modals__container {
    transform: translateX(0);
}
#combined-accepted:target ~ .haven-combined-modals {
    display: none;
}
.haven-combined-modals__age-section,
.haven-combined-modals__cookie-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid hsla(var(--hue-primary), 20%, 30%, 0.5);
}
.haven-age-section__icon,
.haven-cookie-section__icon {
    font-family: 'Font Awesome 6 Solid';
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: block;
}
.haven-age-section__title,
.haven-cookie-section__title {
    font-family: 'Chivo Mono', monospace;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}
.haven-age-section__text,
.haven-cookie-section__text {
    color: var(--color-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.haven-age-section__text a,
.haven-cookie-section__text a {
    color: var(--color-accent);
    text-decoration: underline;
}
.haven-age-section__decline {
    text-align: center;
    margin-top: 1.5rem;
}
.haven-age-section__decline-link {
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}
.haven-age-section__decline-link:hover {
    color: var(--color-text);
}
.haven-age-section__decline-icon {
    font-family: 'Font Awesome 6 Solid';
    font-weight: 900;
}
.haven-cookie-section__toggle-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.2rem;
    background-color: hsla(var(--hue-primary), 20%, 22%, 0.6);
    border-radius: 2rem;
    cursor: pointer;
    margin-top: 1rem;
}
.haven-cookie-section__toggle-text {
    font-size: 0.95rem;
    color: var(--color-text);
}
.haven-cookie-section__toggle-switch {
    width: 3rem;
    height: 1.5rem;
    background-color: hsl(var(--hue-primary), 15%, 35%);
    border-radius: 1rem;
    position: relative;
    transition: background-color 0.3s ease;
}
.haven-cookie-section__toggle-switch::after {
    content: '';
    position: absolute;
    width: 1.2rem;
    height: 1.2rem;
    background-color: var(--color-text);
    border-radius: 50%;
    top: 0.15rem;
    left: 0.15rem;
    transition: transform 0.3s ease;
}
#haven-modals-cookie-toggle:checked ~ .haven-combined-modals .haven-cookie-section__toggle-switch {
    background-color: var(--color-accent);
}
#haven-modals-cookie-toggle:checked ~ .haven-combined-modals .haven-cookie-section__toggle-switch::after {
    transform: translateX(1.5rem);
}
.haven-combined-modals__action {
    text-align: center;
}
.haven-combined-modals__confirm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: var(--color-accent);
    color: var(--color-base);
    font-family: 'Chivo Mono', monospace;
    font-weight: 700;
    padding: 1.2rem 2.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.haven-combined-modals__confirm-btn:hover {
    background-color: hsl(45, 85%, 70%);
    transform: scale(1.03);
}
.haven-combined-modals__confirm-icon {
    font-family: 'Font Awesome 6 Solid';
    font-weight: 900;
}

.haven-header {
    background-color: var(--color-surface);
    border-bottom: 2px solid var(--color-accent);
    padding: 1.2rem 0;
    position: relative;
    z-index: 100;
}
.haven-header__inner {
    max-width: var(--container-width-max);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.haven-header__brand-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--color-text);
    font-family: 'Chivo Mono', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    transition: color 0.3s ease;
}
.haven-header__brand-link:hover {
    color: var(--color-accent);
}
.haven-header__brand-icon {
    font-family: 'Font Awesome 6 Solid';
    font-weight: 900;
    font-size: 2.2rem;
    color: var(--color-accent);
}
.haven-header__nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}
.haven-header__nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}
.haven-header__nav-link:hover {
    color: var(--color-accent);
}
.haven-header__nav-link--home {
    color: var(--color-accent);
}
.haven-header__nav-icon {
    font-family: 'Font Awesome 6 Solid';
    font-weight: 900;
    font-size: 1.1rem;
}

@media (max-width: 1024px) {
    .haven-header__inner {
        padding: 0 1.5rem;
    }
    .haven-header__nav-list {
        gap: 1.8rem;
    }
}
@media (max-width: 768px) {
    .haven-combined-modals {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
    }
    .haven-combined-modals__tab {
        position: static;
        transform: none;
        left: auto;
        top: auto;
        justify-content: center;
        border-radius: 0;
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }
    .haven-combined-modals__tab-icon {
        transform: none;
        order: 1;
    }
    .haven-combined-modals__tab-text {
        order: 2;
    }
    .haven-combined-modals__container {
        width: 100%;
        max-height: 0;
        transform: translateY(100%);
        padding: 0 1.5rem;
        border-left: none;
        border-top: 4px solid var(--color-accent);
        overflow-y: hidden;
    }
    #haven-modals-main-toggle:checked ~ .haven-combined-modals .haven-combined-modals__container {
        transform: translateY(0);
        max-height: 85vh;
        padding: 2rem 1.5rem;
        overflow-y: auto;
    }
    .haven-combined-modals__container {
        align-items: flex-start;
    }
    .haven-header__inner {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    .haven-header__nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.2rem;
        row-gap: 1rem;
    }
    .haven-header__nav-link {
        font-size: 1rem;
    }
}
@media (max-width: 480px) {
    .haven-header__brand-text {
        font-size: 1.6rem;
    }
    .haven-header__nav-list {
        gap: 0.8rem;
        row-gap: 0.8rem;
    }
    .haven-header__nav-item {
        flex: 1 0 calc(50% - 0.8rem);
        text-align: center;
    }
    .haven-header__nav-link {
        justify-content: center;
    }
}

.haven-welcome {
    position: relative;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    padding: 4rem 2rem;
}
.haven-welcome__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: url('/haven-res/media-assets/welcome-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.haven-welcome__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, hsla(var(--hue-primary), 40%, 8%, 0.85) 0%, hsla(45, 70%, 30%, 0.65) 100%);
    animation: haven-overlay-pulse 8s ease-in-out infinite alternate;
    z-index: -1;
}
@keyframes haven-overlay-pulse {
    0% {
        background: linear-gradient(135deg, hsla(var(--hue-primary), 40%, 8%, 0.9) 0%, hsla(45, 70%, 30%, 0.7) 100%);
        opacity: 1;
    }
    50% {
        background: linear-gradient(135deg, hsla(var(--hue-primary), 35%, 10%, 0.8) 0%, hsla(45, 75%, 35%, 0.6) 100%);
        opacity: 0.95;
    }
    100% {
        background: linear-gradient(135deg, hsla(var(--hue-primary), 45%, 7%, 0.85) 0%, hsla(45, 65%, 25%, 0.75) 100%);
        opacity: 1;
    }
}
.haven-welcome__content {
    max-width: var(--container-inner-width);
    text-align: center;
    z-index: 1;
    padding: 2rem;
}
.haven-welcome__title {
    font-family: 'Chivo Mono', monospace;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.haven-welcome__description {
    font-size: 1.3rem;
    max-width: 48rem;
    margin: 0 auto 3rem;
    color: hsl(0, 0%, 95%);
    line-height: 1.8;
}
.haven-welcome__benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 4rem;
}
.haven-benefit-card {
    flex: 1 1 300px;
    max-width: 310px;
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2.5rem 1rem;
    border: 1px solid hsla(var(--hue-primary), 30%, 50%, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.haven-benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}
.haven-benefit-card__icon {
    font-family: 'Font Awesome 6 Solid';
    font-weight: 900;
    font-size: 2.8rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    display: block;
}
.haven-benefit-card__title {
    font-family: 'Chivo Mono', monospace;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}
.haven-benefit-card__text {
    color: var(--color-muted);
    line-height: 1.7;
}
.haven-benefit-card__text a {
    color: var(--color-accent);
    text-decoration: underline;
}
.haven-welcome__cta-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--color-accent);
    color: var(--color-base);
    font-family: 'Chivo Mono', monospace;
    font-weight: 700;
    font-size: 1.3rem;
    padding: 1.3rem 3rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.haven-welcome__cta-link:hover {
    background-color: hsl(45, 85%, 70%);
    transform: scale(1.05);
}
.haven-welcome__cta-icon {
    font-family: 'Font Awesome 6 Solid';
    font-weight: 900;
}

.haven-games {
    max-width: var(--container-width-max);
    margin: 6rem auto;
    padding: 0 2rem;
}
.haven-games__header {
    text-align: center;
    margin-bottom: 4rem;
}
.haven-games__title {
    font-family: 'Chivo Mono', monospace;
    font-size: 2.8rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}
.haven-games__subtitle {
    font-size: 1.2rem;
    color: var(--color-muted);
    max-width: 40rem;
    margin: 0 auto;
}
.haven-games__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: 3rem;
}
.haven-game-card {
    background-color: var(--color-surface);
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    border: 1px solid hsla(var(--hue-primary), 20%, 30%, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.haven-game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}
.haven-game-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    font-family: 'Chivo Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.haven-game-card__badge--popular {
    background-color: hsl(120, 60%, 40%);
    color: white;
}
.haven-game-card__badge--new {
    background-color: hsl(210, 90%, 50%);
    color: white;
}
.haven-game-card__badge--classic {
    background-color: hsl(30, 80%, 50%);
    color: white;
}
.haven-game-card__badge--trending {
    background-color: hsl(330, 80%, 55%);
    color: white;
}
.haven-game-card__image-container {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.haven-game-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.haven-game-card:hover .haven-game-card__image {
    transform: scale(1.05);
}
.haven-game-card__info {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.haven-game-card__name {
    font-family: 'Chivo Mono', monospace;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: var(--color-text);
}
.haven-game-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    padding-top: 1rem;
    border-top: 1px solid hsla(var(--hue-primary), 20%, 30%, 0.5);
    transition: color 0.3s ease;
}
.haven-game-card__link:hover {
    color: hsl(45, 85%, 70%);
}
.haven-game-card__link-icon {
    font-family: 'Font Awesome 6 Solid';
    font-weight: 900;
}

@media (max-width: 768px) {
    .haven-welcome {
        max-height: 100% !important;
        padding: 3rem 1.5rem;
    }
    .haven-welcome__title {
        font-size: 2.5rem;
    }
    .haven-welcome__description {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }
    .haven-welcome__benefits {
        gap: 2rem;
        margin-bottom: 3rem;
    }
    .haven-benefit-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .haven-games {
        margin: 4rem auto;
        padding: 0 1.5rem;
    }
    .haven-games__title {
        font-size: 2.2rem;
    }
    .haven-games__grid {
        grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
        gap: 2rem;
    }
}
@media (max-width: 480px) {
    .haven-welcome__title {
        font-size: 2rem;
    }
    .haven-welcome__cta-link {
        font-size: 1.1rem;
        padding: 1rem 2rem;
    }
    .haven-games__title {
        font-size: 1.8rem;
    }
    .haven-games__grid {
        grid-template-columns: 1fr;
    }
}

.haven-about {
    background-color: var(--color-base);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}
.haven-about__animation-container {
    height: 200px;
    position: relative;
    margin-bottom: 4rem;
    background: linear-gradient(to bottom, transparent, hsla(var(--hue-primary), 30%, 15%, 0.4));
    border-radius: 1rem;
}
.haven-about__particle {
    position: absolute;
    background-color: var(--color-accent);
    opacity: 0.7;
    animation-duration: 8s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}
.haven-about__particle--circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    top: 20%;
    left: 15%;
    animation-name: haven-float-circle;
}
.haven-about__particle--square {
    width: 25px;
    height: 25px;
    top: 60%;
    left: 80%;
    animation-name: haven-float-square;
}
.haven-about__particle--triangle {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid var(--color-accent);
    background-color: transparent !important;
    top: 40%;
    left: 50%;
    animation-name: haven-float-triangle;
}
@keyframes haven-float-circle {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, 30px) scale(1.2); }
    66% { transform: translate(-20px, 50px) scale(0.9); }
}
@keyframes haven-float-square {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-60px, -20px) rotate(180deg); }
}
@keyframes haven-float-triangle {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, 40px) rotate(90deg); }
    50% { transform: translate(-10px, 70px) rotate(180deg); }
    75% { transform: translate(-40px, 20px) rotate(270deg); }
}
.haven-about__content {
    max-width: var(--container-inner-width);
    margin: 0 auto;
    display: flex;
    gap: 5rem;
    align-items: flex-start;
}
.haven-about__header-block {
    flex: 1;
}
.haven-about__title {
    font-family: 'Chivo Mono', monospace;
    font-size: 3rem;
    color: var(--color-text);
    line-height: 1.2;
}
.haven-about__text-block {
    flex: 1;
}
.haven-about__description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-muted);
    margin-bottom: 2.5rem;
}
.haven-about__link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--color-accent);
    text-decoration: none;
    font-family: 'Chivo Mono', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.9rem 2rem;
    border: 2px solid var(--color-accent);
    border-radius: 0.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.haven-about__link:hover {
    background-color: var(--color-accent);
    color: var(--color-base);
}
.haven-about__link-icon {
    font-family: 'Font Awesome 6 Solid';
    font-weight: 900;
}

@media (max-width: 1024px) {
    .haven-about__content {
        gap: 3rem;
    }
}
@media (max-width: 768px) {
    .haven-about {
        padding: 4rem 1.5rem;
    }
    .haven-about__animation-container {
        height: 150px;
        margin-bottom: 3rem;
    }
    .haven-about__content {
        flex-direction: column;
        gap: 2.5rem;
    }
    .haven-about__title {
        font-size: 2.5rem;
    }
    .haven-about__description {
        font-size: 1.1rem;
    }
}
@media (max-width: 480px) {
    .haven-about__title {
        font-size: 2rem;
    }
    .haven-about__link {
        font-size: 1rem;
        padding: 0.8rem 1.8rem;
    }
}

.haven-why {
    background-color: var(--color-surface);
    padding: 6rem 2rem;
}
.haven-why__header {
    text-align: center;
    max-width: 50rem;
    margin: 0 auto 5rem;
}
.haven-why__title {
    font-family: 'Chivo Mono', monospace;
    font-size: 2.8rem;
    color: var(--color-text);
    margin-bottom: 1.2rem;
}
.haven-why__subtitle {
    font-size: 1.2rem;
    color: var(--color-muted);
    line-height: 1.7;
}
.haven-why__grid {
    max-width: var(--container-width-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
    gap: 3rem;
}
.haven-reason-card {
    background-color: var(--color-base);
    border-radius: 1.2rem;
    padding: 2.5rem;
    border: 1px solid hsla(var(--hue-primary), 25%, 35%, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.haven-reason-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.haven-reason-card__icon {
    font-family: 'Font Awesome 6 Solid';
    font-weight: 900;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-size: 2.8rem;
    display: block;
    transition: transform 0.4s ease;
}
.haven-reason-card:hover .haven-reason-card__icon {
    transform: scale(1.1) rotate(5deg);
}
.haven-reason-card__title {
    font-family: 'Chivo Mono', monospace;
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.3;
}
.haven-reason-card__text {
    color: var(--color-muted);
    line-height: 1.7;
}

.haven-reason-card--icon-top {
    text-align: center;
}
.haven-reason-card--icon-top .haven-reason-card__icon {
    margin-left: auto;
    margin-right: auto;
}
.haven-reason-card--icon-left {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
}
.haven-reason-card--icon-left .haven-reason-card__icon {
    margin-bottom: 0;
    flex-shrink: 0;
    font-size: 2.5rem;
}
.haven-reason-card--icon-left .haven-reason-card__content {
    flex: 1;
}
.haven-reason-card--icon-right {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: flex-start;
    flex-direction: row-reverse;
    text-align: right;
}
.haven-reason-card--icon-right .haven-reason-card__icon {
    margin-bottom: 0;
    flex-shrink: 0;
    font-size: 2.5rem;
}
.haven-reason-card--icon-right .haven-reason-card__content {
    flex: 1;
}
.haven-reason-card--icon-bottom {
    text-align: center;
    display: flex;
    flex-direction: column;
}
.haven-reason-card--icon-bottom .haven-reason-card__icon {
    order: 3;
    margin-top: 2rem;
    margin-bottom: 0;
}
.haven-reason-card--icon-corner {
    padding-top: 4.5rem;
}
.haven-reason-card--icon-corner .haven-reason-card__icon {
    position: absolute;
    top: -1.2rem;
    right: 1.5rem;
    font-size: 4rem;
    opacity: 0.15;
    margin-bottom: 0;
    z-index: 0;
}
.haven-reason-card--icon-corner .haven-reason-card__title,
.haven-reason-card--icon-corner .haven-reason-card__text {
    position: relative;
    z-index: 1;
}
.haven-reason-card--icon-circle .haven-reason-card__icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: hsla(45, 85%, 60%, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.8rem;
}
.haven-reason-card--icon-circle .haven-reason-card__icon {
    font-size: 2.5rem;
    margin-bottom: 0;
}
.haven-reason-card--icon-circle {
    text-align: center;
}

@media (max-width: 1024px) {
    .haven-why__grid {
        grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
        gap: 2.5rem;
    }
}
@media (max-width: 768px) {
    .haven-why {
        padding: 4rem 1.5rem;
    }
    .haven-why__title {
        font-size: 2.3rem;
    }
    .haven-why__subtitle {
        font-size: 1.1rem;
    }
    .haven-why__header {
        margin-bottom: 3.5rem;
    }
    .haven-why__grid {
        grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
        gap: 2rem;
    }
    .haven-reason-card {
        padding: 2rem;
    }
    .haven-reason-card--icon-left,
    .haven-reason-card--icon-right {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    .haven-reason-card--icon-left .haven-reason-card__icon,
    .haven-reason-card--icon-right .haven-reason-card__icon {
        margin-left: auto;
        margin-right: auto;
    }
}
@media (max-width: 480px) {
    .haven-why__grid {
        grid-template-columns: 1fr;
    }
    .haven-why__title {
        font-size: 2rem;
    }
}

.haven-faq {
    position: relative;
    padding: 6rem 2rem;
    overflow: hidden;
    color: var(--color-text);
}
.haven-faq__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-base);
    z-index: -2;
}
.haven-faq__background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 40px,
        hsla(var(--hue-primary), 60%, 60%, 0.03) 40px,
        hsla(var(--hue-primary), 60%, 60%, 0.03) 80px
    );
    animation: haven-slide-lines 20s linear infinite;
}
@keyframes haven-slide-lines {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(-40px) translateY(-40px);
    }
}
.haven-faq__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 25, 0.85);
    z-index: -1;
}
.haven-faq__container {
    max-width: var(--container-inner-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.haven-faq__title {
    font-family: 'Chivo Mono', monospace;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--color-accent);
}
.haven-faq__content {
    display: flex;
    gap: 4rem;
}
.haven-faq__column {
    flex: 1;
}
.haven-faq__column--center {
    display: flex;
    align-items: center;
    justify-content: center;
}
.haven-faq__item {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid hsla(var(--hue-primary), 30%, 50%, 0.2);
}
.haven-faq__item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}
.haven-faq__question {
    font-family: 'Chivo Mono', monospace;
    font-size: 1.3rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.4;
}
.haven-faq__answer {
    color: var(--color-muted);
    line-height: 1.7;
}
.haven-faq__answer a {
    color: var(--color-accent);
    text-decoration: underline;
}
.haven-faq__central-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: var(--color-accent);
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px dashed hsla(45, 85%, 60%, 0.4);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    width: 100%;
    max-width: 280px;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.haven-faq__central-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent);
    transform: scale(1.05);
}
.haven-faq__central-icon {
    font-family: 'Font Awesome 6 Solid';
    font-weight: 900;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}
.haven-faq__central-text {
    font-family: 'Chivo Mono', monospace;
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .haven-faq__content {
        gap: 3rem;
    }
}
@media (max-width: 768px) {
    .haven-faq {
        padding: 4rem 1.5rem;
    }
    .haven-faq__title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
    .haven-faq__content {
        flex-direction: column;
        gap: 3.5rem;
    }
    .haven-faq__column--center {
        order: -1;
    }
    .haven-faq__central-link {
        max-width: 100%;
        padding: 2.5rem;
        flex-direction: row;
        gap: 2rem;
        justify-content: flex-start;
        text-align: left;
    }
    .haven-faq__central-icon {
        margin-bottom: 0;
        font-size: 3rem;
        flex-shrink: 0;
    }
}
@media (max-width: 480px) {
    .haven-faq__title {
        font-size: 2rem;
    }
    .haven-faq__question {
        font-size: 1.2rem;
    }
    .haven-faq__central-link {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem;
    }
    .haven-faq__central-icon {
        font-size: 2.8rem;
    }
}

.haven-testimonials {
    background-color: var(--color-surface);
    padding: 6rem 2rem;
}
.haven-testimonials__container {
    max-width: var(--container-width-max);
    margin: 0 auto;
}
.haven-testimonials__title {
    font-family: 'Chivo Mono', monospace;
    font-size: 2.8rem;
    text-align: center;
    color: var(--color-text);
    margin-bottom: 1rem;
}
.haven-testimonials__subtitle {
    text-align: center;
    color: var(--color-muted);
    font-size: 1.2rem;
    max-width: 40rem;
    margin: 0 auto 4rem;
}
.haven-testimonials__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
}
.haven-review-card {
    flex: 0 1 340px;
    background-color: var(--color-base);
    border-radius: 1.2rem;
    padding: 2.5rem;
    border-left: 5px solid var(--color-accent);
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.haven-review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}
.haven-review-card__decor-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: 'Font Awesome 6 Solid';
    font-weight: 900;
    font-size: 2.5rem;
    color: hsla(var(--hue-primary), 30%, 50%, 0.2);
}
.haven-review-card__header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.haven-review-card__author {
    display: flex;
    flex-direction: column;
}
.haven-review-card__name {
    font-family: 'Chivo Mono', monospace;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--color-text);
}
.haven-review-card__date {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-top: 0.3rem;
}
.haven-review-card__rating {
    display: flex;
    gap: 0.2rem;
}
.haven-review-card__star {
    font-family: 'Font Awesome 6 Solid';
    font-weight: 900;
    color: var(--color-accent);
    font-size: 1.1rem;
}
.haven-review-card__star--half {
    color: hsl(var(--hue-primary), 20%, 60%);
}
.haven-review-card__text {
    font-size: 1.1rem;
    line-height: 1.7;
    min-height: 210px;
    color: var(--color-muted);
    font-style: italic;
    margin-bottom: 1.8rem;
    quotes: "“" "”" "‘" "’";
}
.haven-review-card__text::before {
    content: open-quote;
    color: var(--color-accent);
    font-size: 1.5em;
    margin-right: 0.2em;
}
.haven-review-card__text::after {
    content: close-quote;
    color: var(--color-accent);
    font-size: 1.5em;
    margin-left: 0.2em;
}
.haven-review-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}
.haven-review-card__tag {
    background-color: hsla(var(--hue-primary), 30%, 20%, 0.5);
    color: var(--color-muted);
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
    border-radius: 2rem;
    font-family: 'Chivo Mono', monospace;
}

@media (max-width: 1150px) {
    .haven-review-card {
        flex: 0 1 300px;
    }
}
@media (max-width: 768px) {
    .haven-testimonials {
        padding: 4rem 1.5rem;
    }
    .haven-testimonials__title {
        font-size: 2.3rem;
    }
    .haven-testimonials__subtitle {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }
    .haven-testimonials__grid {
        gap: 2rem;
    }
    .haven-review-card {
        flex: 0 1 100%;
        max-width: 400px;
    }
}
@media (max-width: 480px) {
    .haven-testimonials__title {
        font-size: 2rem;
    }
    .haven-review-card {
        padding: 2rem;
    }
}

.haven-contact {
    background-color: var(--color-base);
    padding: 6rem 2rem;
}
.haven-contact__container {
    max-width: var(--container-inner-width);
    margin: 0 auto;
}
.haven-contact__title {
    font-family: 'Chivo Mono', monospace;
    font-size: 2.8rem;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 1rem;
}
.haven-contact__subtitle {
    text-align: center;
    color: var(--color-muted);
    font-size: 1.2rem;
    max-width: 40rem;
    margin: 0 auto 3rem;
}
.haven-contact__form {
    background-color: var(--color-surface);
    border-radius: 1.2rem;
    padding: 3.5rem;
    border: 1px solid hsla(var(--hue-primary), 25%, 35%, 0.4);
}
.haven-contact__field {
    margin-bottom: 2.2rem;
}
.haven-contact__field--wide {
    width: 100%;
}
.haven-contact__label {
    display: block;
    font-family: 'Chivo Mono', monospace;
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 0.7rem;
    font-weight: 600;
}
.haven-contact__textarea,
.haven-contact__input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background-color: hsla(var(--hue-primary), 20%, 22%, 0.6);
    border: 2px solid transparent;
    border-radius: 0.7rem;
    color: var(--color-text);
    font-family: 'Red Hat Display', system-ui, -apple-system, sans-serif;
    font-size: 1.05rem;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
.haven-contact__textarea:focus,
.haven-contact__input:focus {
    outline: none;
    border-color: var(--color-accent);
    background-color: hsla(var(--hue-primary), 20%, 25%, 0.8);
}
.haven-contact__textarea::placeholder,
.haven-contact__input::placeholder {
    color: var(--color-muted);
    opacity: 0.8;
}
.haven-contact__row {
    display: flex;
    gap: 2.5rem;
}
.haven-contact__field--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.haven-contact__checkbox {
    margin-top: 0.4rem;
    flex-shrink: 0;
    width: 1.3rem;
    height: 1.3rem;
    accent-color: var(--color-accent);
}
.haven-contact__checkbox-label {
    color: var(--color-muted);
    line-height: 1.6;
    font-size: 1rem;
}
.haven-contact__checkbox-label a {
    color: var(--color-accent);
    text-decoration: underline;
}
.haven-contact__submit {
    display: block;
    width: 100%;
    background-color: var(--color-accent);
    color: var(--color-base);
    font-family: 'Chivo Mono', monospace;
    font-weight: 700;
    font-size: 1.3rem;
    padding: 1.4rem;
    border: none;
    border-radius: 0.7rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 2.5rem;
}
.haven-contact__submit:hover {
    background-color: hsl(45, 85%, 70%);
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .haven-contact {
        padding: 4rem 1.5rem;
    }
    .haven-contact__title {
        font-size: 2.3rem;
    }
    .haven-contact__subtitle {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }
    .haven-contact__form {
        padding: 2.5rem 2rem;
    }
    .haven-contact__row {
        flex-direction: column;
        gap: 2.2rem;
    }
}
@media (max-width: 480px) {
    .haven-contact__title {
        font-size: 2rem;
    }
    .haven-contact__form {
        padding: 2rem 1.5rem;
    }
    .haven-contact__submit {
        font-size: 1.2rem;
        padding: 1.2rem;
    }
}

.haven-responsible {
    background-color: var(--color-surface);
    padding: 5rem 2rem;
    border-top: 1px solid hsla(var(--hue-primary), 25%, 35%, 0.3);
    border-bottom: 1px solid hsla(var(--hue-primary), 25%, 35%, 0.3);
}
.haven-responsible__container {
    max-width: var(--container-inner-width);
    margin: 0 auto;
    display: flex;
    gap: 5rem;
    align-items: center;
}
.haven-responsible__content {
    flex: 1;
}
.haven-responsible__title {
    font-family: 'Chivo Mono', monospace;
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}
.haven-responsible__text {
    color: var(--color-muted);
    line-height: 1.8;
    font-size: 1.1rem;
}
.haven-responsible__partners {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    justify-items: center;
    align-items: center;
}
.haven-responsible__partner-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.haven-responsible__partner-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
}
.haven-responsible__partner-logo {
    width: 190px;
    height: 66px;
    object-fit: contain;
    filter: grayscale(0.3);
    transition: filter 0.3s ease;
}
.haven-responsible__partner-link:hover .haven-responsible__partner-logo {
    filter: grayscale(0);
}

@media (max-width: 1024px) {
    .haven-responsible__container {
        gap: 4rem;
    }
    .haven-responsible__partners {
        gap: 2rem;
    }
}
@media (max-width: 768px) {
    .haven-responsible {
        padding: 4rem 1.5rem;
    }
    .haven-responsible__container {
        flex-direction: column;
        gap: 3.5rem;
    }
    .haven-responsible__title {
        font-size: 2.2rem;
        text-align: center;
    }
    .haven-responsible__text {
        text-align: center;
    }
    .haven-responsible__partners {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.8rem;
        max-width: 400px;
        margin: 0 auto;
    }
}
@media (max-width: 480px) {
    .haven-responsible__partners {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .haven-responsible__title {
        font-size: 2rem;
    }
}

.haven-footer {
    background-color: var(--color-base);
    color: var(--color-muted);
    padding: 2.5rem 2rem 1.5rem;
    border-top: 2px solid var(--color-surface);
    font-size: 0.95rem;
}
.haven-footer__upper {
    max-width: var(--container-inner-width);
    margin: 0 auto 2rem;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
}
.haven-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    justify-content: center;
}
.haven-footer__link {
    color: var(--color-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}
.haven-footer__link:hover {
    color: var(--color-accent);
}
.haven-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}
.haven-footer__brand-icon {
    font-family: 'Font Awesome 6 Solid';
    font-weight: 900;
    font-size: 2.2rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}
.haven-footer__brand-name {
    font-family: 'Chivo Mono', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-text);
}
.haven-footer__email {
    color: var(--color-accent);
    text-decoration: none;
    font-size: 1rem;
    word-break: break-word;
    transition: opacity 0.3s ease;
}
.haven-footer__email:hover {
    opacity: 0.8;
}
.haven-footer__lower {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid hsla(var(--hue-primary), 20%, 30%, 0.5);
    max-width: var(--container-inner-width);
    margin: 0 auto;
    font-size: 0.9rem;
    color: hsl(var(--hue-primary), 15%, 55%);
}

@media (max-width: 768px) {
    .haven-footer {
        padding: 2rem 1.5rem 1rem;
    }
    .haven-footer__upper {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        margin-bottom: 1.5rem;
    }
    .haven-footer__links {
        gap: 1.5rem;
        justify-content: center;
    }
    .haven-footer__link {
        font-size: 0.9rem;
    }
}
@media (max-width: 480px) {
    .haven-footer__links {
        gap: 1.2rem;
        row-gap: 1rem;
    }
    .haven-footer__link {
        flex: 0 0 calc(50% - 0.6rem);
        text-align: center;
    }
}