/* ========================================
   Сброс стилей (Reset)
   ======================================== */

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

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #222;
    background-color: #fff;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}

p, ul, ol, dl, blockquote, pre, figure {
    margin: 0;
}

ul, ol {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
    background-color: transparent;
}

a:hover,
a:focus {
    text-decoration: underline;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

button, input, optgroup, select, textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button, input {
    overflow: visible;
}

button, select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
    cursor: pointer;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

textarea {
    overflow: auto;
}

[hidden] {
    display: none;
}

/* ========================================
   Базовая сетка и контейнер
   ======================================== */

.container {
    width: 100%;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ========================================
   Служебные классы
   ======================================== */

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.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;
}

/* ========================================
   Шапка
   ======================================== */

.header {
    position: relative;
    width: 100%;
    background: #fff;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.header__inner {
    position: relative;
    max-width: 1800px;
    margin: 0 auto;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

/* ----- Десктопные меню ----- */
.header__nav {
    display: flex;
    gap: 32px;
    flex: 1;
}

.header__nav--left {
    justify-content: flex-end;
    padding-right: 100px; /* место под полукруг */
}

.header__nav--right {
    justify-content: flex-start;
    padding-left: 100px;
}

.header__link {
    font-size: 15px;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}

.header__link:hover {
    color: #000;
    text-decoration: none;
}

/* ----- Центральный логотип (полукруг) ----- */
.header__logo-wrap {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 2;
}

.header__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 75px;               /* половина круга */
    background: #fff;
    border-radius: 0 0 75px 75px; /* нижний полукруг */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-decoration: none;
    overflow: hidden;
}

.header__logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #111;
    margin-top: 8px; /* чуть опускаем текст */
}

/* ----- Бургер (скрыт на десктопе) ----- */
.header__burger {
    display: none;
    width: 32px;
    height: 24px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.header__burger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: #222;
    margin-bottom: 6px;
    transition: 0.3s;
}

.header__burger-line:last-child {
    margin-bottom: 0;
}

/* ----- Мобильное меню ----- */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 20px;
}

.mobile-menu__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    font-size: 36px;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    color: #222;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.mobile-menu__link {
    font-size: 24px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
}

.mobile-menu__link:hover {
    text-decoration: none;
    opacity: 0.7;
}

/* ========================================
   Адаптив
   ======================================== */

@media (max-width: 900px) {

    .header__nav {
        display: none;
    }

    .header__logo-wrap {
        position: static;
        transform: none;
        order: 1;
    }

    .header__logo {
        width: auto;
        height: auto;
        background: none;
        border-radius: 0;
        box-shadow: none;
        justify-content: flex-start;
    }

    .header__logo-text {
        font-size: 20px;
        margin-top: 0;
    }

    .header__burger {
        display: block;
        order: 2;
        margin-left: auto;
    }

    .header__inner {
        height: 64px;
    }
}