/* Eat Easy — landing */
:root {
    --green: #34c759;
    --green-dark: #2aa64a;
    --green-tint: #eafaef;
    --ink: #1d1d1f;
    --muted: #6e6e73;
    --bg: #ffffff;
    --bg-alt: #f5f5f7;
    --radius: 20px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Nav */
nav {
    position: sticky; top: 0; z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.lang-switch {
    padding: 5px 14px; border: 1px solid rgba(0,0,0,0.15); border-radius: 999px;
    font-size: 14px; color: var(--ink) !important;
}
.lang-switch:hover { background: var(--bg-alt); }

/* Hero */
.hero {
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px;
    align-items: center; padding: 72px 0 56px;
}
.hero h1 {
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.12; letter-spacing: -0.02em; font-weight: 800;
}
.hero h1 em { color: var(--green); font-style: normal; }
.hero .sub { margin-top: 20px; font-size: 20px; color: var(--muted); max-width: 32em; }
.hero-cta { margin-top: 32px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--muted); }

.appstore-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: #000; color: #fff; text-decoration: none;
    padding: 12px 22px; border-radius: 14px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.appstore-btn:hover { transform: scale(1.03); opacity: 0.9; }
.appstore-btn .apple { font-size: 26px; line-height: 1; }
.appstore-btn .txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.appstore-btn .txt small { font-size: 11px; opacity: 0.85; }
.appstore-btn .txt strong { font-size: 17px; font-weight: 600; }

.phone {
    border-radius: 40px; box-shadow: var(--shadow);
    overflow: hidden; border: 1px solid rgba(0,0,0,0.08);
    max-width: 340px; margin: 0 auto;
    aspect-ratio: 1320 / 2868; /* убирает прыжки макета до загрузки картинок */
    object-fit: cover;
}

.appstore-btn .apple svg { width: 22px; height: 26px; fill: currentColor; display: block; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); }
.eyebrow {
    display: inline-block; color: var(--green-dark); font-weight: 700;
    font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 12px;
}
h1, h2, h3 { text-wrap: balance; }
h2 { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -0.01em; line-height: 1.2; }
.section-sub { margin-top: 12px; color: var(--muted); font-size: 18px; max-width: 40em; }

/* Scan modes */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.mode { text-align: center; }
.mode .phone { max-width: 260px; border-radius: 32px; }
.mode h3 { margin-top: 22px; font-size: 20px; }
.mode p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Features grid */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.feature {
    background: var(--bg); border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius); padding: 28px;
}
section.alt .feature { background: #fff; }
.feature .icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--green-tint); color: var(--green-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 16px;
}
.feature h3 { font-size: 18px; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Split section (history) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 8px; }
.split .phone { max-width: 300px; }
.split ul { margin-top: 24px; list-style: none; }
.split li { padding-left: 32px; position: relative; margin-bottom: 14px; color: var(--muted); }
.split li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    color: var(--green); font-weight: 700;
}
.split li strong { color: var(--ink); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; max-width: 760px; margin-left: auto; margin-right: auto; }
.plan {
    border-radius: var(--radius); padding: 32px;
    border: 1px solid rgba(0,0,0,0.08); background: #fff;
}
.plan.premium { border: 2px solid var(--green); position: relative; }
.plan .badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--green); color: #fff; font-size: 12px; font-weight: 700;
    padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 22px; }
.plan .price { margin-top: 6px; color: var(--muted); font-size: 15px; }
.plan ul { margin-top: 20px; list-style: none; }
.plan li { padding-left: 28px; position: relative; margin-bottom: 10px; font-size: 15px; color: var(--muted); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* Privacy strip */
.privacy-strip { text-align: center; max-width: 44em; margin: 0 auto; }
.privacy-strip .lock { font-size: 40px; }
.privacy-strip h2 { margin-top: 12px; }

/* CTA */
.final-cta { text-align: center; }
.final-cta .hero-cta { justify-content: center; }

/* Footer */
footer { padding: 40px 0 56px; border-top: 1px solid rgba(0,0,0,0.06); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer, footer a { color: var(--muted); font-size: 14px; text-decoration: none; }
footer a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 860px) {
    .container { padding: 0 20px; }
    section { padding: 44px 0; }

    /* Hero: компактнее, всё по центру */
    .hero { grid-template-columns: 1fr; text-align: center; padding: 36px 0 40px; gap: 32px; }
    .hero .sub { margin: 14px auto 0; font-size: 17px; }
    .hero-cta { margin-top: 24px; justify-content: center; }
    .hero .phone { max-width: 230px; }
    .hero-note { font-size: 13px; }

    .appstore-btn { padding: 12px 26px; }

    .section-sub { font-size: 16px; }

    /* Режимы сканирования: горизонтальная карусель со свайпом */
    .modes {
        display: flex;
        gap: 16px;
        margin: 36px -20px 0;
        padding: 4px 20px 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .modes::-webkit-scrollbar { display: none; }
    .mode {
        flex: 0 0 76%;
        max-width: 300px;
        scroll-snap-align: center;
        background: #fff;
        border: 1px solid rgba(0,0,0,0.06);
        border-radius: var(--radius);
        padding: 20px 16px;
    }
    .mode .phone { max-width: 190px; border-radius: 26px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
    .mode h3 { margin-top: 16px; font-size: 17px; }
    .mode p { font-size: 14px; }

    /* Фичи: одна колонка, плотнее */
    .features { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
    .feature { padding: 20px; }
    .feature .icon { width: 38px; height: 38px; font-size: 19px; margin-bottom: 12px; }
    .feature h3 { font-size: 17px; }
    .feature p { font-size: 14px; }

    .split { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .split ul { text-align: left; margin-top: 18px; }
    .split li { font-size: 15px; }
    .split .phone { max-width: 230px; }

    .plans { grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
    .plan { padding: 24px; }

    .privacy-strip .lock { font-size: 32px; }

    .nav-links { gap: 12px; }
    .nav-links a:not(.lang-switch) { display: none; }

    .footer-inner { flex-direction: column; text-align: center; gap: 12px; }
    .footer-links { justify-content: center; }
}
