:root {
    --ink: #18212f;
    --muted: #617089;
    --line: #d9e1ec;
    --bg: #f6f8fb;
    --brand: #0e7c66;
    --brand-dark: #075846;
    --accent: #c84949;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: var(--brand-dark);
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.header-inner,
.footer-grid,
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 800;
}

.nav-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 18px 0;
}

.nav-links a {
    color: var(--muted);
    font-weight: 700;
}

.language-menu {
    position: relative;
}

.language-menu summary {
    color: var(--muted);
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}

.language-menu summary::-webkit-details-marker {
    display: none;
}

.language-menu summary::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.language-menu div {
    position: absolute;
    z-index: 10;
    top: calc(100% + 14px);
    right: 0;
    display: grid;
    width: 220px;
    max-height: 70vh;
    overflow: auto;
    padding: 8px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 40px rgba(24, 33, 47, 0.16);
}

.language-menu div a {
    padding: 9px 10px;
    color: var(--ink);
    font-weight: 650;
}

.language-menu div a:hover {
    background: var(--bg);
}

.hero {
    background: linear-gradient(180deg, #eef9f6 0%, #fff 100%);
    border-bottom: 1px solid var(--line);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 42px;
    padding: 72px 0;
}

.eyebrow {
    color: var(--brand-dark);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.78rem;
}

h1 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: 3rem;
    line-height: 1.05;
}

h2 {
    margin: 0 0 12px;
}

.hero-copy,
.lede {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.search-form {
    display: flex;
    width: min(680px, 100%);
    margin-top: 28px;
    border: 1px solid var(--line);
    background: #fff;
}

.search-form.compact {
    margin: 24px 0;
}

.search-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 17px 18px;
    font-size: 1.05rem;
}

.search-form button,
.admin-form button,
.button-link {
    border: 0;
    background: var(--brand);
    color: #fff;
    padding: 14px 20px;
    font-weight: 800;
}

.hero-panel,
.callout,
.alert-box,
.dashboard-grid section,
.admin-card {
    border: 1px solid var(--line);
    background: #fff;
    padding: 24px;
}

.admin-card {
    color: var(--ink);
}

.admin-card span {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 850;
}

.admin-card p {
    margin: 0;
    color: var(--muted);
}

.admin-card:hover {
    border-color: var(--brand);
}

.metric {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.metric:last-child {
    border-bottom: 0;
}

.metric small {
    grid-column: 1 / -1;
    color: var(--muted);
}

.section {
    padding: 48px 0;
}

.narrow {
    max-width: 840px;
}

.tld-grid,
.blog-grid,
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.tld-card,
.blog-card {
    border: 1px solid var(--line);
    padding: 18px;
    color: var(--ink);
}

.tld-card {
    display: grid;
    gap: 10px;
}

.tld-card span,
.tld-card small {
    color: var(--muted);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.comparison-table th,
.comparison-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.comparison-table th {
    background: var(--bg);
}

.price-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.price-list div {
    border: 1px solid var(--line);
    padding: 18px;
}

.price-list dt {
    color: var(--muted);
}

.price-list dd {
    margin: 6px 0 0;
    font-size: 1.4rem;
    font-weight: 800;
}

.blog-card img,
.post-hero {
    width: 100%;
    height: auto;
    margin-bottom: 16px;
}

.content-body {
    line-height: 1.75;
}

.admin-form {
    display: grid;
    gap: 16px;
}

.admin-form label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.admin-form input {
    border: 1px solid var(--line);
    padding: 12px;
}

.alert-box {
    border-color: var(--accent);
    color: var(--accent);
    margin-bottom: 18px;
}

.site-footer {
    margin-top: 40px;
    padding: 36px 0;
    background: var(--ink);
    color: #fff;
}

.site-footer a,
.site-footer p {
    display: block;
    color: #d9e1ec;
}

@media (max-width: 760px) {
    .hero-inner {
        grid-template-columns: 1fr;
        padding: 48px 0;
    }

    h1 {
        font-size: 2.2rem;
    }

    .header-inner,
    .search-form,
    .footer-grid {
        align-items: stretch;
        flex-direction: column;
    }

    .search-form button {
        width: 100%;
    }

    .price-list {
        grid-template-columns: 1fr;
    }
}
