:root {
    --bg: #f3efe7;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-strong: #ffffff;
    --text: #182128;
    --muted: #5f6965;
    --border: rgba(24, 33, 40, 0.10);
    --primary: #bb4f2e;
    --secondary: #163845;
    --header-top-bg: #ffffff;
    --header-nav-bg: linear-gradient(180deg, #173f4a, #0f2d35);
    --footer-bg: linear-gradient(135deg, #143942, #0d2630 70%);
    --danger: #b42318;
    --success: #067647;
    --shadow: 0 20px 50px rgba(17, 31, 34, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(187, 79, 46, 0.10), transparent 30%),
        radial-gradient(circle at top right, rgba(22, 56, 69, 0.10), transparent 26%),
        linear-gradient(180deg, #fcfaf4 0%, var(--bg) 100%);
    color: var(--text);
}

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

img {
    max-width: 100%;
}

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

.site-header {
    position: relative;
    z-index: 10;
}

.site-header-top {
    background: var(--header-top-bg);
    border-bottom: 1px solid rgba(24, 33, 40, 0.08);
}

.site-header-nav {
    background: var(--header-nav-bg);
    box-shadow: 0 10px 24px rgba(15, 45, 53, 0.18);
}

.logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    padding: 18px 0;
}

.logo {
    width: 300px;
    max-width: 100%;
    height: auto;
    display: block;
}

.logo-placeholder,
.footer-logo-placeholder {
    max-width: 100%;
    min-height: 74px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(22, 56, 69, 0.04), rgba(22, 56, 69, 0.09));
    border: 1px dashed rgba(22, 56, 69, 0.16);
}

.logo-placeholder {
    width: 300px;
}

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 16px 0 18px;
}

.main-nav a {
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f4f7f6;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.main-nav a:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.site-main {
    padding: 40px 0 24px;
}

.page-banner-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.page-banner-shell {
    width: min(720px, 100%);
    min-height: 150px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(16, 52, 61, 0.10);
    background: #ffffff;
}

.page-banner-link,
.page-banner-image {
    display: block;
    width: 100%;
    height: 150px;
}

.page-banner-image {
    object-fit: cover;
}

.card {
    background: var(--surface);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 28px;
    margin-bottom: 24px;
}

.white-card,
.form-card,
.completed-shell,
.completed-card {
    background: var(--surface-strong);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    gap: 30px;
    align-items: center;
}

.hero-copy h1,
.section-title {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.section-title-sm {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.hero-copy p,
.section-copy {
    max-width: 62ch;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.75;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(22, 56, 69, 0.08);
    color: var(--secondary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-media img,
.question-image,
.option-card img {
    width: 100%;
    display: block;
    border-radius: 22px;
}

.survey-block {
    max-width: 940px;
    margin: 0 auto 24px;
}

.newsletter-card {
    max-width: 1020px;
    margin: 0 auto 24px;
}

.vote-actions {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.question-block + .question-block {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.question-block h2 {
    margin-top: 0;
}

.options-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 16px 0 20px;
}

.option-card {
    display: grid;
    gap: 10px;
    align-content: start;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 14px;
    cursor: pointer;
    background: #ffffff;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.option-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 16px;
}

.option-card:hover {
    transform: translateY(-2px);
    border-color: rgba(187, 79, 46, 0.28);
    box-shadow: 0 18px 30px rgba(16, 52, 61, 0.08);
}

.option-card input {
    margin: 0;
}

.chart-wrap {
    background: linear-gradient(180deg, rgba(22, 56, 69, 0.04), rgba(255, 255, 255, 0.98));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 16px;
    padding: 14px 22px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #d06a43);
    color: #ffffff;
    box-shadow: 0 16px 28px rgba(187, 79, 46, 0.24);
}

.btn-primary:disabled {
    opacity: 0.75;
    cursor: wait;
    transform: none;
}

.btn-secondary {
    background: rgba(22, 56, 69, 0.08);
    color: var(--secondary);
}

.btn-pill {
    min-width: 240px;
    border-radius: 999px;
    padding-inline: 28px;
}

.alert {
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.alert.success {
    background: #ecfdf3;
    color: var(--success);
}

.alert.error {
    background: #fff1f3;
    color: var(--danger);
}

.form-card {
    max-width: 780px;
    margin: 0 auto;
}

.form-shell {
    position: relative;
    overflow: hidden;
}

.form-shell::before {
    content: "";
    position: absolute;
    inset: -120px auto auto -120px;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(187, 79, 46, 0.12), transparent 65%);
    pointer-events: none;
}

.stack {
    display: grid;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.inline-fields {
    display: grid;
    gap: 14px;
}

.inline-fields-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    font: inherit;
    background: #ffffff;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: rgba(187, 79, 46, 0.42);
    box-shadow: 0 0 0 4px rgba(187, 79, 46, 0.08);
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.form-feedback {
    margin: 18px 0 0;
    border-radius: 18px;
    padding: 16px 18px;
    border: 1px solid transparent;
    line-height: 1.65;
}

.form-feedback-below {
    text-align: center;
}

.form-feedback.pending {
    background: rgba(22, 56, 69, 0.06);
    border-color: rgba(22, 56, 69, 0.10);
    color: var(--secondary);
}

.form-feedback.success {
    background: #ecfdf3;
    border-color: rgba(6, 118, 71, 0.16);
    color: var(--success);
}

.form-feedback.error {
    background: #fff1f3;
    border-color: rgba(180, 35, 24, 0.14);
    color: var(--danger);
}

.completed-grid {
    display: grid;
    gap: 18px;
}

.completed-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.completed-card {
    display: grid;
    align-content: start;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
    min-height: 240px;
    box-shadow: 0 10px 24px rgba(16, 52, 61, 0.05);
}

.completed-card h2 {
    margin: 0;
    font-size: 1.15rem;
}

.completed-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.embed-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    gap: 24px;
    align-items: start;
}

.embed-side-note {
    padding: 22px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(22, 56, 69, 0.06), rgba(187, 79, 46, 0.06));
    border: 1px solid var(--border);
    line-height: 1.75;
}

.embed-side-note strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.02rem;
}

.embed-side-note p {
    margin: 0;
    color: var(--muted);
}

.embed-variants {
    display: grid;
    gap: 24px;
}

.embed-card {
    display: grid;
    gap: 18px;
}

.embed-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
}

.embed-card-head h2 {
    margin: 0 0 8px;
}

.embed-card-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.embed-badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(22, 56, 69, 0.08);
    color: var(--secondary);
    font-size: 0.78rem;
    font-weight: 700;
}

.embed-preview-frame {
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(22, 56, 69, 0.03), rgba(255, 255, 255, 0.9));
    padding: 12px;
}

.embed-code-block {
    display: grid;
    gap: 10px;
}

.embed-code-block span {
    font-weight: 700;
}

.embed-code-block textarea {
    min-height: 128px;
    resize: vertical;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.94rem;
    line-height: 1.6;
}

.embed-actions {
    display: flex;
    justify-content: center;
}

.completed-card-meta {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(22, 56, 69, 0.08);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.completed-empty {
    grid-column: 1 / -1;
}

.load-more-wrap {
    display: grid;
    justify-items: center;
    margin-top: 26px;
}

.result-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 10px;
}

.result-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(22, 56, 69, 0.04);
}

.site-footer {
    background: var(--footer-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #e7f3f0;
    margin-top: 56px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 24px;
    padding: 34px 0;
}

.footer-logo {
    width: 220px;
    max-width: 100%;
    display: block;
}

.footer-logo-placeholder {
    width: 220px;
    min-height: 62px;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.site-footer h3 {
    margin-top: 0;
    color: #fff4e9;
}

.site-footer a:hover {
    color: #ffcfb5;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 0 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-left {
    min-height: 1px;
}

.footer-copyright {
    text-align: center;
    color: rgba(231, 243, 240, 0.86);
}

.footer-powered-by {
    justify-self: end;
    font-weight: 700;
}

@media (max-width: 1080px) {
    .completed-grid-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .site-header {
        position: relative;
    }

    .hero,
    .embed-hero,
    .footer-grid,
    .footer-bottom,
    .inline-fields-3 {
        grid-template-columns: 1fr;
    }

    .completed-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-powered-by,
    .footer-copyright {
        justify-self: center;
    }

    .main-nav {
        gap: 10px;
    }

    .main-nav a {
        width: 100%;
        text-align: center;
    }

    .embed-card-head {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .site-main {
        padding-top: 24px;
    }

    .card {
        padding: 20px;
        border-radius: 22px;
    }

    .logo-wrap {
        min-height: 84px;
        padding: 14px 0;
    }

    .btn-pill,
    .btn-primary,
    .btn-secondary {
        width: 100%;
        min-width: 0;
    }

    .completed-grid-4 {
        grid-template-columns: 1fr;
    }

    .result-list li {
        flex-direction: column;
    }

    .page-banner-shell {
        min-height: auto;
    }

    .page-banner-link,
    .page-banner-image {
        height: auto;
        aspect-ratio: 24 / 5;
    }
}
