.huiwai-life { background: #fff; }
.huiwai-life .site-header { border-bottom: 1px solid rgba(21, 67, 108, .07); background: rgba(246, 251, 255, .86); backdrop-filter: blur(12px); }
.huiwai-life .main-nav .active { color: var(--navy); }

.life-hero { position: relative; height: 576px; min-height: 576px; padding: 58px 0 72px; overflow: hidden; background: radial-gradient(circle at 86% 14%, rgba(86,174,229,.17), transparent 30%), linear-gradient(118deg, #f9fcff 0%, #f1f8fc 48%, #e5f2f9 100%); }
.life-hero::before { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(249,252,255,.2) 0%, transparent 48%, rgba(16,78,121,.035) 100%); }
.life-hero::after { content: ""; position: absolute; right: 210px; bottom: 58px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: -235px -260px 0 3px rgba(68,151,219,.75), 170px -165px 0 2px rgba(68,151,219,.55); }
.life-hero-grid { position: relative; z-index: 2; height: 100%; }
.life-hero-copy { position: relative; z-index: 3; width: 52%; }
.life-breadcrumb { min-height: 22px; margin-bottom: 46px; display: flex; align-items: center; gap: 9px; color: #6f859a; font-size: 14px; line-height: 22px; }
.life-breadcrumb a:hover { color: var(--navy); }
.life-breadcrumb .ui-icon { font-size: 10px; }
.life-breadcrumb span { color: #496682; }
.life-eyebrow, .life-section-heading > div > p, .process-copy > p { margin: 0 0 16px; color: #a67320; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.life-eyebrow { color: #c07d1f; font-size: 14px; line-height: 1.5; }
.life-hero-copy h1 { max-width: 650px; margin: 0; color: var(--navy-deep); font-family: "STZhongsong", "Songti SC", "Noto Serif CJK SC", SimSun, serif; font-size: clamp(49px, 4vw, 64px); font-weight: 700; line-height: 1.16; letter-spacing: .025em; }
.life-hero-copy h1 span { display: block; }
.life-hero-copy h1 span + span { margin-top: 5px; margin-left: 52px; }
.life-hero-intro { position: relative; max-width: 565px; margin: 29px 0 34px; padding-left: 18px; color: #58748e; font-size: 15px; line-height: 1.9; }
.life-hero-intro::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 2px; background: linear-gradient(#c99d4d, rgba(201,157,77,.15)); }
.life-facts { display: flex; align-items: stretch; gap: 9px; }
.life-facts > span { min-height: 50px; padding: 8px 15px; border: 1px solid rgba(21, 71, 113, .1); border-radius: 10px; display: inline-flex; align-items: center; gap: 8px; color: #49677f; background: rgba(255,255,255,.74); box-shadow: 0 8px 22px rgba(15,60,98,.035); font-size: 13px; }
.life-facts strong { color: var(--navy); font-family: Georgia, serif; font-size: 21px; line-height: 1; }
.life-facts .ui-icon { color: #c39440; font-size: 20px; }
.life-hero-visual { position: absolute; z-index: 0; top: -58px; bottom: -72px; left: 32%; width: calc(68% + ((100vw - 100%) / 2)); }
.life-hero-visual::before { content: none; }
.life-hero-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; filter: saturate(.96) contrast(1.03); -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.08) 12%, rgba(0,0,0,.55) 31%, #000 51%, #000 100%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.08) 12%, rgba(0,0,0,.55) 31%, #000 51%, #000 100%); }
.visual-place { position: absolute; z-index: 2; right: 28px; top: 110px; transform: rotate(90deg); transform-origin: right top; color: rgba(255,255,255,.82); text-shadow: 0 1px 8px rgba(0,40,75,.35); font-size: 12px; font-weight: 700; letter-spacing: .18em; }
.visual-index { position: absolute; z-index: 1; right: 28px; bottom: 6px; color: rgba(255,255,255,.18); font-family: Georgia, serif; font-size: 100px; line-height: 1; }
.hero-note { position: absolute; z-index: 3; right: max(32px, calc((100vw - 1320px) / 2)); bottom: 42px; max-width: 290px; min-height: 82px; padding: 16px 19px; border: 1px solid rgba(255,255,255,.66); border-left: 3px solid var(--gold); border-radius: 12px; display: flex; align-items: center; gap: 13px; color: var(--navy); background: rgba(255,255,255,.88); box-shadow: 0 18px 45px rgba(11,52,85,.16); backdrop-filter: blur(14px); font-size: 13px; font-weight: 600; }
.hero-note > .ui-icon { color: var(--gold); font-size: 27px; }
.hero-note span { display: flex; flex-direction: column; }
.hero-note small { margin-bottom: 3px; color: #71869a; font-size: 12px; font-weight: 500; letter-spacing: .08em; }

.life-anchor-bar { position: sticky; z-index: 12; top: 64px; border-bottom: 1px solid #e7eef5; background: rgba(255,255,255,.96); box-shadow: 0 10px 24px rgba(14,52,81,.04); backdrop-filter: blur(10px); }
.life-anchor-bar .page-container { min-height: 72px; display: grid; grid-template-columns: repeat(4, 1fr); }
.life-anchor-bar a { position: relative; padding: 0 24px; border-right: 1px solid #e7eef5; display: flex; align-items: center; justify-content: center; gap: 12px; color: #3f607c; font-size: 13px; font-weight: 600; text-align: center; transition: color .2s ease, background .2s ease; }
.life-anchor-bar a:first-child { border-left: 1px solid #e7eef5; }
.life-anchor-bar a:hover { color: var(--navy); background: #f7fbfe; }
.life-anchor-bar span { width: 27px; height: 27px; border: 1px solid #ead9b8; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #a87520; background: #fffaf1; font-family: Georgia, serif; font-size: 12px; }

.life-topics-section { padding: 92px 0 104px; background: linear-gradient(180deg, #fff 0%, #fbfdff 100%); }
.life-section-heading { position: relative; margin-bottom: 48px; padding-top: 2px; display: flex; align-items: flex-end; justify-content: space-between; gap: 80px; }
.life-section-heading::before { content: ""; position: absolute; left: 0; top: -18px; width: 42px; height: 2px; background: var(--gold); }
.life-section-heading h2, .process-copy h2, .life-notice h2 { margin: 0; color: var(--navy); font-family: "STZhongsong", "Songti SC", "Noto Serif CJK SC", SimSun, serif; font-size: 36px; font-weight: 700; line-height: 1.3; }
.life-section-heading > p { max-width: 500px; margin: 0 0 2px; color: #70879d; font-size: 14px; line-height: 1.85; }
.life-topic-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.life-topic-card { min-height: 315px; grid-column: span 5; scroll-margin-top: 150px; overflow: hidden; border: 1px solid #dce7f0; border-radius: 16px; display: grid; grid-template-columns: 44% 56%; background: #fff; box-shadow: 0 10px 30px rgba(15,57,91,.035); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.life-topic-card:nth-child(1), .life-topic-card:nth-child(4) { grid-column: span 7; grid-template-columns: 47% 53%; }
.life-topic-card:hover { transform: translateY(-5px); border-color: #d6bd8d; box-shadow: 0 24px 55px rgba(15,57,91,.11); }
.topic-image { position: relative; min-height: 315px; overflow: hidden; }
.topic-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,29,51,.03) 40%, rgba(3,29,51,.58)); }
.topic-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.life-topic-card:hover .topic-image img { transform: scale(1.035); }
.topic-image > span { position: absolute; z-index: 1; left: 18px; bottom: 14px; color: rgba(255,255,255,.9); font-family: Georgia, serif; font-size: 28px; }
.topic-copy { position: relative; padding: 32px 29px 27px; display: flex; flex-direction: column; align-items: flex-start; background: linear-gradient(145deg, #fff, #fbfdff); }
.topic-icon { width: 44px; height: 44px; border: 1px solid #efe1c5; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #a97727; background: #fffaf1; font-size: 19px; }
.topic-copy h3 { margin: 20px 0 12px; color: var(--navy); font-family: "STZhongsong", "Songti SC", SimSun, serif; font-size: 24px; font-weight: 700; line-height: 1.35; }
.topic-copy p { margin: 0; color: #60798f; font-size: 14px; line-height: 1.8; }
.topic-copy button, .topic-copy > a { flex: 0 0 auto; margin-top: auto; padding: 15px 0 0; display: inline-flex; align-items: center; gap: 8px; color: var(--navy); background: transparent; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.topic-copy button .ui-icon, .topic-copy > a .ui-icon { transition: transform .2s ease; }
.topic-copy button:hover .ui-icon, .topic-copy > a:hover .ui-icon { transform: translateX(4px); }

.life-guides-section { position: relative; padding: 94px 0 100px; overflow: hidden; background: linear-gradient(135deg, #f3f8fc 0%, #edf5fa 100%); }
.life-guides-section::before { content: ""; position: absolute; left: -130px; top: -150px; width: 410px; height: 410px; border: 1px solid rgba(69,139,193,.12); border-radius: 50%; }
.compact-heading { align-items: center; }
.outline-button { flex: 0 0 auto; min-height: 39px; padding: 0 15px; border: 1px solid #d8e3ec !important; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; color: var(--navy); background: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.life-guide-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; }
.guide-feature { position: relative; min-height: 500px; overflow: hidden; border-radius: 18px; color: #fff; box-shadow: 0 24px 55px rgba(12,54,88,.16); cursor: pointer; }
.guide-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,25,43,.02) 22%, rgba(3,28,49,.9) 100%); }
.guide-feature > img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.guide-feature:hover > img { transform: scale(1.025); }
.guide-feature-copy { position: absolute; z-index: 1; inset: auto 0 0; padding: 42px; }
.guide-feature-copy > span, .guide-list article span, .guide-list > a span { display: inline-block; color: #b88737; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.guide-feature-copy h3 { max-width: 600px; margin: 13px 0; font-family: "STZhongsong", "Songti SC", SimSun, serif; font-size: 32px; font-weight: 600; line-height: 1.38; }
.guide-feature-copy p { max-width: 600px; margin: 0; color: rgba(255,255,255,.76); font-size: 14px; line-height: 1.7; }
.guide-feature-copy em { margin-top: 22px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-style: normal; font-weight: 600; white-space: nowrap; }
.guide-list { display: grid; grid-template-rows: repeat(4, 1fr); gap: 10px; }
.guide-list article, .guide-list > a { min-height: 116px; padding: 20px 23px; border: 1px solid rgba(220,231,240,.95); border-radius: 13px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(255,255,255,.92); cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.guide-list article:hover, .guide-list > a:hover { transform: translateX(4px); border-color: #cfa556; box-shadow: 0 14px 30px rgba(24,65,99,.08); }
.guide-list article h3, .guide-list > a h3 { margin: 6px 0 4px; color: var(--navy); font-size: 17px; font-weight: 600; line-height: 1.4; }
.guide-list article p, .guide-list > a p { margin: 0; color: #687f93; font-size: 14px; line-height: 1.65; }
.guide-list article > .ui-icon, .guide-list > a > .ui-icon { color: #97a9b9; font-size: 18px; transition: transform .2s ease, color .2s ease; }
.guide-list article:hover > .ui-icon, .guide-list > a:hover > .ui-icon { color: var(--gold); transform: translateX(4px); }

.concierge-process-section { padding: 80px 0; background: #fff; }
.concierge-process { padding: 48px 52px; border-radius: 16px; display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: 65px; color: #fff; background: linear-gradient(110deg, rgba(7,43,88,.98), rgba(20,72,116,.9)), url("../../img/huiwai/coastal-drive.jpg") center / cover; }
.process-copy h2 { color: #fff; font-size: 32px; }
.process-copy > span { display: block; margin-top: 15px; color: rgba(255,255,255,.65); font-size: 13px; line-height: 1.75; }
.concierge-process ol { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; }
.concierge-process li { position: relative; min-width: 0; padding: 0 24px; border-left: 1px solid rgba(255,255,255,.16); }
.concierge-process li > b { color: #d2a95d; font-family: Georgia, serif; font-size: 15px; }
.concierge-process h3 { margin: 16px 0 8px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.concierge-process li p { margin: 0; color: rgba(255,255,255,.75); font-size: 13px; line-height: 1.7; }

.life-notice-section { padding: 0 0 76px; }
.life-notice { padding: 27px 32px; border: 1px solid #eadfc9; border-radius: 12px; display: flex; align-items: center; gap: 22px; background: #fffaf0; }
.life-notice > span { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #a7792e; background: #f4e7cb; font-size: 22px; }
.life-notice h2 { margin-bottom: 5px; font-size: 18px; }
.life-notice p { margin: 0; color: #6d6253; font-size: 14px; line-height: 1.75; }

html[lang="ru"] .life-hero-copy h1,
html[lang="ru"] .life-section-heading h2,
html[lang="ru"] .topic-copy h3,
html[lang="ru"] .guide-feature-copy h3,
html[lang="ru"] .process-copy h2,
html[lang="ru"] .life-notice h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.015em; }
html[lang="ru"] .life-hero-copy { width: 58%; }
html[lang="ru"] .life-hero-copy h1 { font-size: clamp(42px, 3.5vw, 54px); line-height: 1.12; }
html[lang="ru"] .life-hero-copy h1 span + span { margin-left: 0; }
html[lang="ru"] .life-topic-card { grid-template-columns: 42% 58%; }
html[lang="ru"] .topic-copy { padding: 28px 24px 24px; }
html[lang="ru"] .topic-copy h3 { font-size: 20px; }

@media (max-width: 1100px) {
    .life-hero-copy { width: 58%; }
    .life-hero-visual { left: 35%; width: calc(65% + ((100vw - 100%) / 2)); }
    .life-topic-grid { grid-template-columns: repeat(2, 1fr); }
    .life-topic-card, .life-topic-card:nth-child(1), .life-topic-card:nth-child(4), html[lang="ru"] .life-topic-card { min-height: 330px; grid-column: auto; grid-template-columns: 42% 58%; }
    .topic-image { min-height: 330px; }
    .topic-copy { padding: 27px 23px 24px; }
    .concierge-process { grid-template-columns: 1fr; gap: 35px; }
}

@media (max-width: 1020px) and (min-width: 768px) {
    .hero-note { right: 20px; }
}

@media (max-width: 900px) {
    .life-hero { height: auto; min-height: 560px; padding-bottom: 54px; }
    .life-hero-copy, html[lang="ru"] .life-hero-copy { width: 62%; }
    .life-breadcrumb { margin-bottom: 28px; }
    .life-hero-copy h1, html[lang="ru"] .life-hero-copy h1 { font-size: 39px; }
    .life-hero-visual { top: -58px; bottom: -54px; left: 37%; width: calc(63% + ((100vw - 100%) / 2)); }
    .life-facts > span { padding: 7px 10px; }
    .life-topic-grid { grid-template-columns: 1fr; }
    .life-topic-card, html[lang="ru"] .life-topic-card { min-height: 270px; grid-template-columns: 40% 60%; }
    .topic-image { min-height: 270px; }
    .life-guide-layout { grid-template-columns: 1fr; }
    .guide-feature { min-height: 420px; }
}

@media (max-width: 767px) {
    .huiwai-life .site-header, .huiwai-life .site-header.scrolled { background: rgba(246,251,255,.9); backdrop-filter: blur(10px); }
    .life-hero { padding: 100px 0 30px; }
    .life-hero::before { right: -240px; width: 480px; height: 480px; }
    .life-hero-grid, html[lang="ru"] .life-hero-grid { height: auto; display: flex; flex-direction: column; align-items: stretch; gap: 28px; }
    .life-hero-copy, html[lang="ru"] .life-hero-copy { width: 100%; }
    .life-breadcrumb { margin-bottom: 20px; font-size: 13px; }
    .life-eyebrow { margin-bottom: 10px; font-size: 12px; }
    .life-hero-copy h1, html[lang="ru"] .life-hero-copy h1 { max-width: 345px; font-size: 34px; line-height: 1.18; }
    .life-hero-intro { margin: 16px 0 21px; font-size: 14px; line-height: 1.75; }
    .life-facts { gap: 6px; }
    .life-facts > span { min-height: 44px; padding: 6px 8px; border-radius: 8px; font-size: 12px; }
    .life-facts strong { font-size: 17px; }
    .life-facts .ui-icon { font-size: 16px; }
    .life-hero-visual { position: relative; inset: auto; width: 100%; height: 255px; }
    .life-hero-visual > img { position: relative; inset: auto; display: block; border-radius: 18px; box-shadow: 0 18px 40px rgba(13,62,101,.14); -webkit-mask-image: none; mask-image: none; }
    .hero-note { right: auto; left: 12px; bottom: 13px; max-width: 250px; min-height: 62px; padding: 10px 13px; font-size: 13px; }
    .visual-place, .visual-index { display: none; }

    .life-anchor-bar { top: 80px; overflow: hidden; }
    .life-anchor-bar .page-container { width: 100%; min-width: 0; min-height: 70px; margin: 0; padding: 0 6px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
    .life-anchor-bar a { min-width: 0; min-height: 74px; padding: 6px 4px; border: 0; border-right: 1px solid #e5edf4; border-radius: 0; flex-direction: column; justify-content: center; gap: 4px; color: #294d6b; background: rgba(255,255,255,.96); box-shadow: none; font-size: 12px; font-weight: 700; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; }
    .life-anchor-bar a:first-child { border-left: 0; }
    .life-anchor-bar a:last-child { border-right: 0; }
    .life-anchor-bar span { flex: 0 0 25px; width: 25px; height: 25px; font-size: 12px; }
    html[lang="ru"] .life-anchor-bar a { font-size: 12px; line-height: 1.25; }

    .life-topics-section { padding: 48px 0 54px; }
    .life-section-heading { margin-bottom: 25px; display: block; }
    .life-section-heading > div > p { margin-bottom: 8px; font-size: 12px; }
    .life-section-heading h2 { font-size: 25px; }
    .life-section-heading > p { margin-top: 12px; font-size: 13px; }
    .life-topic-grid { gap: 12px; }
    .life-topic-card, html[lang="ru"] .life-topic-card { min-height: 0; border-radius: 11px; display: block; }
    .topic-image { min-height: 0; height: 175px; }
    .topic-copy, html[lang="ru"] .topic-copy { padding: 21px 20px; }
    .topic-icon { position: absolute; right: 20px; top: -23px; width: 46px; height: 46px; border: 4px solid #fff; }
    .topic-copy h3, html[lang="ru"] .topic-copy h3 { margin: 0 56px 8px 0; font-size: 19px; }
    .topic-copy p { font-size: 13px; }
    .topic-copy button, .topic-copy > a { margin-top: 14px; padding-top: 0; }

    .life-guides-section { padding: 50px 0 54px; }
    .compact-heading { display: flex; align-items: stretch; flex-direction: column; }
    .compact-heading > div { min-width: 0; }
    .compact-heading .outline-button { align-self: flex-start; min-width: 0; max-width: 100%; margin: 12px 0 0; white-space: normal; }
    .guide-feature { min-height: 350px; }
    .guide-feature-copy { padding: 24px 21px; }
    .guide-feature-copy h3 { font-size: 23px; }
    .guide-feature-copy p { font-size: 13px; }
    .guide-list { margin-top: 3px; }
    .guide-list article, .guide-list > a { min-height: 105px; padding: 16px; }
    .guide-list article h3, .guide-list > a h3 { font-size: 14px; }

    .concierge-process-section { padding: 50px 0; }
    .concierge-process { padding: 29px 22px; gap: 27px; }
    .process-copy h2 { font-size: 25px; }
    .process-copy > span { font-size: 13px; }
    .concierge-process ol { grid-template-columns: 1fr; gap: 0; }
    .concierge-process li { padding: 16px 0 16px 39px; border-left: 1px solid rgba(255,255,255,.16); }
    .concierge-process li > b { position: absolute; left: 10px; top: 17px; }
    .concierge-process h3 { margin: 0 0 5px; }

    .life-notice-section { padding-bottom: 50px; }
    .life-notice { padding: 20px; align-items: flex-start; gap: 14px; }
    .life-notice > span { flex-basis: 40px; width: 40px; height: 40px; font-size: 18px; }
    .life-notice h2 { font-size: 16px; }
    .life-notice p { font-size: 13px; }
}

@media (max-width: 390px) {
    .life-hero-copy h1, html[lang="ru"] .life-hero-copy h1 { font-size: 30px; }
    .life-facts > span:last-child { display: none; }
    .life-section-heading h2 { font-size: 23px; }
}
