:root {
    --color-primary: #1d95c3;
    --color-primary-dark: #0f6d93;
    --color-secondary: #86c861;
    --color-accent: #e79f45;
    --color-bg: #f4fbff;
    --color-surface: #ffffff;
    --color-text: #0f1b2b;
    --color-muted: #5b6b7a;
    --color-border: #d9e6ef;
    --shadow-card: 0 20px 45px rgba(15, 23, 42, 0.08);
    --transition-base: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    scroll-behavior: smooth;
}

a {
    color: inherit;
    transition: color 0.2s ease;
}

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

.container {
    width: min(1200px, 100% - 2.5rem);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
    transition: box-shadow 0.3s var(--transition-base);
}

.site-header:hover {
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: inherit;
}

.logo-text {
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.03em;
}

.logo-mark {
    width: 44px;
    height: auto;
    display: block;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    font-weight: 500;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text);
    position: relative;
    padding-bottom: 0.25rem;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s var(--transition-base);
}

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

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

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    cursor: pointer;
}

.nav-toggle-label span {
    width: 26px;
    height: 2px;
    background: var(--color-text);
    transition: transform 0.2s ease;
}

.hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, rgba(29, 149, 195, 0.18), rgba(134, 200, 97, 0.15), rgba(231, 159, 69, 0.12));
    background-size: 200% 200%;
    animation: gradientShift 12s ease infinite;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.subtitle {
    color: var(--color-muted);
    max-width: 52ch;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: var(--color-secondary);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s var(--transition-base), box-shadow 0.2s var(--transition-base), background 0.2s var(--transition-base);
}

.btn.primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 15px 30px rgba(31, 111, 178, 0.25);
}

.btn.secondary {
    background: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.about-portrait-placeholder {
    border: 1.5px dashed var(--color-border);
    border-radius: 1rem;
    padding: 2rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-muted);
    background: #fff;
    transition: transform 0.5s var(--transition-base), box-shadow 0.5s var(--transition-base);
}

.image-placeholder {
    border-radius: 1.1rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
    min-height: 220px;
    aspect-ratio: 4 / 3;
    background: #050b14;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
    display: block;
    position: relative;
    transition: transform 0.5s var(--transition-base), box-shadow 0.5s var(--transition-base);
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--transition-base);
}

.image-placeholder::after {
    content: attr(data-label);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.9rem 1rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    background: linear-gradient(180deg, rgba(5, 11, 20, 0) 0%, rgba(5, 11, 20, 0.85) 100%);
}

.floating {
    animation: float 8s ease-in-out infinite;
}

.hero-image {
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18);
    min-height: 280px;
    background: #fff;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mocap-media {
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12);
    background: #000;
}

.mocap-media video {
    width: 100%;
    height: 100%;
    display: block;
}

.section {
    padding: 4.5rem 0;
}

.section-alt {
    background: #eef3f8;
}

.section-header h2 {
    margin: 0.5rem 0;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.section-header p {
    margin-bottom: 0;
}

.cards-grid {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: 1.2rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    transition: transform 0.35s var(--transition-base), box-shadow 0.35s var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card h3 {
    margin-top: 0;
}

.tagline {
    font-weight: 600;
    color: var(--color-primary);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 600;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.text-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: translateX(-100%);
    transition: transform 0.3s var(--transition-base);
}

.text-link:hover::after,
.text-link:focus-visible::after {
    transform: translateX(0);
}

.card:hover,
.card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.12);
}

.card-app {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.app-icon-wrapper {
    width: clamp(80px, 20vw, 120px);
    height: clamp(80px, 20vw, 120px);
    border-radius: 0.55rem;
    border: 1px solid var(--color-border);
    background: linear-gradient(135deg, rgba(251, 251, 251, 0.8), rgba(230, 240, 255, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    flex-shrink: 0;
}

.app-text {
    flex: 1;
    min-width: 180px;
}

.app-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1rem;
    border-radius: 0.95rem;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    background: #fff;
    transition: transform 0.25s var(--transition-base), box-shadow 0.25s var(--transition-base), border-color 0.25s var(--transition-base);
    min-width: 200px;
}

.store-btn small {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-muted);
}

.store-btn .store-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.store-btn .store-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
}

.store-btn .store-icon svg {
    width: 22px;
    height: 22px;
}

.store-btn.google-play {
    border-color: rgba(66, 133, 244, 0.2);
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(60, 186, 84, 0.08));
}

.store-btn.app-store {
    border-color: rgba(15, 23, 42, 0.15);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.04));
}

.store-btn:hover,
.store-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.15);
    border-color: var(--color-primary);
}

.advantages {
    margin-top: 2rem;
}

.advantages ul {
    padding-left: 1.2rem;
}

.image-grid {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.image-placeholder:hover,
.image-placeholder:focus-within,
.about-portrait-placeholder:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.12);
}

.image-placeholder:hover img,
.image-placeholder:focus-within img {
    transform: scale(1.05);
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 200;
}

.modal.is-visible {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 18, 33, 0.7);
    backdrop-filter: blur(6px);
}

.modal-content {
    position: relative;
    z-index: 1;
    background: var(--color-surface);
    border-radius: 1.5rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    width: min(960px, 100%);
    max-height: min(90vh, 900px);
    overflow-y: auto;
    border: 1px solid var(--color-border);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.25);
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-muted);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
    color: var(--color-primary);
}

.legacy-grid {
    margin-top: 0;
}

.legacy-card {
    gap: 1.25rem;
}

.legacy-card .card-app {
    flex-direction: column;
    text-align: center;
}

.legacy-card .app-icon-wrapper {
    margin: 0 auto;
}

.legacy-card .app-text {
    text-align: center;
}

.legacy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    padding-top: 0.75rem;
    margin-top: auto;
    border-top: 1px solid var(--color-border);
}

.legacy-meta .meta-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted);
    margin-bottom: 0.2rem;
}

.legacy-meta .meta-value {
    font-weight: 600;
    font-size: 1.05rem;
}

body.modal-open {
    overflow: hidden;
}

.mocap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
}

.steps ol {
    padding-left: 1.2rem;
    color: var(--color-muted);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-info {
    list-style: none;
    padding-left: 0;
}

.contact-info li + li {
    margin-top: 0.4rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--color-surface);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--color-border);
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(31, 111, 178, 0.35);
    border-color: var(--color-primary);
}

.site-footer {
    background: #0f172a;
    color: #f8fafc;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.95rem;
}

.site-footer a {
    color: #f8fafc;
    text-decoration: none;
}

[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--transition-base), transform 0.6s var(--transition-base);
}

[data-animate='fade-down'] {
    transform: translateY(-20px);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .nav-toggle-label {
        display: flex;
    }

    .main-nav {
        position: absolute;
        inset: 70px 1rem auto;
        flex-direction: column;
        background: var(--color-surface);
        padding: 1.5rem;
        border-radius: 1rem;
        border: 1px solid var(--color-border);
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-toggle:checked ~ .main-nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .hero {
        padding-top: 4rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
}

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

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0);
    }
}
.app-text h3 {
    margin-bottom: 0.3rem;
}
