:root {
    --color-primary: #225378;
    --color-secondary: #bfd1db;
    --color-text: rgba(10,14,21,0.91);
    --color-muted: #808080;
    --border-color: #ccc;
    --font-size-base: 16px;
    --font-size-title: 42px;
    --font-size-mini-title: 24px;
}

/* Общие стили */
* {
    font-family: "Jost", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    transition: .3s ease-in-out;
    font-size: var(--font-size-base);
    color: var(--color-text);
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
}

a { text-decoration: none; }

input {
    border: 0;
    outline: 0;
}

input:focus { outline: none!important; }

input::placeholder { color: var(--color-primary); }

/* Header */
.app-header {
    width: 100%;
    background-color: var(--color-primary);
    display: flex;
    justify-content: center;
}

.app-shadow {
    box-shadow: 0px 12px 10px -7px rgba(34, 83, 120, 0.2);
}

.app-header-menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #ffffff;
}

.app-container--header {
    width: 100%;
    max-width: 1800px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative; /* важно для позиционирования мобильного меню */
}

.app-container--header-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; /* сразу под header */
    left: 0;
    right: 0;
    background-color: var(--color-primary);
    padding: 10px 0;
    gap: 10px;
    z-index: 9999;
    max-height: 500px;
    opacity: 1;
}


.app-container--header-logo {
    width: 200px;
    height: 90px;
    background-image: url("/content/pics/logo_webtools_white.svg");
    background-repeat: no-repeat;
    background-position: left;
    background-size: contain;
}

.app-container--header-menu {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    overflow: hidden;
}


.app-container--header-menu-item {
    color: #ffffff;
    font-size: 22px;
    line-height: 90px;
}

.app-container--header-menu-item-link:hover .app-container--header-menu-item {
    color: var(--color-secondary);
}

/* Основной контейнер */
.app-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 36px;
    align-items: center;
}

/* Блоки */
.app-container--block:nth-child(2n) { background-color: #fafafa; }

.app-container--block {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 0;
}

.app-container--block-inner {
    width: 100%;
    max-width: 1800px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Описание сервиса */
.app-container--block-description-logo {
    width: 320px;
    height: 170px;
    background-image: url("/content/pics/logo_webtools_blue.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin-top: 36px;
}

.app-container--block-description-title {
    font-size: var(--font-size-title);
    color: var(--color-primary);
    font-weight: bold;
    text-align: center;
    width: 100%;
    margin-top: 16px;
}
.app-container--block-description-title {
    font-size: 28px;
    color: var(--color-primary);
    font-weight: bold;
    text-align: center;
    width: 100%;
    margin: 32px 0;
}

.app-container--block-features{
    display: flex;
    flex-direction: column;
    gap:12px;
    padding: 16px 0 64px 0;
}


.app-container--block-features div{
    font-size: 28px;
}

.app-container--block-description-text {
    text-align: center;
    width: 90%;
    max-width: 1200px;
    padding-top: 36px;
}

.app-container--block-description-text p {
    font-size: 26px;
    line-height: 48px;
}

.app-text--muted {
    color: var(--color-muted);
    font-weight: bold;
}

/* Поиск */
.app-container--block-example-search {
    width: 100%;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.app-container--block-example-search-input {
    display: flex;
    gap: 12px;
    flex: 1 1 auto;
    height: 48px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 0;
    box-sizing: border-box;
}

.app-container--search-input {
    flex: 1;
    height: 100%;
    padding: 0 12px;
    border: none;
    outline: none;
    background-color: transparent;
}

.app-container--search-btn {
    width: 120px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: #fff;
    background-color: var(--color-primary);
    height: 100%;
    text-align: center;
    font-size: 16px;
    line-height: 48px;
}

/* Результаты поиска */
.app-container--block-example-search-result {
    width: 100%;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.app-container--block-example-search-result-map,
.app-container--block-example-search-result-source {
    flex: 1 1 48%;
    min-width: 300px;
    height: 500px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    padding: 5px;
}

.app-container--block-example-search-result-source {
    overflow-y: auto;
    overflow-x: hidden;
    font-family: "Lucida Console", "Lucida Sans Typewriter", monaco, "Bitstream Vera Sans Mono", monospace;
    position: relative;
}

.app-container--block-example-search-result-source::after {
    content: "↓";
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 18px;
    color: var(--color-muted);
}

.app-container--block-example-search-result-map:hover {
    cursor: grab;
    border-color: var(--color-primary);
}

/* Скролл */
.app-scroll::-webkit-scrollbar {
    width: 7px;
    background-color: #f9f9fd;
}

.app-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(0,21,34,0.98);
}

.app-scroll::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.2);
    border-radius: 7px;
    background-color: #f9f9fd;
}

/* Footer */
.app-footer {
    width: 100%;
    background-color: var(--color-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
    box-sizing: border-box;
}

.app-container--footer:first-child {
    width: 100%;
    max-width: 1800px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
}

.app-container--footer-logo {
    width: 200px;
    height: 180px;
    background-image: url("/content/pics/logo_webtools_white.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}

.app-container--footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: center;
    justify-content: flex-end;
}

.app-container--footer-menu-item {
    color: #ffffff;
    font-size: 22px;
    line-height: 90px;
}

.app-container--footer-menu-item-link:hover .app-container--footer-menu-item {
    color: var(--color-secondary);
}

.app-container--footer div { color: #ffffff; }

.app-container--footer:last-child {
    width: 100%;
    text-align: center;
    margin-top: 16px;
    font-size: 16px;
    color: #ffffff;
}




/* Медиазапросы */
@media (max-width: 1024px) {
    .app-container--block-description-text { width: 85%; }

    .app-container--block-example-search-result-map,
    .app-container--block-example-search-result-source { height: 400px; }

    .app-container--footer-logo { width: 160px; height: auto; }

    .app-container--footer-menu-item { font-size: 24px; line-height: 1.2; }

    .app-container--footer:last-child { font-size: 18px; margin-top: 12px; }
}

@media (max-width: 768px) {


    .app-container--block-description-text p {
        font-size: 24px;
        line-height: 36px;
    }


    .app-header-menu-toggle {
        display: block;
    }
    .app-container--header-menu {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        align-items: center;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-primary);
        padding: 0;
        max-height: 0;
        opacity: 0;
        z-index: 9999;
    }

    .app-container--header-menu.active {
        display: flex; /* показываем при клике */
        max-height: 500px; /* высота под все пункты меню */
        opacity: 1;
        padding: 10px 0;
    }

    /* Стили для пунктов меню */
    .app-container--header-menu-item {
        line-height: 1.5;
        font-size: 24px;
        text-align: center;
    }
    .app-container--header-menu-item-link {
        width: 100%;
    }
    .app-container--block-example-search { flex-direction: row; flex-wrap: wrap; }

    .app-container--block-example-search-input { flex: 1 1 70%; }
    .app-container--search-btn { flex: 1 1 28%; height: 48px; }

    .app-container--block-example-search-result { flex-direction: column; }

    .app-container--block-example-search-result-map,
    .app-container--block-example-search-result-source { flex: 1 1 100%; height: 300px; }

    .app-container--header-menu-item,
    .app-container--footer-menu-item { line-height: 1.5; font-size: 16px; }

    .app-container--footer:first-child { flex-direction: column; align-items: center; gap: 12px; }

    .app-container--footer-menu { flex-direction: column; justify-content: center; flex-wrap: nowrap; gap: 8px; align-items: center; }

    .app-container--footer-menu-item { font-size: 16px; line-height: 1.5; }

    .app-container--footer:last-child { font-size: 13px; margin-top: 10px; }
}

@media (max-width: 480px) {
    .app-container--footer-logo { width: 140px; margin-bottom: 10px; }

    .app-container--footer-menu-item { font-size: 14px; }

    .app-container--footer:last-child { font-size: 12px; margin-top: 8px; }
}
