:root {
    --twiin-green: #009e94;
    --twiin-green-dark: #007f78;
    --twiin-green-soft: #e6fbf8;
    --twiin-border: #dce8e6;
    --twiin-text: #111111;
    --twiin-muted: #4b5563;
    --twiin-red: #e72832;
    --twiin-red-soft: #ffd7da;
    --white: #ffffff;
    --shadow: 0 18px 40px rgba(0, 158, 148, 0.14);
    --font-heading: 'Nexa', Arial, sans-serif;
    --font-body: 'Avenir Next World', Arial, sans-serif;
}

@font-face {
    font-family: 'Nexa';
    src: url('../assets/fonts/nexa-regular.otf') format('opentype');
    font-weight: 400;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Nexa';
    src: url('../assets/fonts/nexa-bold.otf') format('opentype');
    font-weight: 700;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Nexa';
    src: url('../assets/fonts/nexa-extra-bold.otf') format('opentype');
    font-weight: 800;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir Next World';
    src: url('../assets/fonts/avenir-next-world-regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir Next World';
    src: url('../assets/fonts/avenir-next-world-medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir Next World';
    src: url('../assets/fonts/avenir-next-world-demi.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'Avenir Next World';
    src: url('../assets/fonts/avenir-next-world-bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--white);
    color: var(--twiin-text);
    font-family: var(--font-body);
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    letter-spacing: 0;
}

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

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

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

.page-container {
    width: min(100% - 40px, 1280px);
    margin: 0 auto;
}

.narrow-container {
    width: min(100% - 40px, 1040px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid rgba(220, 232, 230, 0.72);
    box-shadow: 0 10px 28px rgba(0, 158, 148, 0.08);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 24px;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.mylife-brand-link,
.brand-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.mylife-brand-link img {
    width: 136px;
    height: auto;
}

.brand-link img,
.footer-logo img {
    width: 103px;
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--twiin-text);
    font-size: 15px;
    font-weight: 600;
}

.site-nav a,
.footer-nav a,
.footer-links a {
    transition: color 0.2s ease;
}

.site-nav a:hover,
.footer-nav a:hover,
.footer-links a:hover {
    color: var(--twiin-green);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.language {
    color: var(--twiin-red);
    font-size: 14px;
    font-weight: 700;
}

.language-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid rgba(231, 40, 50, 0.2);
    border-radius: 8px;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.language-switch:hover {
    background-color: rgba(231, 40, 50, 0.08);
    border-color: rgba(231, 40, 50, 0.45);
    color: var(--twiin-red);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 8px;
    border: 2px solid transparent;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.button:hover,
.card-button:hover {
    transform: translateY(-1px);
}

.button-red {
    min-width: 165px;
    min-height: 40px;
    padding: 10px 22px;
    background-color: var(--twiin-red);
    color: var(--white);
    font-size: 14px;
}

.button-primary {
    min-height: 60px;
    padding: 16px 32px;
    background-color: var(--twiin-green);
    color: var(--white);
}

.button-primary:hover {
    background-color: var(--twiin-green-dark);
}

.button-outline {
    min-height: 60px;
    padding: 16px 32px;
    border-color: var(--twiin-green);
    color: var(--twiin-green);
}

.button-outline:hover {
    background-color: var(--twiin-green-soft);
}

.hero-section {
    padding: 96px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 584px) minmax(0, 1fr);
    align-items: stretch;
    justify-content: space-between;
    gap: 64px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
}

.hero-content h1 {
    max-width: 584px;
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
}

.hero-content h1 span {
    color: var(--twiin-green);
}

.hero-content p {
    max-width: 584px;
    color: var(--twiin-muted);
    font-size: 20px;
    line-height: 1.45;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-consultants {
    display: grid;
    grid-template-columns: repeat(2, minmax(230px, 295px));
    align-items: stretch;
    justify-content: end;
    gap: 20px;
}

.consultant-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--twiin-border);
    border-radius: 16px;
    text-align: center;
}

.consultant-card-accent {
    min-height: 460px;
    justify-content: space-between;
    padding: 32px;
    background:
        linear-gradient(180deg, rgba(0, 158, 148, 0.98) 0%, rgba(0, 158, 148, 0.95) 50%, rgba(255, 255, 255, 0.78) 132%);
    color: var(--white);
}

.consultant-card-compact {
    min-height: 420px;
    justify-content: space-between;
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(0, 158, 148, 0.98) 0%, rgba(0, 158, 148, 0.95) 55%, rgba(255, 255, 255, 0.82) 134%);
    color: var(--white);
    box-shadow: var(--shadow);
}

.consultant-photo {
    width: 96px;
    height: 96px;
    margin-bottom: 16px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    background-color: var(--white);
}

.consultant-card h2,
.consultant-card h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.consultant-role {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.consultant-description {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.45;
}

.card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 24px;
    padding: 12px 24px;
    background-color: var(--twiin-green);
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.card-button:hover {
    background-color: var(--twiin-green-dark);
}

.section {
    padding: 96px 0;
}

.section-tight {
    padding-top: 48px;
}

.section-green {
    background-color: var(--twiin-green);
}

.section-soft {
    background: linear-gradient(180deg, var(--white) 0%, var(--twiin-green-soft) 45%, var(--white) 100%);
}

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

.section-heading h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
}

.section-heading p {
    margin-top: 14px;
    color: var(--twiin-muted);
    font-size: 16px;
    line-height: 1.5;
}

.section-heading-light h2,
.section-heading-light p {
    color: var(--white);
}

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

.step-card {
    min-height: 212px;
    padding: 32px;
    background-color: var(--white);
    border: 1px solid var(--twiin-border);
    border-radius: 16px;
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    background-color: var(--twiin-green);
    border-radius: 50%;
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
}

.step-card h3,
.feature-card h3,
.topic-card h3,
.testimonial-card h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.step-card p,
.feature-card p,
.topic-card p,
.testimonial-card p {
    margin-top: 14px;
    color: var(--twiin-muted);
    font-size: 16px;
    line-height: 1.5;
}

.consultants-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(230px, 295px));
    justify-content: center;
    gap: 24px;
}

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

.topics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
}

#topics .narrow-container {
    max-width: 860px;
}

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

.feature-card,
.topic-card,
.testimonial-card {
    min-height: 174px;
    padding: 24px;
    border-radius: 8px;
}

.feature-card {
    background-color: var(--twiin-green);
    color: var(--white);
}

.feature-card p,
.feature-card h3 {
    color: var(--white);
}

.feature-icon,
.topic-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-bottom: 18px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
}

.feature-icon svg,
.topic-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-icon {
    background-color: var(--white);
    color: var(--twiin-green);
}

.notice-section {
    padding: 0;
    background-color: var(--twiin-red-soft);
}

.notice-section .page-container {
    width: min(calc(100% - clamp(40px, 26vw, 520px)), 1080px);
}

.notice-card {
    padding: 32px;
    background-color: var(--twiin-red);
    border-radius: 8px;
    color: var(--white);
}

.notice-card h2 {
    font-size: 24px;
    line-height: 1.2;
}

.notice-card p {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.55;
}

.section-partners {
    padding: 72px 0;
}

.section-partners .section-heading {
    margin-bottom: 32px;
}

.partners-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 24px 48px;
}

.partner-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 138px;
    min-height: 56px;
    padding: 6px 12px;
    background-color: rgba(0, 158, 148, 0.1);
    border-radius: 6px;
}

.partner-logo-card img {
    width: 100%;
    height: 36px;
    object-fit: contain;
}

.partner-logo-mylife {
    position: relative;
    display: block;
    width: 101px;
    height: 36px;
}

.partner-logo-mylife img {
    position: absolute;
    display: block;
    margin: 0;
}

.partner-logo-card .partner-mylife-mark {
    top: 0;
    right: 0;
    width: 16.67%;
    height: 45.57%;
}

.partner-logo-card .partner-mylife-word {
    left: 0;
    top: 18.99%;
    width: 86.04%;
    height: 81.01%;
}

.topic-card,
.testimonial-card {
    background-color: var(--white);
    border: 1px solid var(--twiin-border);
    box-shadow: 0 10px 24px rgba(0, 158, 148, 0.08);
}

.topic-icon {
    background-color: var(--twiin-green-soft);
    color: var(--twiin-green);
}

.testimonials-section {
    padding-top: 72px;
}

.testimonial-card {
    min-height: 210px;
}

.stars {
    color: #f6b443;
    font-size: 18px;
    line-height: 1;
}

.testimonial-card h3 {
    margin-top: 18px;
}

.faq-container {
    width: min(100% - 40px, 1030px);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid var(--twiin-green);
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--white);
}

.faq-item[open] {
    background-color: var(--twiin-green);
}

.faq-item summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 22px 56px 22px 24px;
    color: var(--twiin-green);
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    line-height: 1;
}

.faq-item[open] summary,
.faq-item[open] p {
    color: var(--white);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 24px 24px;
    color: var(--twiin-muted);
    font-size: 16px;
    line-height: 1.5;
}

.legal-hero {
    padding: 88px 0 48px;
    background:
        linear-gradient(180deg, rgba(230, 251, 248, 0.72) 0%, rgba(255, 255, 255, 1) 100%);
}

.legal-container {
    width: min(100% - 40px, 920px);
}

.legal-eyebrow {
    color: var(--twiin-green);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.legal-hero h1 {
    margin-top: 14px;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.05;
}

.legal-hero p:not(.legal-eyebrow) {
    margin-top: 18px;
    max-width: 760px;
    color: var(--twiin-muted);
    font-size: 20px;
    line-height: 1.5;
}

.legal-hero span {
    display: inline-flex;
    margin-top: 22px;
    color: var(--twiin-muted);
    font-size: 14px;
    font-weight: 600;
}

.legal-section {
    padding: 0 0 88px;
}

.legal-card {
    padding: 40px;
    background-color: var(--white);
    border: 1px solid var(--twiin-border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.legal-card h2 {
    margin-top: 34px;
    color: var(--twiin-green);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

.legal-card h2:first-child {
    margin-top: 0;
}

.legal-card p {
    margin-top: 12px;
    color: var(--twiin-text);
    font-size: 17px;
    line-height: 1.65;
}

.legal-card a {
    color: var(--twiin-green);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer {
    padding: 48px 0;
    background-color: var(--twiin-green);
    color: var(--white);
}

.footer-top,
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.footer-top {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

.footer-logo img {
    filter: brightness(0) invert(1);
}

.footer-nav,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    font-size: 16px;
    font-weight: 600;
}

.footer-nav a:hover,
.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 24px;
    font-size: 15px;
}

@media (max-width: 1180px) {
    .site-nav {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-consultants {
        justify-content: start;
    }
}

@media (max-width: 900px) {
    .notice-section .page-container {
        width: min(100% - 40px, 760px);
    }

    .hero-section,
    .section {
        padding: 64px 0;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .steps-grid,
    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .step-card,
    .feature-card,
    .topic-card,
    .testimonial-card {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    #topics .topics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-container,
    .narrow-container,
    .faq-container {
        width: min(100% - 32px, 1280px);
    }

    .header-inner {
        align-items: stretch;
        flex-direction: column;
        min-height: 68px;
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .brand-group {
        justify-content: space-between;
        gap: 12px;
        width: 100%;
    }

    .mylife-brand-link img {
        width: clamp(98px, 31vw, 124px);
    }

    .brand-link img,
    .footer-logo img {
        width: clamp(78px, 24vw, 96px);
    }

    .header-actions {
        justify-content: space-between;
        gap: 8px;
        width: 100%;
    }

    .language:not(.language-switch) {
        display: none;
    }

    .button-red {
        flex: 1 1 auto;
        min-width: 0;
        padding: 9px 14px;
        font-size: 13px;
        white-space: normal;
    }

    .language-switch {
        order: 2;
        flex: 0 0 auto;
        min-width: 44px;
        min-height: 38px;
        padding: 8px 10px;
    }

    .header-actions .button-red {
        order: 1;
        min-height: 38px;
        line-height: 1.15;
    }

    .hero-section {
        padding: 56px 0 64px;
    }

    .hero-grid,
    .hero-content {
        gap: 28px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-actions,
    .hero-actions .button {
        width: 100%;
    }

    .hero-consultants,
    .consultants-grid {
        grid-template-columns: 1fr;
    }

    .consultant-card-accent,
    .consultant-card-compact {
        min-height: auto;
        padding: 24px;
    }

    .section-heading {
        margin-bottom: 36px;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .legal-hero {
        padding: 56px 0 36px;
    }

    .legal-container {
        width: min(100% - 32px, 920px);
    }

    .legal-hero h1 {
        font-size: 38px;
    }

    .legal-hero p:not(.legal-eyebrow) {
        font-size: 17px;
    }

    .legal-section {
        padding-bottom: 64px;
    }

    .legal-card {
        padding: 24px;
        border-radius: 12px;
    }

    .legal-card h2 {
        font-size: 22px;
    }

    .legal-card p {
        font-size: 16px;
    }

    .notice-card {
        padding: 24px;
    }

    .notice-section .page-container {
        width: min(100% - 32px, 1280px);
    }

    .partners-row {
        gap: 12px;
    }

    .partner-logo-card {
        width: 128px;
    }

    .faq-item summary {
        min-height: 64px;
        padding: 18px 48px 18px 18px;
        font-size: 18px;
    }

    .faq-item summary::after {
        right: 18px;
    }

    .faq-item p {
        padding: 0 18px 20px;
    }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-nav,
    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 380px) {
    .mylife-brand-link img {
        width: 92px;
    }

    .brand-link img {
        width: 74px;
    }

    .brand-group {
        gap: 8px;
    }

    .button-red {
        padding: 8px 10px;
        font-size: 12px;
    }
}
