@font-face {
    font-family: "Geologica";
    src: url("../fonts/geologica/Geologica-Regular.b5297e2ebc7e.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geologica';
    src: url("../fonts/geologica/Geologica-Medium.8ff809748407.woff2") format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geologica';
    src: url("../fonts/geologica/Geologica-SemiBold.79a6ca3ac2ea.woff2") format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geologica';
    src: url("../fonts/geologica/Geologica-Bold.0ac807511140.woff2") format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-sans: "Geologica", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --color-brand: #006699;
    --color-accent: #84aa32;

    --header-contactbar-h: 2rem;
    /* 32px */
    --header-navbar-h: 4.7rem;
    /* 75.2px (и мобила, и десктоп одинаковые) */


    --content-top-desktop: calc(var(--header-contactbar-h) + var(--header-navbar-h));
    --content-top-mobile: var(--header-navbar-h);
}

html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 2) Картинки/видео не вылезают из контейнеров */
img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: var(--font-sans);
    word-wrap: break-word;
    line-height: 1.5;
    padding-top: var(--content-top-mobile);
}

/* 4) Фокус для клавиатуры (важно для доступности) */
:focus-visible {
    outline: 3px solid rgba(0, 102, 153, .5);
    /* brand */
    outline-offset: 2px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Десктоп */
@media (min-width: 992px) {
    body {
        padding-top: var(--content-top-desktop);
    }
}


/* COOKIE CONSENT */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;

    padding: 0.9rem 0;

    background: rgba(20, 20, 20, 0.97);
    color: #fff;

    box-shadow: 0 -0.5rem 1.25rem rgba(0, 0, 0, 0.18);
}

.cookie-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-banner__text {
    flex: 1 1 auto;

    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-banner a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 0.15rem;
}

.cookie-banner a:hover {
    color: #fff;
    text-decoration-thickness: 2px;
}

.cookie-banner__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.75rem;
}

.cookie-banner__actions .btn {
    min-height: 2.25rem;
    padding-inline: 1rem;

    border-radius: 0.5rem;
    white-space: nowrap;
}

.cookie-settings-link {
    display: inline-block;

    border: 0;
    padding: 0;
    background: transparent;

    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.cookie-settings-link:hover,
.cookie-settings-link:focus-visible {
    color: var(--color-accent);
}

@media (max-width: 767.98px) {
    .cookie-banner {
        padding: 1rem 0;
    }

    .cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .cookie-banner__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner__actions .btn {
        width: 100%;
        white-space: normal;
    }
}

.site-messages {
    position: fixed;
    top: calc(var(--header-offset, 6rem) + 0.75rem);
    right: 1rem;
    z-index: 1085;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(24rem, calc(100vw - 2rem));
    pointer-events: none;
}

.site-message {
    pointer-events: auto;
    margin: 0;
    border: none;
    border-radius: 0.9rem;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.12);
    padding: 0.9rem 1rem;
    background: #ffffff;
    color: #1f2a37;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.site-message.fade:not(.show) {
    opacity: 0;
    transform: translateY(-0.35rem);
}

.site-message--success {
    background: var(--color-accent);
    color: white;
}

.site-message--error,
.site-message--danger {
    background: red;
    color: white;
}

.site-message--warning {
    background: yellow;
    color: white;
}

.site-message--info {
    background: cyan;
    color: white;
}

.site-message .btn-close {
    font-size: 0.85rem;
}

@media (max-width: 991.98px) {
    .site-messages {
        top: calc(var(--header-offset-mobile, 5.5rem) + 0.5rem);
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(92vw, 24rem);
    }
}