/* Receiptly — стиль как в мобильном приложении */
:root {
    --primary: #00a8cc;
    --primary-dark: #0088a8;
    --primary-light: rgba(0, 168, 204, 0.1);
    --accent: #e91e9e;
    --background: #f5f7fa;
    --surface: #ffffff;
    --text: #1a1d29;
    --text-secondary: rgba(26, 29, 41, 0.65);
    --text-muted: rgba(26, 29, 41, 0.5);
    --border: #e5e8ed;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(26, 29, 41, 0.06);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        system-ui,
        -apple-system,
        'Segoe UI',
        Roboto,
        'Helvetica Neue',
        Arial,
        sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

/* Header */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.site-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

/* Main */
main {
    flex: 1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
}

/* Home hero */
.hero {
    text-align: center;
    padding: 3rem 1rem 4rem;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--background) 100%);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.hero__lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: #fff !important;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 168, 204, 0.35);
}

.hero__cta:hover {
    background: var(--primary-dark);
    text-decoration: none !important;
}

/* Features */
.features {
    padding: 3rem 0;
}

.features h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.feature-card h3 {
    font-size: 1.0625rem;
    margin: 0 0 0.5rem;
    color: var(--text);
}

.feature-card p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Legal pages */
.legal-page .container {
    max-width: 720px;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.legal-back:hover {
    color: var(--primary);
}

.legal-page h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.legal-updated {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.5rem 0 0.5rem;
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 0 1rem;
}

.legal-content strong {
    font-weight: 600;
    color: var(--text);
}

/* Footer */
.site-footer {
    margin-top: auto;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 2rem 1.25rem;
}

.site-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-footer p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.site-footer__links {
    display: flex;
    gap: 1.25rem;
}

.site-footer__links a {
    font-size: 0.875rem;
    font-weight: 500;
}

@media (max-width: 600px) {
    .site-footer__inner {
        flex-direction: column;
        text-align: center;
    }
}
