/* === Базовые стили === */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: var(--brand-bg);
    color: var(--brand-fg);
}

body {
    padding: 0;
}

/* === Контейнер === */
.container {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 16px;
}

/* === Header поверх hero === */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 64px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header__logo .logo-text {
    font-family: "Bowler", sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
}

.header__logo img {
    display: block;
    height: 20px; /* подгони под макет */
    width: auto;
    padding: 0.5rem 0; /* «охранное поле» сверху/снизу */
}

.header__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.header__nav a {
    font-family: "Jura", sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--brand-fg);
    text-decoration: none;
    transition: color 0.2s ease;
}

.header__nav a:hover {
    color: var(--green-400);
}

/* Мобильная версия */
@media (max-width: 768px) {
    .header__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .header__nav {
        gap: 1rem;
    }
}

/* === Hero === */
.hero {
    position: relative;
    min-height: 100svh;
    height: 100dvh;
    overflow: hidden;
}

.hero picture,
.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Контент hero */
.hero__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 80px;
}

.hero__content .accent-text {
    font-family: "PICO-8", monospace; /* акцентный */
    font-size: 2.5rem; /* размер по макету — подгони под высоту заголовка */
    font-weight: normal;
    line-height: 1; /* без лишнего межстрочного */
    letter-spacing: normal;
    color: var(--green-500); /* акцентный цвет */
    margin: 0;
    /* отступ снизу равен высоте заголовка (см. брендбук) */
    margin-bottom: 1.5rem;
}

.hero__title {
    font-family: "Bowler", sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    margin: 0.25rem 0 0.5rem;
}

.hero__subtitle {
    font-family: "Jura", sans-serif;
    font-weight: 300;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.hero__actions .button {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* === Кнопки === */
.button {
    display: inline-block;
    font-family: "Jura", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition:
        background 0.3s ease,
        transform 0.15s ease;
}

.button-primary {
    background: var(--green-500);
    color: var(--brand-fg);
    text-decoration: none;
}

.button-primary:hover {
    background: var(--green-400);
}

.button-primary:active {
    transform: scale(0.98);
}

/* Кнопка CTA внизу hero */
.hero__cta {
    background: none;
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
}

.hero__cta:active {
    transform: translateX(-50%) scale(0.98);
}

/* === Footer === */
.site-footer {
    background: var(--brand-bg);
    color: var(--brand-fg);
    padding: 2rem 0;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer__brand {
    font-family: "Jura", sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--neutral-500);
    margin: 0;
}

.footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__nav a {
    font-family: "Jura", sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--brand-fg);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__nav a:hover {
    color: var(--green-400);
}
