/*
Theme Name: Aeronautica
Theme URI: https://pm-aeronautica.by
Author: PM Aeronautica
Description: Кастомная тема для сайта pm-aeronautica.by.
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aeronautica
*/

/* ── Базовый сброс ── */

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

body {
    margin: 0;
    font-family: "Roboto Condensed", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #f8f7f4;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Oswald", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

/* ── Каркас ── */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Hero на главной ── */

:root {
    --marquee-h: 56px;
}

/* Hero + бегущая строка под ним вместе занимают ровно один экран */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--marquee-h));
    background-color: #212d4d;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    color: #fff;
}

/* Затемнение для читаемости заголовка и шапки */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.hero .container {
    position: relative;
    width: 100%;
}

.hero-title {
    margin: 0;
    font-size: 3rem;
    line-height: 1.2;
    text-align: center;
    color: #fff;
}

@media (max-width: 768px) {
    .hero {
        background-image: var(--hero-bg-mobile, var(--hero-bg));
    }

    .hero-title {
        font-size: 2rem;
    }
}

/* ── Бегущая строка под hero ── */

.marquee {
    display: flex;
    align-items: center;
    height: var(--marquee-h);
    overflow: hidden;
    background: #212d4d;
    color: #fff;
}

.marquee-track {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    animation: marquee 40s linear infinite;
}

.marquee-logo {
    height: 28px;
    width: auto;
    margin-right: 40px;
}

.marquee-text {
    margin-right: 40px;
    font-family: "Oswald", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    white-space: nowrap;
}

@keyframes marquee {
    to {
        transform: translateX(-100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }
}
