:root {
    --ink: #0e1320;
    --ink-soft: #2f3b52;
    --muted: #667087;
    --line: #d5d9e2;
    --panel: #ffffff;
    --accent: #e24b2d;
    --accent-dark: #b5351f;
    --accent-glow: rgba(226, 75, 45, 0.25);
    --mint: #d6f5ea;
    --sky: #e8f1ff;
    --page: #f6f3ef;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Space Grotesk", system-ui, sans-serif;
    margin: 0;
    color: var(--ink);
    background: radial-gradient(circle at top left, #ffffff 0%, #f4efe8 40%, #efe8df 100%);
    min-height: 100vh;
}

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    display: grid;
    gap: 28px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px;
    /*box-shadow: var(--shadow);
    animation: rise 0.7s ease both;*/
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 28px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--mint), transparent 70%);
    opacity: 0.7;
    pointer-events: none;
}

.hero::before {
    content: "";
    position: absolute;
    left: -140px;
    bottom: -140px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, var(--sky), transparent 70%);
    opacity: 0.7;
    pointer-events: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--mint);
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

h1,
h2 {
    font-family: "Fraunces", "Times New Roman", serif;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.2rem, 3vw, 3rem);
    margin: 0 0 12px;
}

h2 {
    font-size: 1.6rem;
    margin: 0;
}

.lead {
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 20px;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.stat {
    background: #f5f6f8;
    border: 1px solid #e6e9ef;
    border-radius: 16px;
    padding: 12px 14px;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 600;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--muted);
}

.hero-card {
    background: #ffffff;
    border: 1px solid #e9edf3;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    align-self: center;
    min-width: 0;
}

.form {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.field {
    display: grid;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
}

.field label {
    font-weight: 600;
    display: block;
}

input[type="date"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: block;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    font-size: 1rem;
    font-family: inherit;
    background: #fbfbfd;
    color: var(--ink);
    transition: border 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

input[type="date"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

@supports (-webkit-touch-callout: none) {
    input[type="date"] {
        inline-size: 100%;
        max-inline-size: 100%;
        -webkit-appearance: none;
        appearance: none;
        min-height: 48px;
        line-height: 1.2;
        padding-block: 12px;
    }
}

.options {
    display: grid;
    gap: 10px;
    background: #f6f8fb;
    border: 1px solid #e4e8ef;
    border-radius: 14px;
    padding: 12px;
}

.toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--ink-soft);
}

.toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.cta {
    border: none;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: white;
    background: linear-gradient(135deg, var(--accent), #ff8b63);
    box-shadow: 0 16px 30px rgba(226, 75, 45, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(226, 75, 45, 0.35);
}

.results {
    display: grid;
    gap: 16px;
}

.section-title p {
    margin: 6px 0 0;
    color: var(--muted);
}

.result-card {
    border-radius: 18px;
    border: 1px dashed var(--line);
    padding: 20px;
    background: linear-gradient(135deg, #fff8f1, #ffffff);
    min-height: 68px;
    display: flex;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
}

.table-shell {
    margin-top: 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th, td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid #eef1f6;
}

th {
    background: #f5f6f8;
    font-weight: 600;
    color: var(--ink-soft);
}

tr:nth-child(even) td {
    background: #fbfcff;
}

.ad-panel {
    padding: 20px;
    background: #f8f6f1;
    box-shadow: none;
}

.ad-container,
.ad-placeholder {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.disclaimer {
    background: #f9f6f2;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .stat-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .page {
        padding: 28px 16px 60px;
    }

    .panel {
        padding: 20px;
        border-radius: 18px;
    }

    .stat-row {
        grid-template-columns: 1fr;
    }
}
