:root {
    color-scheme: light;
    --bg: #f5f8f5;
    --bg-soft: #fffdf9;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-strong: #ffffff;
    --text: #12332f;
    --muted: #657a72;
    --primary: #0f5d54;
    --primary-dark: #0a413b;
    --secondary: #d87955;
    --food: #e26f3f;
    --border: #dce7e1;
    --card-border: rgba(207, 224, 216, 0.9);
    --feature-text: #284640;
    --button-text: #ffffff;
    --check-text: #ffffff;
    --hero-glow-primary: rgba(15, 93, 84, 0.16);
    --hero-glow-secondary: rgba(216, 121, 85, 0.14);
    --brand-shadow: 0 10px 30px rgba(15, 93, 84, 0.18);
    --shadow: 0 20px 60px rgba(7, 39, 35, 0.10);
    --institutional-start: rgba(9, 61, 56, 0.96);
    --institutional-end: rgba(18, 96, 86, 0.92);
    --institutional-solid: #093d38;
    --icon-bg-fisio: rgba(15, 93, 84, 0.10);
    --icon-bg-food: rgba(226, 111, 63, 0.13);
    --contact-text: #0e302c;
    --radius: 24px;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #061d1a;
    --bg-soft: #0b2925;
    --surface: rgba(13, 49, 44, 0.84);
    --surface-strong: #123a35;
    --text: #edf8f2;
    --muted: #a8beb6;
    --primary: #62b6a7;
    --primary-dark: #8ed0c3;
    --secondary: #e18b68;
    --food: #f08a5d;
    --border: #244943;
    --card-border: rgba(64, 104, 96, 0.74);
    --feature-text: #d6e6df;
    --button-text: #08221f;
    --check-text: #08221f;
    --hero-glow-primary: rgba(98, 182, 167, 0.18);
    --hero-glow-secondary: rgba(225, 139, 104, 0.16);
    --brand-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.30);
    --institutional-start: rgba(8, 34, 31, 0.98);
    --institutional-end: rgba(14, 66, 59, 0.94);
    --institutional-solid: #08221f;
    --icon-bg-fisio: rgba(98, 182, 167, 0.16);
    --icon-bg-food: rgba(240, 138, 93, 0.16);
    --contact-text: #08221f;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, var(--hero-glow-primary), transparent 32%),
        radial-gradient(circle at top right, var(--hero-glow-secondary), transparent 28%),
        var(--bg);
    color: var(--text);
    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

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

img {
    max-width: 100%;
    height: auto;
}

.page {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--primary);
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
    z-index: 100;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
}

header {
    padding: 28px 0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--surface-strong);
    display: grid;
    place-items: center;
    padding: 6px;
    box-shadow: var(--brand-shadow);
    flex: 0 0 auto;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text strong {
    display: block;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.brand-text span {
    color: var(--muted);
    font-size: 13px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
}

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

.nav-links a:hover,
.nav-links a:focus {
    color: var(--primary);
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(7, 39, 35, 0.08);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.theme-toggle-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: inset -6px -6px 0 0 var(--surface-strong);
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

[data-theme="dark"] .theme-toggle-icon {
    background: var(--secondary);
    box-shadow: 0 0 0 5px rgba(225, 139, 104, 0.16);
    transform: scale(0.82);
}

.hero {
    padding: 72px 0 44px;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 22px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 14px;
    backdrop-filter: blur(12px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--secondary);
    box-shadow: 0 0 0 6px rgba(216, 121, 85, 0.14);
}

.hero h1 {
    max-width: 900px;
    margin: 0 auto;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    max-width: 760px;
    margin: 24px auto 0;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.65;
}

.seo-intro {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 0 24px;
    text-align: center;
    color: var(--muted);
    line-height: 1.75;
    font-size: 16px;
}

.solutions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 32px 0 64px;
}

.visually-hidden {
    position: absolute;
    left: -9999px;
}

.solution-card {
    position: relative;
    overflow: hidden;
    padding: 34px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.solution-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.solution-card::after {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    opacity: 0.12;
}

.solution-card.fisio::after {
    background: var(--primary);
}

.solution-card.food::after {
    background: var(--food);
}

.solution-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    padding: 8px;
    margin-bottom: 22px;
}

.solution-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fisio .solution-icon {
    background: var(--icon-bg-fisio);
}

.food .solution-icon {
    background: var(--icon-bg-food);
}

.solution-card small {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
}

.solution-card h2 {
    font-size: 30px;
    letter-spacing: -0.04em;
    margin-bottom: 14px;
}

.solution-card p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 16px;
    margin-bottom: 24px;
}

.features {
    display: grid;
    gap: 10px;
    margin-bottom: 28px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--feature-text);
    font-size: 15px;
}

.check {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--check-text);
    font-size: 12px;
    flex: 0 0 auto;
}

.fisio .check {
    background: var(--primary);
}

.food .check {
    background: var(--food);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 14px;
    border: none;
    color: var(--button-text);
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

.button:hover,
.button:focus {
    transform: translateX(3px);
    filter: brightness(0.96);
}

.button.fisio-button {
    background: var(--primary);
}

.button.food-button {
    background: var(--food);
}

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

.section-title {
    text-align: center;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.05em;
    margin-bottom: 18px;
}

.section-lead {
    max-width: 780px;
    margin: 0 auto 32px;
    text-align: center;
    color: var(--muted);
    line-height: 1.75;
}

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

.content-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 14px 40px rgba(7, 39, 35, 0.06);
}

.content-card h3 {
    font-size: 20px;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.content-card p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 15px;
}

.institutional {
    margin-bottom: 72px;
    border-radius: 30px;
    padding: 42px;
    background:
        linear-gradient(135deg, var(--institutional-start), var(--institutional-end)),
        var(--institutional-solid);
    color: white;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.institutional::before {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.institutional-content {
    position: relative;
    max-width: 860px;
}

.institutional-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.institutional-brand img {
    width: 112px;
    max-height: 44px;
    object-fit: contain;
}

.institutional small {
    display: inline-block;
    color: rgba(255, 255, 255, 0.68);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.institutional h2 {
    font-size: clamp(26px, 4vw, 40px);
    letter-spacing: -0.05em;
    margin-bottom: 16px;
}

.institutional p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.75;
    font-size: 18px;
}

.contact-strip {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    background: #ffffff;
    color: var(--contact-text);
    font-weight: 700;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.contact-button:hover,
.contact-button:focus {
    transform: translateY(-2px);
    opacity: 0.92;
}

.contact-button.secondary {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.20);
}

footer {
    padding: 24px 0 36px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 12px;
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--primary);
}

.fade-in {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .solution-card,
    .button,
    .contact-button,
    .theme-toggle,
    .theme-toggle-icon {
        transition: none;
    }
}

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

@media (max-width: 760px) {
    .navbar {
        align-items: center;
    }

    .nav-links {
        display: none;
    }

    .nav-actions {
        gap: 0;
    }

    .hero {
        padding-top: 46px;
    }

    .solutions {
        grid-template-columns: 1fr;
        padding-bottom: 44px;
    }

    .solution-card {
        padding: 28px;
    }

    .institutional {
        padding: 32px 26px;
        margin-bottom: 42px;
    }
}
