:root {
    --bg-top: #7db2d4;
    --bg-bottom: #b9d8ea;
    --card-bg: rgba(255, 255, 255, 0.86);
    --text-main: #183042;
    --text-muted: #3a5768;
    --accent: #2d77aa;
    --border: rgba(24, 48, 66, 0.12);
    --shadow: 0 18px 38px -26px rgba(10, 36, 58, 0.7);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    padding: 24px 20px 44px;
    background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
    font-family: "Inter", sans-serif;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
}
h1 {
    margin: 0 0 16px;
    text-align: center;
    font-size: clamp(1.6rem, 2vw, 2.2rem);
    font-weight: 750;

    a {
        color: inherit;
        text-decoration: none;

        &:hover {
            color: var(--accent);
        }
    }
}

.topBar {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    h1 {
        margin: 0;
        text-align: left;
    }

    nav {
        margin: 0;
    }
}

nav {
    > ul {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin: 0;
        padding: 0;
        list-style: none;

        > li {
            padding: 0;
            background: none;
            border: none;
            box-shadow: none;

            > a {
                display: inline-block;
                padding: 6px 4px;
                color: var(--text-main);
                text-decoration: none;
                opacity: 0.85;
                transition: color 0.2s ease, opacity 0.2s ease;

                &:hover {
                    color: var(--accent);
                    opacity: 1;
                }
            }
        }
    }
}

.mapWrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 20px;

    .map {
        min-height: 600px;
        border-radius: 14px;
        overflow: hidden;
        border: 1px solid rgba(24, 48, 66, 0.08);
    }

    aside {
        display: flex;
        flex-direction: column;
        gap: 14px;

        > input[type="search"] {
            width: 100%;
            padding: 12px 14px;
            border-radius: 10px;
            border: 1px solid var(--border);
            background: #fff;
            font: inherit;
            color: var(--text-main);
            outline: none;

            &:focus {
                border-color: var(--accent);
                box-shadow: 0 0 0 3px rgba(45, 119, 170, 0.15);
            }
        }
    }

    .result {
        border-radius: 12px;
        border: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.75);
        padding: 14px;

        p {
            margin: 0;
            text-align: center;
            color: var(--text-muted);
            line-height: 1.5;
        }

        form {
            margin-top: 12px;
            display: flex;
            gap: 10px;
            align-items: center;

            input {
                flex: 1;
                min-width: 0;
                padding: 10px 12px;
                border-radius: 10px;
                border: 1px solid var(--border);
                background: #fff;
                font: inherit;
                color: var(--text-main);
                outline: none;

                &:focus {
                    border-color: var(--accent);
                    box-shadow: 0 0 0 3px rgba(45, 119, 170, 0.15);
                }
            }

            button {
                padding: 10px 14px;
                border-radius: 10px;
                border: 1px solid #2a6f9f;
                background: linear-gradient(180deg, #3f8ec4 0%, #2d77aa 100%);
                color: #fff;
                font: inherit;
                font-weight: 600;
                cursor: pointer;
                transition: filter 0.2s ease, transform 0.1s ease;

                &:hover {
                    filter: brightness(1.05);
                }

                &:active {
                    transform: translateY(1px);
                }
            }
        }
    }
}

.info,
.pricing {
    max-width: 1400px;
    margin: 20px auto 0;
    padding: 18px 20px;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.info p {
    margin: 0 0 12px;
    line-height: 1.65;
    color: var(--text-muted);
}

.info p:last-child {
    margin-bottom: 0;
}

.siteFooter {
    max-width: 1400px;
    width: 100%;
    margin: auto auto 0;
    padding: 6px 0 0;
    color: var(--text-muted);
    text-align: center;
    font-size: 0.78rem;
    opacity: 0.82;
    line-height: 1.2;

    p {
        margin: 0;
    }

    a {
        color: var(--text-main);
        text-decoration: none;

        &:hover {
            color: var(--accent);
            text-decoration: underline;
        }
    }

    .footerLine {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        flex-wrap: wrap;
    }
}

.pricing h2 {
    margin: 0 0 16px;
}

.pricing table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.pricing th,
.pricing td {
    padding: 12px 10px;
    border-bottom: 1px solid #e4edf2;
    text-align: center;
    vertical-align: top;
}

.pricing th:first-child,
.pricing td:first-child {
    text-align: left;
}

.pricing thead th {
    background: #f2f8fc;
    color: #21465f;
}

.pricing tfoot td {
    font-weight: 700;
}

.pricing tr:last-child td {
    border-bottom: none;
}

article.blogArticle, .blogIndex article{
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 32px;
}
.blogIndex a{
    color:inherit;
    text-decoration: inherit;
}
@media (max-width: 1024px) {
    .mapWrapper {
        grid-template-columns: 1fr;

        .map {
            min-height: 460px;
        }

        .result {
            form {
                flex-direction: column;
                align-items: stretch;
            }
        }
    }
}

@media (max-width: 700px) {
    body {
        padding: 18px 12px 28px;
    }

    .topBar {
        justify-content: center;

        h1 {
            text-align: center;
            width: 100%;
        }
    }

    .mapWrapper {
        .map {
            min-height: 360px;
        }
    }

    .pricing {
        overflow-x: auto;

        table {
            min-width: 700px;
        }
    }

    .siteFooter {
        font-size: 0.74rem;

        .footerLine {
            gap: 4px;
        }
    }
}
