:root {
    --bg: #fbf5ed;
    --bg-soft: #f2e4d5;
    --card: rgba(255, 252, 247, 0.84);
    --card-strong: #fffaf4;
    --ink: #2f241d;
    --muted: #68574d;
    --line: rgba(103, 76, 62, 0.12);
    --accent: #c56c48;
    --accent-deep: #a55033;
    --accent-soft: #f3c7b4;
    --sage: #cfd7bf;
    --gold: #e5bf7a;
    --shadow: 0 24px 60px rgba(123, 86, 63, 0.12);
    --radius-xl: 36px;
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --container: min(1180px, calc(100vw - 40px));
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(243, 199, 180, 0.45), transparent 28%),
        radial-gradient(circle at top right, rgba(229, 191, 122, 0.2), transparent 22%),
        linear-gradient(180deg, #fffaf5 0%, var(--bg) 36%, #f7efe5 100%);
    line-height: 1.6;
    overflow-x: hidden;
}

body.has-success-overlay {
    overflow: hidden;
}

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

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

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

.page-glow {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
    animation: glowFloat 18s ease-in-out infinite;
    transition: transform 700ms ease-out;
}

.page-glow-left {
    top: 80px;
    left: -120px;
    background: rgba(243, 199, 180, 0.7);
}

.page-glow-right {
    top: 480px;
    right: -140px;
    background: rgba(207, 215, 191, 0.75);
    animation-delay: -6s;
    animation-duration: 22s;
}

.success-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 24px;
}

.success-overlay__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(243, 199, 180, 0.28), transparent 28%),
        radial-gradient(circle at top right, rgba(207, 215, 191, 0.22), transparent 22%),
        rgba(47, 36, 29, 0.42);
    backdrop-filter: blur(14px);
    animation: overlayFadeIn 320ms ease forwards;
}

.success-overlay__panel {
    position: relative;
    width: min(880px, calc(100vw - 32px));
    max-width: 860px;
    padding: 28px 34px 32px;
    border-radius: 40px;
    border: 1px solid rgba(255, 250, 244, 0.34);
    background:
        radial-gradient(circle at top right, rgba(243, 199, 180, 0.42), transparent 28%),
        radial-gradient(circle at bottom left, rgba(207, 215, 191, 0.32), transparent 28%),
        linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(248, 236, 223, 0.96));
    box-shadow: 0 40px 110px rgba(47, 36, 29, 0.2);
    overflow: hidden;
    animation: overlayPanelIn 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.success-overlay__panel::before,
.success-overlay__panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.success-overlay__panel::before {
    width: 320px;
    height: 320px;
    top: -140px;
    right: -120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0) 72%);
}

.success-overlay__panel::after {
    width: 220px;
    height: 220px;
    left: -80px;
    bottom: -90px;
    background: radial-gradient(circle, rgba(243, 199, 180, 0.45) 0%, rgba(243, 199, 180, 0) 76%);
}

.success-overlay__close {
    position: absolute;
    top: 22px;
    right: 22px;
    min-height: 42px;
    padding: 0 16px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 250, 244, 0.92);
    color: var(--muted);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(103, 76, 62, 0.1);
    cursor: pointer;
    transition: transform 220ms ease, box-shadow 220ms ease, color 220ms ease;
}

.success-overlay__close:hover,
.success-overlay__close:focus-visible {
    transform: translateY(-2px);
    color: var(--ink);
    box-shadow:
        inset 0 0 0 1px rgba(197, 108, 72, 0.18),
        0 12px 24px rgba(123, 86, 63, 0.12);
}

.success-overlay__content {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: start;
    gap: 18px;
    max-width: 660px;
    padding: 72px 0 6px;
}

.success-overlay__lead {
    font-size: 1.15rem;
    max-width: 620px;
}

.success-overlay__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 4px;
}

.success-overlay.is-closing .success-overlay__backdrop {
    animation: overlayFadeOut 260ms ease forwards;
}

.success-overlay.is-closing .success-overlay__panel {
    animation: overlayPanelOut 260ms ease forwards;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(251, 245, 237, 0.75);
    border-bottom: 1px solid rgba(103, 76, 62, 0.08);
}

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

.header-inner {
    min-height: 84px;
}

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

.brand-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 44%),
        linear-gradient(145deg, #edf8eb, #cfe8c8);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 12px 24px rgba(91, 140, 89, 0.16);
}

.brand-mark::before {
    content: "♥";
    position: relative;
    z-index: 1;
    font-size: 1.8rem;
    line-height: 1;
    color: #4aa256;
    text-shadow: 0 0 16px rgba(97, 188, 102, 0.24);
    animation: brandHeartPulse 1.9s ease-in-out infinite;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 14px;
    background: radial-gradient(circle, rgba(97, 188, 102, 0.22) 0%, rgba(97, 188, 102, 0) 72%);
    animation: brandHeartGlow 1.9s ease-in-out infinite;
    pointer-events: none;
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-text strong {
    font-size: 0.95rem;
    letter-spacing: 0.12em;
}

.brand-text small {
    color: var(--muted);
    font-size: 0.82rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
}

.site-nav a {
    position: relative;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    transform: scaleX(1);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 24px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: #fffaf4;
    font-weight: 700;
    box-shadow: 0 16px 32px rgba(165, 80, 51, 0.18);
    transition: transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
    cursor: pointer;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(165, 80, 51, 0.22);
}

.button-small {
    min-height: 46px;
    padding: 0 20px;
    font-size: 0.95rem;
}

.button-secondary {
    background: rgba(255, 250, 244, 0.74);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px rgba(103, 76, 62, 0.12);
}

section {
    padding: 100px 0;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--accent-deep);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-kicker::before {
    content: "";
    width: 36px;
    height: 1px;
    background: currentColor;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 34px;
    display: grid;
    gap: 10px;
}

.section-heading-left {
    margin-bottom: 28px;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    line-height: 0.96;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3.4rem, 7vw, 6.4rem);
    margin-bottom: 22px;
}

h2 {
    font-size: clamp(2.3rem, 4.4vw, 4rem);
    margin-bottom: 18px;
}

h3 {
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    margin-bottom: 12px;
}

p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.intro-card,
.story-copy,
.contact-copy {
    display: grid;
    gap: 16px;
}

.hero {
    padding-top: 72px;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 38px 0 0;
    width: min(1220px, calc(100vw - 24px));
    margin: 0 auto;
    border-radius: 44px;
    background:
        radial-gradient(circle at 20% 20%, rgba(243, 199, 180, 0.6), transparent 28%),
        radial-gradient(circle at 80% 20%, rgba(207, 215, 191, 0.58), transparent 24%),
        linear-gradient(135deg, rgba(255, 251, 245, 0.94), rgba(249, 237, 224, 0.94));
    border: 1px solid rgba(103, 76, 62, 0.06);
    box-shadow: var(--shadow);
    z-index: -1;
    background-size: 120% 120%, 120% 120%, auto;
    animation: heroAura 18s ease-in-out infinite alternate;
}

.hero-grid,
.intro-grid,
.story-grid,
.protection-grid,
.contact-grid {
    display: grid;
    gap: 36px;
    align-items: center;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
    min-height: 760px;
}

.hero-copy {
    padding: 40px 0;
}

.hero-lead {
    max-width: 600px;
    font-size: 1.09rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 32px 0;
}

.hero-highlights {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
    max-width: 580px;
}

.hero-highlights li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255, 252, 247, 0.7);
    border: 1px solid rgba(103, 76, 62, 0.08);
}

.hero-highlights li::before,
.contact-point::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    transition: transform 240ms ease;
}

.hero-visual {
    position: relative;
    min-height: 640px;
    display: grid;
    place-items: center;
    padding: 44px;
    border-radius: 40px;
    border: 1px solid rgba(103, 76, 62, 0.08);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.76), transparent 32%),
        radial-gradient(circle at bottom right, rgba(243, 199, 180, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(214, 229, 206, 0.72), rgba(255, 250, 244, 0.94));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-visual::before {
    content: "";
    width: min(100%, 420px);
    aspect-ratio: 1;
    background: url("./images/carelove-logo.png") center / contain no-repeat;
    filter: drop-shadow(0 22px 48px rgba(47, 36, 29, 0.16));
    position: relative;
    z-index: 1;
    transition: transform 240ms ease;
}

.hero-visual::after {
    content: "";
    position: absolute;
    inset: 28px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.38), transparent 34%),
        radial-gradient(circle at bottom right, rgba(207, 215, 191, 0.24), transparent 32%);
    pointer-events: none;
}

.hero-photo,
.floating-note {
    display: none;
}

.story-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro {
    padding-top: 74px;
}

.intro-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
}

.intro-card,
.stats-panel,
.advantage-card,
.service-card,
.benefit-card,
.risk-card,
.assurance,
.contact-card {
    padding: 30px;
    border-radius: var(--radius-lg);
    background: var(--card);
    border: 1px solid rgba(103, 76, 62, 0.08);
    box-shadow: var(--shadow);
}

.stats-panel {
    display: grid;
    gap: 16px;
    background:
        radial-gradient(circle at top right, rgba(243, 199, 180, 0.38), transparent 42%),
        linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(249, 237, 224, 0.95));
}

.stat-card {
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 250, 244, 0.72);
    border: 1px solid rgba(103, 76, 62, 0.08);
    transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

.stat-card strong {
    display: block;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2.2rem;
    line-height: 0.95;
}

.stat-card span {
    color: var(--muted);
}

.advantages,
.benefits,
.contact {
    position: relative;
}

.advantages-grid,
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.advantage-card,
.benefit-card,
.risk-card,
.service-card {
    position: relative;
    overflow: hidden;
    transition:
        transform 320ms ease,
        box-shadow 320ms ease,
        border-color 320ms ease,
        background-color 320ms ease;
}

.advantage-card::before,
.benefit-card::before,
.service-card::before,
.risk-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    width: 76px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
}

.advantage-card::after,
.benefit-card::after,
.service-card::after,
.risk-card::after,
.story-photo::after,
.contact-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    top: -90px;
    right: -110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0) 72%);
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.9);
    transition: opacity 360ms ease, transform 520ms ease;
    pointer-events: none;
}

.story {
    padding-top: 34px;
}

.story-grid {
    grid-template-columns: minmax(560px, 1.08fr) minmax(0, 0.92fr);
    align-items: start;
}

.story-visual {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.story-photo {
    margin: 0;
    min-height: 100%;
    border-radius: 30px;
    overflow: hidden;
    background: var(--card-strong);
    border: 1px solid rgba(103, 76, 62, 0.08);
    box-shadow: var(--shadow);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 340ms ease, box-shadow 340ms ease, border-color 340ms ease;
}

.story-photo img {
    width: 100%;
    height: clamp(220px, 24vw, 310px);
    object-fit: cover;
    object-position: center 72%;
    background: linear-gradient(180deg, #f2efe9 0%, #fbf7f1 100%);
}

.story-photo figcaption {
    flex: 1 1 auto;
    padding: 16px 18px 20px;
    background: rgba(255, 250, 244, 0.92);
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

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

.service-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 280px;
    background:
        radial-gradient(circle at top right, rgba(243, 199, 180, 0.28), transparent 36%),
        rgba(255, 252, 247, 0.84);
}

.service-card strong {
    margin-top: auto;
    font-size: 1.15rem;
}

.service-tag {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(197, 108, 72, 0.1);
    color: var(--accent-deep);
    font-size: 0.82rem;
    font-weight: 700;
}

.service-index {
    position: absolute;
    right: 22px;
    top: 20px;
    color: rgba(47, 36, 29, 0.08);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    transition: transform 320ms ease, color 320ms ease;
}

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

.benefit-card {
    min-height: 240px;
    background:
        radial-gradient(circle at top left, rgba(207, 215, 191, 0.36), transparent 34%),
        rgba(255, 252, 247, 0.84);
}

.protection-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
    align-items: start;
}

.risk-list,
.process-list {
    display: grid;
    gap: 18px;
}

.assurance {
    background:
        linear-gradient(180deg, rgba(47, 36, 29, 0.96), rgba(67, 49, 39, 0.96)),
        rgba(47, 36, 29, 0.96);
    color: #fffaf4;
    position: sticky;
    top: 112px;
}

.assurance .section-kicker {
    color: var(--accent-soft);
}

.assurance .section-kicker::before {
    background: currentColor;
}

.assurance h3,
.assurance p,
.assurance span,
.assurance strong {
    color: inherit;
}

.process-list {
    padding: 0;
    margin: 28px 0 0;
    list-style: none;
}

.process-list li {
    display: grid;
    gap: 6px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 250, 244, 0.12);
}

.process-list li:first-child {
    border-top: none;
    padding-top: 0;
}

.contact-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.88fr);
}

.contact-points {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.contact-point {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 252, 247, 0.7);
    border: 1px solid rgba(103, 76, 62, 0.08);
    transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

.contact-card {
    background:
        radial-gradient(circle at top right, rgba(243, 199, 180, 0.32), transparent 34%),
        linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(249, 237, 224, 0.95));
    position: relative;
    overflow: hidden;
}

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

.contact-form label {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-weight: 700;
}

.contact-form span {
    font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid rgba(103, 76, 62, 0.14);
    border-radius: 18px;
    background: rgba(255, 252, 247, 0.84);
    color: var(--ink);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(197, 108, 72, 0.46);
    box-shadow: 0 0 0 5px rgba(197, 108, 72, 0.12);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.field-error {
    color: #a73e2f;
    font-weight: 600;
}

.form-disclaimer {
    margin-top: 6px;
    font-size: 0.84rem;
    line-height: 1.55;
}

.inline-legal-link,
.footer-legal-link {
    padding: 0;
    border: none;
    background: none;
    color: var(--accent-deep);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.inline-legal-link:hover,
.inline-legal-link:focus-visible,
.footer-legal-link:hover,
.footer-legal-link:focus-visible {
    color: var(--ink);
}

.site-footer {
    padding: 28px 0 40px;
    color: var(--muted);
}

.site-footer strong {
    display: block;
    color: var(--ink);
}

.footer-inner {
    flex-wrap: wrap;
    align-items: flex-start;
}

.footer-brand {
    display: grid;
    gap: 4px;
}

.footer-legal {
    flex: 1 1 420px;
    display: grid;
    gap: 10px;
}

.footer-legal__title {
    color: var(--ink);
    font-weight: 700;
}

.footer-legal__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.footer-legal__note {
    display: block;
    max-width: 720px;
    font-size: 0.84rem;
    line-height: 1.55;
}

.footer-meta {
    white-space: nowrap;
}

.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 140;
    padding: 24px;
}

.legal-modal[hidden] {
    display: none;
}

.legal-modal:not([hidden]) {
    display: grid;
    place-items: center;
}

.legal-modal__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(243, 199, 180, 0.28), transparent 28%),
        radial-gradient(circle at top right, rgba(207, 215, 191, 0.22), transparent 22%),
        rgba(47, 36, 29, 0.46);
    backdrop-filter: blur(12px);
}

.legal-modal__panel {
    position: relative;
    width: min(920px, calc(100vw - 32px));
    max-height: min(86vh, 900px);
    padding: 28px 34px 32px;
    overflow: auto;
    border-radius: 36px;
    border: 1px solid rgba(255, 250, 244, 0.34);
    background:
        radial-gradient(circle at top right, rgba(243, 199, 180, 0.34), transparent 28%),
        radial-gradient(circle at bottom left, rgba(207, 215, 191, 0.24), transparent 30%),
        linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(248, 236, 223, 0.97));
    box-shadow: 0 40px 110px rgba(47, 36, 29, 0.2);
    animation: overlayPanelIn 320ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.legal-modal.is-closing .legal-modal__panel {
    animation: overlayPanelOut 240ms ease forwards;
}

.legal-modal.is-closing .legal-modal__backdrop {
    animation: overlayFadeOut 240ms ease forwards;
}

.legal-modal__close {
    position: absolute;
    top: 22px;
    right: 22px;
    min-height: 42px;
    padding: 0 16px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 250, 244, 0.92);
    color: var(--muted);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(103, 76, 62, 0.1);
    cursor: pointer;
}

.legal-modal__content {
    display: grid;
    gap: 14px;
    padding-top: 52px;
}

.legal-modal__content p {
    max-width: 760px;
}

.reveal {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    filter: blur(10px);
    transition:
        opacity 700ms ease,
        transform 700ms ease,
        filter 700ms ease;
    will-change: opacity, transform, filter;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

@keyframes drift {
    0%,
    100% {
        transform: translate3d(calc(var(--float-x) * -0.16), calc(var(--float-y) * -0.16), 0);
    }
    50% {
        transform: translate3d(calc(var(--float-x) * -0.16), calc(var(--float-y) * -0.16 - 12px), 0);
    }
}

@keyframes heroMainFloat {
    0%,
    100% {
        transform: translate3d(calc(var(--float-x) * 0.18), calc(var(--float-y) * 0.18), 0);
    }
    50% {
        transform: translate3d(calc(var(--float-x) * 0.18), calc(var(--float-y) * 0.18 - 10px), 0);
    }
}

@keyframes noteFloat {
    0%,
    100% {
        transform: translate3d(calc(var(--float-x) * 0.12), calc(var(--float-y) * 0.12), 0);
    }
    50% {
        transform: translate3d(calc(var(--float-x) * 0.12), calc(var(--float-y) * 0.12 - 8px), 0);
    }
}

@keyframes heroAura {
    0% {
        background-position: 0% 0%, 100% 0%, 50% 50%;
    }
    100% {
        background-position: 8% 10%, 92% 12%, 50% 50%;
    }
}

@keyframes glowFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(24px, -18px, 0) scale(1.04);
    }
}

@keyframes brandHeartPulse {
    0%,
    100% {
        transform: scale(1);
    }
    18% {
        transform: scale(1.1);
    }
    36% {
        transform: scale(0.98);
    }
    54% {
        transform: scale(1.14);
    }
    72% {
        transform: scale(1);
    }
}

@keyframes brandHeartGlow {
    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.9);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.12);
    }
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes overlayFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes overlayPanelIn {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes overlayPanelOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
}

.stat-card:hover,
.stat-card:focus-within,
.advantage-card:hover,
.advantage-card:focus-within,
.service-card:hover,
.service-card:focus-within,
.benefit-card:hover,
.benefit-card:focus-within,
.risk-card:hover,
.risk-card:focus-within,
.story-photo:hover,
.story-photo:focus-within,
.contact-point:hover,
.contact-point:focus-within,
.contact-card:hover,
.contact-card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 28px 64px rgba(123, 86, 63, 0.16);
    border-color: rgba(197, 108, 72, 0.18);
}

.advantage-card:hover::after,
.advantage-card:focus-within::after,
.service-card:hover::after,
.service-card:focus-within::after,
.benefit-card:hover::after,
.benefit-card:focus-within::after,
.risk-card:hover::after,
.risk-card:focus-within::after,
.story-photo:hover::after,
.story-photo:focus-within::after,
.contact-card:hover::after,
.contact-card:focus-within::after {
    opacity: 1;
    transform: translate3d(-12px, 18px, 0) scale(1.05);
}

.service-card:hover .service-index,
.service-card:focus-within .service-index {
    transform: scale(1.08);
    color: rgba(197, 108, 72, 0.12);
}

.hero-visual:hover::before,
.hero-visual:focus-within::before {
    transform: scale(1.02);
}

.contact-point:hover::before,
.contact-point:focus-within::before {
    transform: scale(1.15);
}

@media (max-width: 1080px) {
    .hero-grid,
    .intro-grid,
    .story-grid,
    .protection-grid,
    .contact-grid,
    .advantages-grid,
    .services-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-grid {
        min-height: auto;
        padding-top: 24px;
    }

    .hero-visual {
        min-height: 520px;
        padding: 36px;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

    .assurance {
        position: static;
    }
}

@media (max-width: 760px) {
    .site-nav,
    .button-small {
        display: none;
    }

    section {
        padding: 72px 0;
    }

    .hero::before {
        width: calc(100vw - 16px);
        border-radius: 34px;
    }

    .hero-grid,
    .intro-grid,
    .story-grid,
    .protection-grid,
    .contact-grid,
    .advantages-grid,
    .services-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        min-height: 74px;
    }

    .hero {
        padding-top: 32px;
    }

    .hero-copy {
        padding: 20px 0 0;
    }

    h1 {
        font-size: clamp(2.8rem, 14vw, 4.2rem);
    }

    h2 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero-visual {
        min-height: 360px;
        padding: 24px;
        border-radius: 30px;
    }

    .hero-visual::before {
        width: min(100%, 280px);
    }

    .hero-visual::after {
        inset: 18px;
        border-radius: 24px;
    }

    .intro-card,
    .stats-panel,
    .advantage-card,
    .service-card,
    .benefit-card,
    .risk-card,
    .assurance,
    .contact-card {
        padding: 24px;
        border-radius: 24px;
    }

    .story-visual {
        grid-template-columns: 1fr;
    }

    .story-photo {
        min-height: 220px;
    }

    .story-photo img {
        height: 280px;
    }

    .footer-inner {
        gap: 18px;
    }

    .footer-meta {
        white-space: normal;
    }

    .legal-modal {
        padding: 14px;
    }

    .legal-modal__panel {
        padding: 22px;
        border-radius: 28px;
    }

    .legal-modal__content {
        padding-top: 34px;
    }

    .legal-modal__close {
        top: 14px;
        right: 14px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .success-overlay {
        padding: 14px;
    }

    .success-overlay__panel {
        padding: 22px;
        border-radius: 28px;
    }

    .success-overlay__content {
        padding-top: 34px;
        gap: 18px;
    }

    .success-overlay__actions {
        flex-direction: column;
    }

    .success-overlay__actions .button,
    .success-overlay__actions .button-secondary {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .reveal.is-visible {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .success-overlay__backdrop,
    .success-overlay__panel {
        animation: none !important;
    }
}
