*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: #000;
    background-color: #fff;
}

a {
    color: #1976d2;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Контейнер */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Шапка — как на главной */
:root {
    --header-height: 96px;
}

.site-header {
    background-color: #f5f5f5;
    color: #000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    height: var(--header-height);
    position: relative;
    z-index: 20;
}

.header-inner {
    height: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 32px;
    position: relative;
}

/* Левая часть */

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.header-brand {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 18px;
    font-weight: 600;
}

.brand-subtitle {
    font-size: 12px;
    color: #757575;
}

/* Навигация */

.main-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.nav-link {
    text-decoration: none;
    color: #000;
    font-size: 14px;
    padding: 6px 0;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: #ffb300;
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link--active {
    font-weight: 600;
}

/* Правая часть (опционально) */
.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 13px;
}

.header-line {
    white-space: nowrap;
}

.header-contacts {
    display: flex;
    gap: 16px;
}

.header-phone::before {
    content: "☎ ";
    font-size: 12px;
}

.header-email::before {
    content: "✉ ";
    font-size: 12px;
}

/* Кнопка меню (моб.) */

.menu-toggle {
    display: none;
    border: none;
    background-color: #ffb300;
    width: 44px;
    height: 44px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    background-color: #000;
    position: relative;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-toggle-icon::before {
    top: -6px;
}

.menu-toggle-icon::after {
    top: 6px;
}

/* Мобильное меню */

.mobile-menu {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 40;
    background-color: rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
    display: block;
}

.mobile-menu-panel {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.25);
    padding-top: 16px;
}

.menu-close {
    border: none;
    background-color: #ffb300;
    width: 44px;
    height: 44px;
    margin-left: 24px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.menu-close-icon,
.menu-close-icon::before {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    background-color: transparent;
}

.menu-close-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #000 0 0) content-box,
                linear-gradient(-45deg, #000 0 0) content-box;
}

.mobile-menu-item {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
    color: #000;
    text-decoration: none;
    border-top: 1px solid #eeeeee;
}

.mobile-menu-item:last-child {
    border-bottom: 1px solid #eeeeee;
}

.mobile-menu-item:hover {
    background-color: #fafafa;
}

/* Контент */

.page-main {
    padding: 40px 0 56px;
}

.stub {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: 32px 24px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background-color: #fafafa;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.stub h1 {
    margin: 0 0 12px;
    font-size: 26px;
}

.stub p {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.6;
}

/* Адаптивность */

@media (max-width: 768px) {
    .header-inner {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        row-gap: 6px;
    }

    .header-left {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    .header-right {
        grid-column: 1 / 3;
        grid-row: 2 / 3;
        align-items: center;
        text-align: center;
        gap: 2px;
        font-size: 13px;
    }

    .header-line {
        white-space: normal;
    }

    .header-contacts {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        justify-self: end;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .stub {
        padding: 24px 18px;
    }

    .stub h1 {
        font-size: 22px;
    }
}
