:root {
    --brand: #0a9999;
    --ink: #243550;
    --page-bg: #f3f8fa;
    --panel: #ffffff;
    --line: #d5e3e8;
    --muted: #5e7083;
}

html,
body {
    background: var(--page-bg);
    color: var(--ink);
    font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
}

a {
    color: #117d8c;
}

.btn-primary {
    background: linear-gradient(90deg, #0a9999, #0b8e95);
    border: 0;
    border-radius: 12px;
    padding: 0.52rem 1.25rem;
    font-weight: 700;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #0d8b8b, #0a7d8a);
}

.btn-outline-secondary {
    border-radius: 12px;
    border-color: #bdd4dd;
    color: var(--ink);
}

.site-header {
    background:
        radial-gradient(circle at 50% -20%, rgba(10, 153, 153, 0.24) 0, rgba(10, 153, 153, 0) 48%),
        linear-gradient(180deg, #f8fcfd 0%, #edf5f8 100%);
    border-bottom: 1px solid var(--line);
    padding: 30px 0 24px;
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand {
    text-decoration: none;
}

.brand-center {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.brand-mark {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.brand-word {
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: 0.2px;
}

.brand-main {
    color: var(--ink);
}

.brand-accent {
    color: var(--brand);
}

.search-wrap {
    margin-top: 18px;
    width: 100%;
    max-width: 860px;
}

.global-search-form {
    background: var(--panel);
    border-radius: 16px;
    border: 1px solid #cde0e6;
    box-shadow: 0 12px 26px rgba(27, 50, 83, 0.11);
    padding: 14px;
}

.global-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.global-search-row .form-control {
    border-radius: 12px;
    min-height: 62px;
    border: 1px solid #c8dbe3;
    padding: 0 14px;
    color: var(--ink);
    font-size: 1.125rem;
}

.global-search-row .form-control::placeholder {
    color: #9aabba;
    opacity: 1;
}

.global-search-row .form-control:focus {
    border-color: #72bfc7;
    box-shadow: 0 0 0 0.2rem rgba(10, 153, 153, 0.16);
}

.global-search-row .btn {
    min-height: 50px;
    min-width: 114px;
}

.search-hint {
    margin-top: 9px;
    color: #9fb0bd;
    font-size: 0.82rem;
    line-height: 1.35;
}

.search-activity {
    margin-top: 8px;
    font-size: 0.83rem;
    color: #6f8493;
}

.search-error {
    color: #b72640;
    margin-top: 7px;
    font-size: 0.88rem;
}

.search-timer {
    color: #b72640;
    font-weight: 700;
}

.main-content > .container {
    padding: 28px 12px 42px;
    max-width: 960px;
}

.site-header .container,
.footer > .container {
    max-width: 1140px;
}

.page {
    width: 100%;
}

.page h1 {
    margin-bottom: 14px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: 0.2px;
}

.hero {
    position: relative;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 8px 0 18px;
    box-shadow: none;
}

.hero-home {
    padding: 16px 0 24px;
}

.hero-home::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: calc(100% + 10px);
    border-radius: 22px;
    background:
        radial-gradient(circle at 18% 26%, rgba(10, 153, 153, 0.13) 0, rgba(10, 153, 153, 0) 56%),
        linear-gradient(125deg, rgba(255, 255, 255, 0.58), rgba(240, 249, 250, 0.36));
    border: 1px solid rgba(188, 220, 226, 0.45);
    z-index: -1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    margin-bottom: 9px;
    border-radius: 999px;
    border: 1px solid #b8dde3;
    background: #ecf8f9;
    color: #0a9999;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 620px;
    font-size: clamp(2.25rem, 6vw, 3.4rem);
    line-height: 1.06;
    margin-bottom: 14px;
}

.hero-lead,
.hero-sub {
    max-width: none;
}

.hero-lead {
    font-size: clamp(1.12rem, 2.3vw, 1.42rem);
    line-height: 1.42;
    margin-bottom: 8px;
}

.hero-sub {
    color: #3f5871;
    font-size: 1.08rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.hero::after {
    content: "";
    display: block;
    width: 100%;
    height: 5px;
    margin-top: 19px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(10, 153, 153, 0.95), rgba(10, 153, 153, 0.22));
}

.hero-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.content-card {
    margin-top: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 22px 0 6px;
    box-shadow: none;
}

.content-card + .content-card {
    margin-top: 12px;
    border-top: 1px solid #d7e6ea;
    padding-top: 26px;
}

.content-card h2 {
    margin-bottom: 12px;
    font-size: clamp(1.55rem, 3.2vw, 2.1rem);
    letter-spacing: 0.1px;
}

.content-card p {
    max-width: 900px;
    margin-bottom: 0.95rem;
}

.error-card {
    border: 1px solid #d7e6ea;
    border-radius: 16px;
    background: #fbfdfe;
    padding: 20px 18px;
}

.error-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #b8dde3;
    background: #ecf8f9;
    color: #0a9999;
    font-weight: 800;
    margin-bottom: 8px;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.error-debug {
    margin-top: 14px;
}

.faq-accordion {
    display: grid;
    gap: 10px;
}

.faq-item {
    border: 1px solid #d2e4ea;
    border-radius: 14px;
    background: #f8fcfd;
    overflow: hidden;
}

.faq-item[open] {
    background: #ffffff;
    border-color: #b9d8e2;
    box-shadow: 0 8px 20px rgba(23, 54, 74, 0.08);
}

.faq-question {
    cursor: pointer;
    list-style: none;
    padding: 14px 42px 14px 16px;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ink);
    position: relative;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #0a9999;
    font-size: 1.2rem;
    line-height: 1;
}

.faq-item[open] .faq-question::after {
    content: "-";
}

.faq-answer {
    padding: 0 16px 14px;
}

.faq-answer p {
    margin: 0;
    max-width: none;
}

.steps-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 24px;
    position: relative;
}

.steps-list::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 16px;
    height: 1px;
    background: linear-gradient(90deg, rgba(10, 153, 153, 0.12), rgba(36, 53, 80, 0.18), rgba(10, 153, 153, 0.12));
}

.step-item {
    position: relative;
    padding-right: 10px;
}

.step-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    width: fit-content;
    padding: 0 5px;
    margin-left: -5px;
    background: var(--page-bg);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid #b8dde3;
    background: #eff8f9;
    color: #0a9999;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.steps-list li h3 {
    margin: 0;
    font-size: 1.03rem;
    font-weight: 700;
    color: var(--ink);
}

.steps-list li p {
    margin: 0 0 0 48px;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.45;
}

.lead-text {
    color: var(--muted);
}

.article-hero {
    margin: 20px 0 18px;
}

.article-hero-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 18px 40px rgba(21, 52, 66, 0.12);
}

.comment-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.comment-item:last-child {
    border-bottom: 0;
}

.comment-meta {
    color: var(--muted);
    font-size: 0.88rem;
    margin-bottom: 4px;
}

.char-counter {
    color: var(--muted);
    margin-bottom: 10px;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-input {
    flex: 1 1 auto;
}

.hp-wrap {
    position: absolute;
    left: -5000px;
    top: -5000px;
}

.share-box {
    margin-top: 14px;
}

.share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border: 1px solid rgba(215, 227, 232, 0.55);
    border-radius: 999px;
    background: rgba(36, 53, 80, 0.18);
    color: #f2f8fa;
    text-decoration: none;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1;
}

.share-link:hover {
    border-color: rgba(201, 232, 235, 0.88);
    background: rgba(10, 153, 153, 0.45);
    color: #fff;
    text-decoration: none;
}

.share-copy {
    cursor: pointer;
}

.share-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid rgba(196, 227, 232, 0.55);
    border-radius: 999px;
    background: rgba(10, 153, 153, 0.18);
    color: #f2f8fa;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.share-dropdown {
    position: relative;
    display: inline-block;
}

.share-menu {
    position: absolute;
    z-index: 20;
    right: 0;
    bottom: calc(100% + 8px);
    min-width: 232px;
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(201, 223, 229, 0.35);
    background: #2a3e5d;
    box-shadow: 0 14px 24px rgba(20, 33, 51, 0.34);
}

.share-dropdown.is-open .share-menu {
    display: flex;
}

.share-menu .share-link {
    justify-content: flex-start;
}

.footer {
    border-top: 1px solid #2b4468;
    background: linear-gradient(120deg, #243550, #20314a);
    padding: 24px 0 18px;
    color: #e0edf0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.85fr 0.85fr;
    gap: 16px;
}

.footer-title {
    font-weight: 800;
    color: #fff;
}

.footer-copy {
    color: #c2d5df;
}

.footer-meta {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.footer-copyright {
    color: #dce9ef;
    font-weight: 400;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links a {
    color: #e0edf0;
    text-decoration: none;
}

.footer-links a:hover {
    color: #9de2de;
}

.footer-share-inline {
    margin-top: 6px;
}

.footer-bottom {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(199, 217, 236, 0.16);
    text-align: center;
}

@media (max-width: 768px) {
    .brand-mark {
        width: 56px;
        height: 56px;
    }

    .brand-word {
        font-size: clamp(1.7rem, 9vw, 2.35rem);
    }

    .hero-home {
        padding: 8px 0 18px;
    }

    .hero-home::before {
        left: 0;
        width: 100%;
    }

    .hero-eyebrow {
        font-size: 0.72rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .global-search-row {
        flex-direction: column;
        align-items: stretch;
    }

    .steps-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .steps-list::before {
        display: none;
    }

    .step-item {
        padding-right: 0;
    }

    .main-content > .container {
        padding-top: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .error-actions .btn {
        width: 100%;
    }
}
