:root {
    --color-navy-950: #142a48;
    --color-navy-900: #1b365d;
    --color-navy-700: #31577f;
    --color-ink: #25364a;
    --color-muted: #647286;
    --color-teal-700: #2d7f7a;
    --color-teal-600: #378f88;
    --color-teal-100: #e4f2ef;
    --color-teal-050: #f0f8f6;
    --color-clay-700: #a96832;
    --color-clay-600: #b97943;
    --color-clay-100: #f7eadc;
    --color-green-700: #447c50;
    --color-green-100: #eaf3e7;
    --color-red-700: #a73d3f;
    --color-red-600: #c65757;
    --color-red-100: #fae9e7;
    --color-cream: #f7f4ed;
    --color-paper: #fffdf9;
    --color-white: #ffffff;
    --color-line: #d8e0e5;
    --shadow-soft: 0 18px 50px rgba(27, 54, 93, 0.09);
    --shadow-card: 0 10px 30px rgba(27, 54, 93, 0.08);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-xl: 36px;
    --shell: 1160px;
    --font-sans: "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}

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

html {
    min-width: 320px;
    color-scheme: light;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    color: var(--color-ink);
    background: var(--color-paper);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    z-index: -2;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(55, 143, 136, 0.035) 0 2px, transparent 3px),
        radial-gradient(circle at 88% 72%, rgba(185, 121, 67, 0.04) 0 2px, transparent 3px);
    background-size: 34px 34px, 42px 42px;
    content: "";
    pointer-events: none;
}

[hidden] {
    display: none !important;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--color-navy-900);
    text-underline-offset: 0.2em;
}

button,
input,
textarea,
select {
    color: inherit;
    font: inherit;
}

button,
[role="button"],
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid #d56f24;
    outline-offset: 3px;
}

/* Programmatically focused headings announce view changes without looking interactive. */
[tabindex="-1"]:focus {
    outline: none;
}

::selection {
    color: var(--color-navy-950);
    background: #c8ece7;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--color-navy-950);
    font-weight: 750;
    line-height: 1.32;
    letter-spacing: 0.01em;
}

h1 {
    font-size: clamp(2rem, 8vw, 4.25rem);
}

h2 {
    font-size: clamp(1.65rem, 5.8vw, 2.75rem);
}

h3 {
    font-size: 1.14rem;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    min-height: 44px;
    padding: 9px 16px;
    transform: translateY(-160%);
    border-radius: 8px;
    color: #fff;
    background: var(--color-navy-950);
    font-weight: 700;
}

.skip-link:focus {
    transform: translateY(0);
}

.shell {
    width: min(100% - 36px, var(--shell));
    margin-inline: auto;
}

.shell--narrow {
    width: min(100% - 28px, 720px);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.mobile-only {
    display: initial;
}

/* Header and footer */
.site-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid rgba(27, 54, 93, 0.08);
    background: rgba(255, 253, 249, 0.94);
}

.site-header__inner {
    display: flex;
    width: min(100% - 28px, var(--shell));
    min-height: 72px;
    margin-inline: auto;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    color: var(--color-navy-950);
    text-decoration: none;
}

.brand__mark {
    width: 38px;
    flex: 0 0 auto;
    fill: var(--color-clay-600);
}

.brand__copy {
    display: grid;
    line-height: 1.15;
}

.brand__eyebrow {
    color: var(--color-muted);
    font-size: 0.66rem;
    font-weight: 650;
    letter-spacing: 0.08em;
}

.brand__name {
    font-size: 1rem;
    font-weight: 800;
}

.header-link {
    display: none;
    min-height: 44px;
    align-items: center;
    color: var(--color-navy-900);
    font-size: 0.9rem;
    font-weight: 700;
}

.site-footer {
    border-top: 1px solid rgba(27, 54, 93, 0.1);
    background: #f1eee6;
}

.site-footer__inner {
    width: min(100% - 36px, var(--shell));
    margin-inline: auto;
    padding: 34px 0 calc(34px + env(safe-area-inset-bottom));
    text-align: center;
}

.site-footer__brand {
    margin-bottom: 8px;
    color: var(--color-navy-900);
    font-size: 0.9rem;
    font-weight: 750;
}

.site-footer__note {
    max-width: 640px;
    margin: 0 auto 20px;
    color: var(--color-muted);
    font-size: 0.78rem;
    line-height: 1.75;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
}

.site-footer__nav a {
    min-height: 44px;
    padding-block: 8px;
    font-size: 0.82rem;
}

/* Shared controls */
.button {
    display: inline-flex;
    min-height: 48px;
    padding: 11px 22px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 750;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.button:hover:not(:disabled) {
    transform: translateY(-2px);
}

.button:active:not(:disabled) {
    transform: translateY(0);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.46;
}

.button--large {
    width: 100%;
    min-height: 58px;
    padding: 15px 26px;
    font-size: 1rem;
}

.button--primary {
    color: #fff;
    background: var(--color-teal-700);
    box-shadow: 0 10px 24px rgba(45, 127, 122, 0.22);
}

.button--primary:hover:not(:disabled) {
    background: #236e6a;
    box-shadow: 0 13px 28px rgba(45, 127, 122, 0.28);
}

.button--navy {
    color: #fff;
    background: var(--color-navy-900);
    box-shadow: 0 10px 24px rgba(27, 54, 93, 0.18);
}

.button--navy:hover:not(:disabled) {
    background: var(--color-navy-950);
}

.button--secondary {
    border-color: var(--color-teal-700);
    color: var(--color-teal-700);
    background: #fff;
}

.button--secondary:hover:not(:disabled) {
    background: var(--color-teal-050);
}

.button--quiet {
    border-color: var(--color-line);
    color: var(--color-navy-900);
    background: transparent;
}

.button--quiet:hover:not(:disabled) {
    border-color: var(--color-navy-700);
    background: rgba(255, 255, 255, 0.7);
}

.text-link,
.back-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--color-navy-700);
    font-weight: 700;
}

.back-link {
    gap: 4px;
    font-size: 0.88rem;
    text-decoration: none;
}

.back-link svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.eyebrow {
    margin-bottom: 10px;
    color: var(--color-teal-700);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section {
    padding: 72px 0;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-heading h2 {
    margin-bottom: 0;
}

.section-heading--left {
    margin-inline: 0;
    text-align: left;
}

.notice {
    padding: 16px 18px;
    border-radius: var(--radius-sm);
}

.notice--warning {
    border: 1px solid #e5b663;
    background: #fff5da;
}

.spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 4px solid #d4e7e3;
    border-top-color: var(--color-teal-700);
    border-radius: 50%;
    animation: spin 800ms linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Home */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 8%, rgba(185, 121, 67, 0.13), transparent 30%),
        linear-gradient(145deg, #fbf8f2 0%, #f3f7f3 100%);
}

.hero::after {
    position: absolute;
    right: -100px;
    bottom: -150px;
    width: 340px;
    height: 340px;
    border: 50px solid rgba(55, 143, 136, 0.055);
    border-radius: 50%;
    content: "";
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    padding-block: 54px 66px;
    gap: 48px;
}

.hero__copy {
    max-width: 660px;
}

.hero h1 {
    margin-bottom: 22px;
    font-size: clamp(2.22rem, 10vw, 4.55rem);
    letter-spacing: -0.025em;
}

.hero h1 span {
    position: relative;
    color: var(--color-teal-700);
    white-space: nowrap;
}

.hero h1 span::after {
    position: absolute;
    z-index: -1;
    right: -3px;
    bottom: 0.05em;
    left: -3px;
    height: 0.22em;
    border-radius: 999px;
    background: rgba(185, 121, 67, 0.24);
    content: "";
}

.hero__lead {
    max-width: 580px;
    margin-bottom: 22px;
    color: #4d5d6f;
    font-size: 1rem;
    line-height: 1.9;
}

.hero__meta {
    display: flex;
    margin-bottom: 26px;
    flex-wrap: wrap;
    gap: 8px;
}

.hero__meta span {
    display: inline-flex;
    min-height: 36px;
    padding: 6px 11px;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(45, 127, 122, 0.18);
    border-radius: 999px;
    color: var(--color-navy-700);
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 700;
}

.hero__meta svg {
    width: 16px;
    fill: none;
    stroke: var(--color-teal-700);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.hero__actions {
    display: grid;
    max-width: 430px;
    gap: 8px;
    text-align: center;
}

.hero__assurance {
    max-width: 500px;
    margin: 18px 0 0;
    padding-left: 24px;
    color: var(--color-muted);
    font-size: 0.76rem;
    line-height: 1.7;
}

.hero__assurance::before {
    display: inline-grid;
    width: 18px;
    height: 18px;
    margin-left: -24px;
    margin-right: 6px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--color-green-700);
    content: "✓";
    font-size: 0.68rem;
    font-weight: 900;
}

.hero-card {
    position: relative;
    width: min(100%, 430px);
    min-height: 0;
    margin-inline: auto;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    border: 1px solid rgba(27, 54, 93, 0.08);
    border-radius: 30px;
    background: var(--color-cream);
    box-shadow: var(--shadow-soft);
}

.hero-card::before {
    position: absolute;
    z-index: 1;
    inset: 18px;
    border: 2px dashed rgba(55, 143, 136, 0.18);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.hero-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* Keep a clear label band above the animals instead of placing the
       floating label over the dog's face. */
    padding: 58px 10px 2px;
    object-fit: contain;
    object-position: center bottom;
}

.hero-card__animal-label {
    position: absolute;
    z-index: 2;
    top: 18px;
    left: 18px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid rgba(45, 127, 122, 0.22);
    border-radius: 999px;
    color: var(--color-navy-900);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 7px 18px rgba(27, 54, 93, 0.1);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.3;
}

.hero-card__animal-label span {
    color: var(--color-teal-600);
}

.hero-card__bubble {
    position: absolute;
    z-index: 2;
    max-width: 195px;
    padding: 10px 14px;
    border-radius: 18px;
    color: var(--color-navy-900);
    background: #fff;
    box-shadow: 0 8px 20px rgba(27, 54, 93, 0.13);
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.45;
}

.hero-card__bubble--top {
    top: 40px;
    left: 22px;
}

.hero-card__bubble--top::after {
    position: absolute;
    right: 20px;
    bottom: -9px;
    border-top: 11px solid #fff;
    border-right: 7px solid transparent;
    border-left: 7px solid transparent;
    content: "";
}

.hero-card__bubble--bottom {
    right: 18px;
    bottom: 18px;
    color: #fff;
    background: var(--color-navy-900);
}

.hero-card__bubble--bottom::after {
    position: absolute;
    top: -9px;
    left: 20px;
    border-right: 7px solid transparent;
    border-bottom: 11px solid var(--color-navy-900);
    border-left: 7px solid transparent;
    content: "";
}

.hero-card__paw {
    position: absolute;
    color: rgba(185, 121, 67, 0.22);
    font-size: 11px;
    font-weight: 900;
    line-height: 0.75;
    text-align: center;
    transform: rotate(-20deg);
}

.hero-card__paw--one {
    top: 112px;
    right: 29px;
}

.hero-card__paw--two {
    bottom: 105px;
    left: 25px;
    transform: rotate(20deg);
}

.section--steps {
    background: #fff;
}

.steps {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 14px;
}

.step-card {
    position: relative;
    padding: 25px 22px 24px 86px;
    border: 1px solid rgba(27, 54, 93, 0.1);
    border-radius: var(--radius-lg);
    background: var(--color-paper);
    box-shadow: var(--shadow-card);
}

.step-card__number {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--color-navy-900);
    font-size: 0.74rem;
    font-weight: 800;
}

.step-card__icon {
    position: absolute;
    top: 26px;
    left: 20px;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 18px;
}

.step-card__icon svg {
    width: 28px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.step-card__icon--navy { color: var(--color-navy-900); background: #e8eef5; }
.step-card__icon--teal { color: var(--color-teal-700); background: var(--color-teal-100); }
.step-card__icon--clay { color: var(--color-clay-700); background: var(--color-clay-100); }

.step-card h3 {
    margin-bottom: 8px;
}

.step-card p {
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: 0.88rem;
    line-height: 1.75;
}

.section--reasons {
    background: var(--color-cream);
}

.reason-grid {
    display: grid;
    gap: 38px;
}

.reason-grid > div > h2 {
    margin-bottom: 18px;
}

.reason-grid > div > p:last-child {
    margin-bottom: 0;
    color: var(--color-muted);
}

.reason-list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 12px;
}

.reason-list li {
    display: grid;
    padding: 20px;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    border: 1px solid rgba(27, 54, 93, 0.08);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.78);
}

.reason-list li > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: var(--color-teal-700);
    background: var(--color-teal-100);
    font-size: 0.75rem;
    font-weight: 850;
}

.reason-list strong {
    display: block;
    margin-bottom: 3px;
    color: var(--color-navy-950);
}

.reason-list p {
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: 0.84rem;
    line-height: 1.7;
}

.section--cta {
    padding-block: 58px;
    background: #fff;
}

.cta-panel {
    position: relative;
    display: grid;
    padding: 32px 26px;
    overflow: hidden;
    gap: 24px;
    border-radius: var(--radius-xl);
    background: var(--color-navy-900);
}

.cta-panel::after {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 190px;
    height: 190px;
    border: 36px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    content: "";
}

.cta-panel .eyebrow {
    color: #9cddd7;
}

.cta-panel h2 {
    margin-bottom: 0;
    color: #fff;
    font-size: clamp(1.55rem, 6vw, 2.3rem);
}

.cta-panel .button {
    position: relative;
    z-index: 1;
    background: var(--color-clay-600);
    box-shadow: none;
}

.cta-panel__actions {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 10px;
}

.cta-panel .button--secondary {
    border-color: rgba(255, 255, 255, 0.62);
    color: #fff;
    background: transparent;
}

.cta-panel .button--secondary:hover {
    border-color: #fff;
    color: var(--color-navy-900);
    background: #fff;
}

/* Diagnosis */
.page-diagnosis,
.page-result,
.page-compare {
    background: var(--color-cream);
}

.page-diagnosis .site-footer,
.page-result .site-footer,
.page-compare .site-footer,
.page-emergency .site-footer {
    display: none;
}

.diagnosis-page {
    min-height: calc(100dvh - 73px);
    padding: 24px 0 calc(32px + env(safe-area-inset-bottom));
    background:
        radial-gradient(circle at 0% 10%, rgba(55, 143, 136, 0.11), transparent 26%),
        radial-gradient(circle at 100% 90%, rgba(185, 121, 67, 0.1), transparent 25%),
        var(--color-cream);
}

.diagnosis-card {
    padding: 22px 18px 20px;
    border: 1px solid rgba(27, 54, 93, 0.08);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.diagnosis-card__topline {
    display: flex;
    margin-bottom: 10px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.diagnosis-card__step,
.diagnosis-card__time {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.diagnosis-card__step {
    color: var(--color-teal-700);
}

.progress {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7ecef;
}

.progress__bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--color-teal-600), #65b2a9);
    transition: width 300ms ease;
}

.diagnosis-status,
.result-loading,
.compare-loading {
    display: grid;
    min-height: 320px;
    padding: 50px 12px;
    place-items: center;
    align-content: center;
    gap: 14px;
    color: var(--color-muted);
    text-align: center;
}

.diagnosis-status p,
.result-loading p,
.compare-loading p {
    margin-bottom: 0;
}

.question {
    padding-top: 32px;
}

.question fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.question legend {
    width: 100%;
    margin-bottom: 12px;
    color: var(--color-navy-950);
    font-size: clamp(1.36rem, 6vw, 1.85rem);
    font-weight: 800;
    line-height: 1.48;
}

.question__hint {
    margin-bottom: 20px;
    color: var(--color-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

.question__hint--notice {
    padding: 10px 12px;
    border-left: 4px solid var(--color-clay-600);
    border-radius: 0 10px 10px 0;
    color: #73543a;
    background: #fff7ed;
}

.options {
    display: grid;
    gap: 10px;
}

.question__selection-summary {
    min-height: 24px;
    margin: 10px 2px 0;
    color: var(--color-teal-700);
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.55;
}

.option {
    position: relative;
    display: block;
    cursor: pointer;
}

.option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.option__body {
    position: relative;
    display: grid;
    min-height: 58px;
    padding: 13px 48px 13px 16px;
    align-content: center;
    border: 2px solid #dbe2e7;
    border-radius: var(--radius-md);
    background: #fff;
    transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.option:hover .option__body {
    border-color: #9fc7c2;
    transform: translateY(-1px);
}

.option input:focus-visible + .option__body {
    outline: 3px solid #d56f24;
    outline-offset: 3px;
}

.option input:checked + .option__body {
    border-color: var(--color-teal-700);
    background: var(--color-teal-050);
    box-shadow: 0 6px 18px rgba(45, 127, 122, 0.11);
}

.option__indicator {
    position: absolute;
    top: 50%;
    right: 16px;
    display: grid;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    place-items: center;
    border: 2px solid #bdc8cf;
    border-radius: 50%;
    background: #fff;
}

.option input[type="checkbox"] + .option__body .option__indicator {
    border-radius: 7px;
}

.option input:checked + .option__body .option__indicator {
    border-color: var(--color-teal-700);
    background: var(--color-teal-700);
}

.option input:checked + .option__body .option__indicator::after {
    width: 8px;
    height: 4px;
    transform: translateY(-1px) rotate(-45deg);
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    content: "";
}

.option__label {
    color: var(--color-navy-950);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.55;
}

.option__description {
    display: block;
    margin-top: 3px;
    color: var(--color-muted);
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.55;
}

.option__selected-text {
    display: none;
    width: fit-content;
    margin-top: 7px;
    padding: 2px 8px;
    border-radius: 999px;
    color: var(--color-teal-700);
    background: #dcefeb;
    font-size: 0.67rem;
    font-weight: 800;
    line-height: 1.45;
}

.option input:checked + .option__body .option__selected-text {
    display: inline-flex;
}

.free-text-toggle {
    display: flex;
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    padding: 8px 4px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    color: var(--color-clay-700);
    background: transparent;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 0.22em;
}

.free-text-toggle span {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    text-decoration: none;
}

.free-text {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid #ead5c3;
    border-radius: var(--radius-md);
    background: #fffaf4;
}

.free-text label {
    display: block;
    margin-bottom: 4px;
    color: var(--color-navy-950);
    font-weight: 750;
}

.free-text > p {
    margin-bottom: 10px;
    color: var(--color-muted);
    font-size: 0.76rem;
    line-height: 1.6;
}

.free-text textarea {
    display: block;
    width: 100%;
    min-height: 116px;
    padding: 13px 14px;
    resize: vertical;
    border: 2px solid #d5dde2;
    border-radius: var(--radius-sm);
    background: #fff;
    line-height: 1.7;
}

.free-text textarea:focus {
    border-color: var(--color-teal-700);
}

.free-text .free-text__privacy {
    margin: 8px 0 0;
    color: #87644b;
    font-size: 0.7rem;
}

.question__error {
    margin-top: 14px;
    padding: 11px 13px;
    border-radius: 10px;
    color: #823335;
    background: var(--color-red-100);
    font-size: 0.82rem;
    font-weight: 700;
}

.question__actions {
    display: grid;
    margin-top: 22px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
}

.question__actions .button--quiet {
    padding-inline: 14px;
}

.question__next {
    min-height: 54px;
}

.diagnosis-note {
    display: flex;
    max-width: 620px;
    margin: 16px auto 0;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;
    color: var(--color-muted);
    font-size: 0.7rem;
    line-height: 1.65;
    text-align: center;
}

.diagnosis-note svg {
    width: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--color-green-700);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.diagnosis-consult {
    margin: 10px 0 0;
    color: var(--color-muted);
    font-size: 0.76rem;
    text-align: center;
}

.diagnosis-consult a {
    color: var(--color-teal-700);
    font-weight: 800;
}

.diagnosis-status--error,
.page-error {
    min-height: 420px;
}

.diagnosis-status__icon,
.page-error__icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    color: var(--color-clay-700);
    background: var(--color-clay-100);
    font-size: 1.8rem;
    font-weight: 850;
}

.diagnosis-status h1,
.page-error h1 {
    margin-bottom: 0;
    font-size: 1.55rem;
}

/* Result */
.result-page {
    min-height: calc(100dvh - 73px);
    padding: 36px 0 70px;
}

.result-hero {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.result-hero__pets {
    width: min(100%, 300px);
    margin: 0 auto 12px;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    border-radius: 28px;
    background: var(--color-cream);
}

.result-hero__pets img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.result-hero h1 {
    margin-bottom: 0;
    font-size: clamp(1.35rem, 6.8vw, 3.5rem);
    line-height: 1.25;
    text-wrap: balance;
}

.result-hero__title-line {
    display: block;
    white-space: nowrap;
}

.answer-summary {
    margin-bottom: 54px;
    padding: 22px;
    border: 1px solid rgba(27, 54, 93, 0.09);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.78);
}

.answer-summary__heading {
    display: grid;
    margin-bottom: 16px;
    gap: 8px;
}

.answer-summary__heading .eyebrow {
    margin-bottom: 3px;
}

.answer-summary h2 {
    margin-bottom: 0;
    font-size: 1.15rem;
}

.answer-summary__heading > a {
    display: inline-flex;
    min-height: 44px;
    align-self: center;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
}

.answer-chips {
    display: flex;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    list-style: none;
    gap: 8px;
}

.answer-chips li {
    display: inline-flex;
    min-height: 36px;
    padding: 7px 12px;
    align-items: center;
    gap: 6px;
    border: 1px solid #c8dcd9;
    border-radius: 999px;
    color: var(--color-navy-700);
    background: var(--color-teal-050);
    font-size: 0.78rem;
    font-weight: 700;
}

.answer-chips li::before {
    color: var(--color-teal-700);
    content: "✓";
    font-weight: 900;
}

.recommendation-list {
    display: grid;
    gap: 20px;
}

.score-explanation {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--color-muted);
    background: #f3f6f7;
    font-size: 0.72rem;
    line-height: 1.65;
}

.course-card {
    --role-color: var(--color-teal-700);
    --role-tint: var(--color-teal-100);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(27, 54, 93, 0.11);
    border-top: 6px solid var(--role-color);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.course-card[data-role="comparison"] {
    --role-color: var(--color-navy-700);
    --role-tint: #e9eff6;
}

.course-card[data-role="next"] {
    --role-color: var(--color-clay-600);
    --role-tint: var(--color-clay-100);
}

.course-card__main {
    padding: 23px 20px;
}

.course-card__role-row {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.course-card__role {
    display: inline-flex;
    min-height: 32px;
    padding: 5px 11px;
    align-items: center;
    border-radius: 999px;
    color: var(--role-color);
    background: var(--role-tint);
    font-size: 0.74rem;
    font-weight: 850;
}

.course-card__score {
    display: inline-flex;
    align-items: baseline;
    color: var(--role-color);
    font-weight: 850;
}

.course-card__score strong {
    font-size: 1.75rem;
    line-height: 1;
}

.course-card__score small {
    font-size: 0.66rem;
}

.course-card__score-label {
    margin-right: 4px;
}

.course-card h3 {
    margin-bottom: 14px;
    font-size: clamp(1.4rem, 6vw, 2rem);
}

.course-card__reason {
    margin-bottom: 18px;
    padding: 16px;
    border-left: 4px solid var(--role-color);
    border-radius: 0 12px 12px 0;
    background: color-mix(in srgb, var(--role-tint) 65%, white);
    color: #3f5063;
    font-size: 0.88rem;
    line-height: 1.8;
}

.course-card__reason-label {
    display: flex;
    margin: 0 0 7px;
    align-items: center;
    gap: 6px;
    color: var(--role-color);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.course-card__reason-label::before {
    content: "✦";
    font-size: 0.76rem;
}

.course-card__reason-text {
    margin: 0;
}

.course-card__matches {
    display: flex;
    margin: 0 0 18px;
    padding: 0;
    flex-wrap: wrap;
    list-style: none;
    gap: 6px;
}

.course-card__matches li {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--color-navy-700);
    background: #f1f4f6;
    font-size: 0.7rem;
    font-weight: 700;
}

.course-card__facts {
    display: grid;
    margin: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.course-card__facts div {
    min-width: 0;
    padding: 10px 11px;
    border-radius: 10px;
    background: #f7f8f8;
}

.course-card__facts dt {
    color: var(--color-muted);
    font-size: 0.66rem;
    font-weight: 700;
}

.course-card__facts dd {
    margin: 1px 0 0;
    overflow-wrap: anywhere;
    color: var(--color-navy-950);
    font-size: 0.82rem;
    font-weight: 750;
}

.course-card__price {
    display: grid;
    margin-top: 14px;
    padding: 14px 15px;
    border: 1px solid color-mix(in srgb, var(--role-color) 18%, white);
    border-radius: 12px;
    background: color-mix(in srgb, var(--role-tint) 48%, white);
    gap: 3px;
}

.course-card__price-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--color-muted);
    font-size: 0.7rem;
    font-weight: 750;
}

.course-card__price-heading strong {
    padding: 3px 8px;
    border-radius: 999px;
    color: #7d4c1f;
    background: #ffe6ba;
    font-size: 0.66rem;
}

.course-card__price-current,
.course-card__price-regular,
.course-card__price-deadline,
.course-card__price-note {
    margin: 0;
}

.course-card__price-current {
    color: var(--role-color);
    line-height: 1.35;
}

.course-card__price-current strong {
    font-size: 1.35rem;
}

.course-card__price-current span,
.course-card__price-regular,
.course-card__price-deadline,
.course-card__price-note {
    color: var(--color-muted);
    font-size: 0.7rem;
}

.course-card__price-deadline {
    color: #895321;
    font-weight: 750;
}

.course-card__price-note {
    margin-top: 3px;
    line-height: 1.55;
}

.course-card__details {
    padding: 0 20px 20px;
}

.course-card__details details {
    border-top: 1px solid #e5e9ec;
}

.course-card__details summary {
    min-height: 48px;
    padding: 12px 4px;
    cursor: pointer;
    color: var(--color-navy-700);
    font-size: 0.82rem;
    font-weight: 750;
}

.course-card__details-content {
    display: grid;
    padding: 4px 0 12px;
    gap: 16px;
}

.course-card__details-content h4 {
    margin: 0 0 5px;
    color: var(--color-navy-950);
    font-size: 0.82rem;
}

.course-card__details-content p,
.course-card__details-content ul {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.78rem;
    line-height: 1.75;
}

.course-card__details-content ul {
    padding-left: 1.2em;
}

.score-breakdown {
    display: grid;
    gap: 8px;
}

.score-breakdown__row {
    display: grid;
    grid-template-columns: 88px 1fr 38px;
    align-items: center;
    gap: 7px;
    color: var(--color-muted);
    font-size: 0.7rem;
}

.score-breakdown__track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7ecef;
}

.score-breakdown__track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--role-color);
}

.course-card__actions {
    display: grid;
    padding: 18px 20px 20px;
    gap: 9px;
    border-top: 1px solid #e5e9ec;
    background: #fbfcfc;
}

.course-card__actions .button {
    width: 100%;
}

.course-card__actions .button:first-child {
    color: #fff;
    background: var(--role-color);
}

.course-card__subactions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.course-card__subactions .button {
    min-width: 0;
    padding-inline: 10px;
    border-color: #ced8de;
    color: var(--color-navy-700);
    background: #fff;
    font-size: 0.76rem;
}

.compare-panel {
    display: grid;
    margin-top: 38px;
    padding: 26px 22px;
    align-items: center;
    gap: 20px;
    border-radius: var(--radius-lg);
    color: #fff;
    background: var(--color-navy-900);
}

.compare-panel__eyebrow {
    margin-bottom: 4px;
    color: #9cddd7;
    font-size: 0.72rem;
    font-weight: 800;
}

.compare-panel h2 {
    margin-bottom: 8px;
    color: #fff;
    font-size: 1.35rem;
}

.compare-panel p:last-child {
    margin-bottom: 0;
    color: #cbd7e5;
    font-size: 0.82rem;
}

.compare-panel .button {
    color: var(--color-navy-950);
    background: #fff;
}

.consultation-panel {
    display: grid;
    margin-top: 26px;
    padding: 22px;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(45, 127, 122, 0.2);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #fff 0%, var(--color-teal-050) 100%);
}

.consultation-panel__icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 18px;
    color: var(--color-teal-700);
    background: var(--color-teal-100);
}

.consultation-panel__icon svg {
    width: 37px;
    fill: var(--color-paper);
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
}

.consultation-panel .eyebrow {
    margin-bottom: 3px;
}

.consultation-panel h2 {
    margin-bottom: 4px;
    font-size: 1.18rem;
}

.consultation-panel p {
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: 0.8rem;
}

.consultation-panel .button {
    width: 100%;
}

.consultation-panel--compact {
    margin-top: 24px;
}

.feedback {
    display: grid;
    margin-top: 38px;
    padding: 24px 20px;
    align-items: center;
    gap: 18px;
    border: 1px solid rgba(27, 54, 93, 0.1);
    border-radius: var(--radius-lg);
    background: #fff;
}

.feedback h2 {
    margin-bottom: 5px;
    font-size: 1.12rem;
}

.feedback p {
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: 0.78rem;
}

.feedback__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.feedback__actions .button {
    min-width: 0;
    padding-inline: 8px;
    font-size: 0.78rem;
}

.feedback__thanks {
    color: var(--color-green-700) !important;
    font-weight: 750;
}

.page-error {
    display: grid;
    padding: 50px 16px;
    place-items: center;
    align-content: center;
    gap: 14px;
    text-align: center;
}

.page-error p {
    max-width: 540px;
    margin-bottom: 0;
    color: var(--color-muted);
}

/* Compare */
.compare-page {
    min-height: calc(100dvh - 73px);
    padding: 22px 0 70px;
}

.page-heading {
    max-width: 760px;
    margin: 0 auto 32px;
    text-align: center;
}

.page-heading .back-link {
    display: flex;
    width: fit-content;
    margin-bottom: 24px;
}

.page-heading h1 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 8vw, 3.45rem);
}

.page-heading > p:last-child {
    margin: 0 auto;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.compare-toolbar {
    display: grid;
    margin-bottom: 12px;
    align-items: center;
    gap: 10px;
}

.compare-toolbar > p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.78rem;
}

.switch {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    color: var(--color-navy-700);
    font-size: 0.8rem;
    font-weight: 700;
}

.switch input {
    position: absolute;
    opacity: 0;
}

.switch__track {
    position: relative;
    width: 46px;
    height: 26px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #c9d1d6;
    transition: background-color 160ms ease;
}

.switch__track span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(27, 54, 93, 0.2);
    transition: transform 160ms ease;
}

.switch input:checked + .switch__track {
    background: var(--color-teal-700);
}

.switch input:checked + .switch__track span {
    transform: translateX(20px);
}

.switch input:focus-visible + .switch__track {
    outline: 3px solid #d56f24;
    outline-offset: 3px;
}

.compare-table-wrap {
    position: relative;
    width: 100%;
    overflow: auto;
    overscroll-behavior-inline: contain;
    border: 1px solid #d9e0e4;
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-card);
    -webkit-overflow-scrolling: touch;
}

.compare-table {
    width: max(700px, 100%);
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    text-align: left;
}

.compare-table th,
.compare-table td {
    padding: 16px 14px;
    vertical-align: top;
    border-right: 1px solid #e2e7ea;
    border-bottom: 1px solid #e2e7ea;
    overflow-wrap: anywhere;
}

.compare-table tr:last-child th,
.compare-table tr:last-child td {
    border-bottom: 0;
}

.compare-table th:last-child,
.compare-table td:last-child {
    border-right: 0;
}

.compare-table thead th {
    position: sticky;
    z-index: 2;
    top: 0;
    width: 230px;
    color: var(--color-navy-950);
    background: #f7f9f9;
}

.compare-table thead th:first-child {
    z-index: 4;
    left: 0;
    width: 120px;
    background: var(--color-navy-900);
}

.compare-table tbody th {
    position: sticky;
    z-index: 1;
    left: 0;
    width: 120px;
    color: var(--color-navy-900);
    background: #f2f5f7;
    font-size: 0.76rem;
}

.compare-table td {
    color: #4a5a6c;
    background: #fff;
    font-size: 0.8rem;
    line-height: 1.65;
}

.compare-reason-summary {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.compare-reason-summary li {
    position: relative;
    margin: 0;
    padding: 9px 10px 9px 32px;
    border: 1px solid #d9ece8;
    border-radius: 10px;
    color: #334b5d;
    background: #f4faf8;
    line-height: 1.65;
}

.compare-reason-summary li::before {
    position: absolute;
    top: 9px;
    left: 10px;
    color: #278579;
    content: "✓";
    font-weight: 800;
}

.compare-table tr[data-different="true"] td {
    background: #fffdf5;
}

.compare-table tr[data-different="true"] th::after {
    display: block;
    width: fit-content;
    margin-top: 4px;
    padding: 1px 5px;
    border-radius: 4px;
    color: #895321;
    background: #f8e7c9;
    content: "違いあり";
    font-size: 0.58rem;
}

.compare-course-head {
    display: grid;
    gap: 7px;
}

.compare-course-head__role {
    width: fit-content;
    padding: 3px 7px;
    border-radius: 999px;
    color: var(--color-teal-700);
    background: var(--color-teal-100);
    font-size: 0.62rem;
}

.compare-course-head strong {
    font-size: 0.9rem;
    line-height: 1.45;
}

.compare-course-head__score {
    color: var(--color-teal-700);
    font-size: 0.7rem;
}

.scroll-hint {
    margin: 8px 0 22px;
    color: var(--color-muted);
    font-size: 0.68rem;
    text-align: right;
}

.compare-cta-grid {
    display: grid;
    gap: 12px;
}

.compare-cta-card {
    padding: 18px;
    border: 1px solid rgba(27, 54, 93, 0.1);
    border-radius: var(--radius-md);
    background: #fff;
}

.compare-cta-card h2 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.compare-cta-card__price,
.compare-cta-card__price-note {
    margin: 0;
}

.compare-cta-card__price {
    color: var(--color-teal-700);
    font-size: 1.12rem;
    font-weight: 850;
}

.compare-cta-card__price-note {
    margin-top: 2px;
    color: var(--color-muted);
    font-size: 0.67rem;
    line-height: 1.55;
}

.compare-cta-card__actions {
    display: grid;
    gap: 8px;
}

.compare-cta-card__actions .button {
    width: 100%;
    padding-inline: 12px;
    font-size: 0.8rem;
}

.compare-disclaimer {
    max-width: 760px;
    margin: 22px auto 0;
    color: var(--color-muted);
    font-size: 0.68rem;
    line-height: 1.7;
    text-align: center;
}

/* Emergency */
.page-emergency {
    background: #fff6f3;
}

.emergency-page {
    min-height: calc(100dvh - 73px);
    padding: 28px 0 calc(50px + env(safe-area-inset-bottom));
    background:
        radial-gradient(circle at 50% 0%, rgba(198, 87, 87, 0.11), transparent 35%),
        #fff6f3;
}

.emergency-card {
    padding: 28px 20px;
    border: 2px solid #e3a4a1;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 18px 48px rgba(167, 61, 63, 0.1);
    text-align: center;
}

.emergency-card__icon {
    display: grid;
    width: 78px;
    height: 78px;
    margin: 0 auto 14px;
    place-items: center;
    border-radius: 50%;
    background: var(--color-red-100);
}

.emergency-card__icon svg {
    width: 52px;
    fill: #fff8f5;
    stroke: var(--color-red-600);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3.2;
}

.emergency-card__eyebrow {
    margin-bottom: 8px;
    color: var(--color-red-700);
    font-size: 0.74rem;
    font-weight: 850;
}

.emergency-card h1 {
    margin-bottom: 16px;
    color: #7f2e32;
    font-size: clamp(1.8rem, 8vw, 2.7rem);
}

.emergency-card__lead {
    max-width: 570px;
    margin: 0 auto 26px;
    color: #5e4b4d;
    font-size: 0.92rem;
    line-height: 1.85;
}

.emergency-actions {
    margin-bottom: 18px;
    padding: 20px 16px;
    border-radius: var(--radius-md);
    background: #fff8f6;
    text-align: left;
}

.emergency-actions h2 {
    margin-bottom: 14px;
    font-size: 1.05rem;
    text-align: center;
}

.emergency-actions ol {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 14px;
}

.emergency-actions li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
}

.emergency-actions li > span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--color-red-600);
    font-size: 0.78rem;
    font-weight: 850;
}

.emergency-actions strong {
    display: block;
    color: #6f3032;
    font-size: 0.86rem;
    line-height: 1.55;
}

.emergency-actions p {
    margin: 3px 0 0;
    color: #725d5f;
    font-size: 0.75rem;
    line-height: 1.65;
}

.emergency-note {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #e8b6b3;
    border-radius: var(--radius-sm);
    text-align: left;
}

.emergency-note strong {
    color: var(--color-red-700);
    font-size: 0.8rem;
}

.emergency-note p {
    margin: 3px 0 0;
    color: #725d5f;
    font-size: 0.74rem;
    line-height: 1.65;
}

.emergency-card__disclaimer {
    margin-bottom: 18px;
    color: var(--color-muted);
    font-size: 0.68rem;
    line-height: 1.7;
}

/* Progressive status */
.is-busy .question {
    opacity: 0.55;
    pointer-events: none;
}

@media (min-width: 480px) {
    .header-link {
        display: inline-flex;
    }

    .site-header--minimal .header-link {
        display: none;
    }

    .brand__mark {
        width: 42px;
    }

    .brand__name {
        font-size: 1.08rem;
    }

    .diagnosis-card {
        padding: 28px 28px 26px;
    }

    .question__actions {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .answer-summary__heading,
    .compare-toolbar {
        grid-template-columns: 1fr auto;
    }

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

    .course-card__actions {
        grid-template-columns: minmax(190px, 1.4fr) minmax(0, 1fr);
    }

    .course-card__subactions {
        grid-column: 2;
    }

    .compare-cta-card__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 720px) {
    .site-header__inner {
        min-height: 82px;
    }

    .brand__eyebrow {
        font-size: 0.72rem;
    }

    .brand__name {
        font-size: 1.2rem;
    }

    .section {
        padding-block: 96px;
    }

    .hero__inner {
        min-height: 690px;
        padding-block: 88px;
        gap: 40px;
    }

    .hero__mobile-break {
        display: none;
    }

    .hero-card {
        min-height: 0;
    }

    .hero-card__bubble {
        font-size: 0.86rem;
    }

    .steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .step-card {
        min-height: 235px;
        padding: 88px 24px 26px;
        text-align: center;
    }

    .step-card__icon {
        top: 24px;
        left: 50%;
        width: 58px;
        height: 58px;
        transform: translateX(-50%);
    }

    .step-card__number {
        top: 17px;
        right: 17px;
    }

    .reason-grid {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        align-items: center;
        gap: 70px;
    }

    .cta-panel {
        padding: 46px 50px;
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .cta-panel .button {
        width: auto;
        min-width: 220px;
    }

    .cta-panel__actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .diagnosis-page {
        padding-top: 42px;
    }

    .diagnosis-card {
        padding: 34px 40px 34px;
    }

    .question {
        padding-top: 40px;
    }

    .option__body {
        min-height: 64px;
        padding-inline: 20px 56px;
    }

    .result-page,
    .compare-page {
        padding-top: 54px;
    }

    .answer-summary {
        padding: 26px 30px;
    }

    .course-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 255px;
    }

    .course-card__main {
        padding: 30px 30px 22px;
    }

    .course-card__details {
        padding: 0 30px 26px;
    }

    .course-card__actions {
        grid-row: 1 / span 2;
        grid-column: 2;
        padding: 28px 22px;
        align-content: center;
        grid-template-columns: 1fr;
        border-top: 0;
        border-left: 1px solid #e5e9ec;
    }

    .course-card__subactions {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .compare-panel,
    .feedback {
        grid-template-columns: 1fr auto;
        padding: 30px 34px;
    }

    .consultation-panel {
        grid-template-columns: auto 1fr auto;
        padding: 24px 28px;
    }

    .consultation-panel .button {
        width: auto;
        min-width: 180px;
    }

    .feedback__thanks {
        grid-column: 2;
    }

    .compare-table thead th:first-child,
    .compare-table tbody th {
        width: 160px;
    }

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

    .compare-cta-card {
        display: flex;
        min-height: 190px;
        padding: 22px;
        flex-direction: column;
    }

    .compare-cta-card__actions {
        margin-top: auto;
        padding-top: 14px;
        grid-template-columns: 1fr;
    }

    .emergency-card {
        padding: 42px 46px;
    }

    .emergency-actions {
        padding: 26px 30px;
    }
}

@media (min-width: 1020px) {
    .hero__inner {
        grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
        align-items: center;
        gap: 76px;
    }

    .hero__actions {
        display: flex;
        max-width: none;
        align-items: center;
        gap: 24px;
        text-align: left;
    }

    .hero__actions .button {
        width: auto;
        min-width: 250px;
    }

    .recommendation-list {
        gap: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .site-header,
    .site-footer,
    .back-link,
    .compare-toolbar,
    .scroll-hint,
    .compare-cta-grid,
    .consultation-panel,
    .compare-disclaimer {
        display: none !important;
    }

    body,
    .compare-page {
        background: #fff;
    }

    .compare-page {
        padding: 0;
    }

    .compare-table-wrap {
        overflow: visible;
        border: 0;
        box-shadow: none;
    }

    .compare-table {
        width: 100%;
        font-size: 9pt;
    }

    .compare-table thead th,
    .compare-table tbody th {
        position: static;
    }
}
