/*
Theme Name: ПРОСТО
Theme URI: https://vresurs.space/
Author: ПРОСТО
Description: Фирменный лендинг мини-приложения ПРОСТО с поддержкой блоков WordPress.
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: prosto
*/

@font-face {
    font-family: 'Manrope';
    src: url('/app/fonts/manrope-cyr.woff2') format('woff2');
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Manrope';
    src: url('/app/fonts/manrope-lat.woff2') format('woff2');
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    unicode-range: U+0000-00FF, U+2000-206F;
}

:root {
    --prosto-bg: #f4f5f2;
    --prosto-surface: #ffffff;
    --prosto-text: #171a18;
    --prosto-muted: #646b66;
    --prosto-border: rgba(16, 24, 18, 0.1);
    --prosto-accent: #8ffe09;
    --prosto-accent-hover: #74dc00;
    --prosto-accent-soft: rgba(143, 254, 9, 0.16);
    --prosto-shadow: 0 24px 70px rgba(25, 42, 24, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--prosto-bg);
    color: var(--prosto-text);
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #3f7d00;
    outline-offset: 4px;
}

.site-header {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--prosto-border);
    background: rgba(244, 245, 242, 0.92);
    backdrop-filter: blur(16px);
}

.header-inner,
.site-main,
.footer-inner {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--prosto-text);
    text-decoration: none;
}

.site-brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(39, 67, 30, 0.12);
}

.site-brand-copy {
    display: grid;
    line-height: 1.2;
}

.site-brand-copy strong {
    font-size: 20px;
    letter-spacing: 0.04em;
}

.site-brand-copy small {
    margin-top: 4px;
    color: var(--prosto-muted);
    font-size: 11px;
    font-weight: 600;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

.site-nav a {
    color: var(--prosto-muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--prosto-text);
}

.header-button,
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 0;
    border-radius: 14px;
    background: var(--prosto-accent);
    color: #06140c !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease;
}

.header-button:hover,
.wp-block-button__link:hover {
    background: var(--prosto-accent-hover);
    transform: translateY(-1px);
}

.site-main .hero {
    display: flex;
    align-items: center;
    min-height: 680px;
    padding: 72px 0 80px;
}

.site-main .hero > .wp-block-group__inner-container {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    align-items: center;
    gap: 64px;
    width: 100%;
}

.site-main .hero > * {
    min-width: 0;
}

.hero-copy {
    grid-column: 1;
    grid-row: 1;
    max-width: 650px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 20px;
    padding: 7px 12px;
    border: 1px solid rgba(63, 125, 0, 0.16);
    border-radius: 999px;
    background: var(--prosto-accent-soft);
    color: #3f7d00;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    max-width: 650px;
    font-size: clamp(46px, 6.2vw, 78px);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.02;
}

.text-highlight {
    position: relative;
    display: inline-block;
    z-index: 0;
}

.text-highlight::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: -3px;
    right: -3px;
    bottom: 3px;
    height: 22%;
    border-radius: 5px;
    background: var(--prosto-accent);
    transform: rotate(-1deg);
}

.hero-lead {
    max-width: 560px;
    margin: 26px 0 0;
    color: var(--prosto-muted);
    font-size: 19px;
    line-height: 1.65;
}

.hero-actions {
    margin-top: 32px;
}

.hero-actions .wp-block-button__link {
    min-height: 58px;
    padding: 16px 28px;
    border-radius: 17px;
    font-size: 16px;
}

.hero-note {
    margin: 14px 0 0;
    color: var(--prosto-muted);
    font-size: 13px;
}

.site-main .hero-visual {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    margin: 0;
    padding: 34px 26px;
}

.hero-visual::before {
    content: '';
    position: absolute;
    inset: 4% 0 0 8%;
    border-radius: 46% 54% 55% 45%;
    background: var(--prosto-accent);
    transform: rotate(-7deg);
}

.nutrition-card {
    position: relative;
    max-width: 390px;
    margin: 0 auto;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--prosto-shadow);
}

.nutrition-card .nutrition-card-head > .wp-block-group__inner-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.nutrition-card-head h2 {
    margin: 0;
    font-size: 21px;
    letter-spacing: -0.03em;
}

.nutrition-card-head p {
    margin: 0;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--prosto-accent-soft);
    color: #3f7d00;
    font-size: 11px;
    font-weight: 800;
}

.calories-number {
    margin: 0;
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.1;
}

.calories-label {
    margin: 5px 0 22px;
    color: var(--prosto-muted);
    font-size: 13px;
}

.macro-row {
    display: grid;
    grid-template-columns: 64px 1fr 48px;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    font-size: 12px;
    font-weight: 700;
}

.macro-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #eff1ed;
}

.macro-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.macro-fill.protein {
    width: 74%;
    background: #ff4d6d;
}

.macro-fill.fat {
    width: 58%;
    background: #ffb800;
}

.macro-fill.carbs {
    width: 82%;
    background: #35d461;
}

.macro-value {
    color: var(--prosto-muted);
    text-align: right;
}

.nutrition-card .mini-stats > .wp-block-group__inner-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 24px;
}

.mini-stat {
    padding: 13px 8px;
    border-radius: 16px;
    background: var(--prosto-bg);
    text-align: center;
}

.mini-stat strong,
.mini-stat span {
    display: block;
}

.mini-stat strong {
    font-size: 16px;
}

.mini-stat span {
    margin-top: 2px;
    color: var(--prosto-muted);
    font-size: 10px;
}

.section {
    padding: 88px 0;
}

.section-heading {
    max-width: 680px;
    margin-bottom: 40px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 50px);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.12;
}

.section-heading p {
    margin: 18px 0 0;
    color: var(--prosto-muted);
    font-size: 17px;
}

.site-main .features-grid > .wp-block-group__inner-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    min-height: 230px;
    padding: 28px;
    border: 1px solid var(--prosto-border);
    border-radius: 24px;
    background: var(--prosto-surface);
    box-shadow: 0 2px 4px rgba(20, 30, 20, 0.03);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 0 0 24px;
    border-radius: 15px;
    background: var(--prosto-accent-soft);
    font-size: 23px;
}

.feature-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
    letter-spacing: -0.025em;
    line-height: 1.3;
}

.feature-card p {
    margin: 0;
    color: var(--prosto-muted);
    font-size: 14px;
}

.steps-section {
    padding-top: 36px;
}

.site-main .steps-grid > .wp-block-group__inner-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    counter-reset: steps;
}

.step-card {
    position: relative;
    padding: 28px 26px 28px 74px;
    border-top: 1px solid var(--prosto-border);
    counter-increment: steps;
}

.step-card::before {
    content: counter(steps, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 25px;
    color: #3f7d00;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.step-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.step-card p {
    margin: 0;
    color: var(--prosto-muted);
    font-size: 14px;
}

.final-cta {
    position: relative;
    overflow: hidden;
    margin: 48px 0 80px;
    padding: 58px 54px;
    border-radius: 32px;
    background: #172017;
    color: #f5f7f3;
}

.final-cta::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    right: -100px;
    top: -150px;
    border-radius: 50%;
    background: var(--prosto-accent);
    opacity: 0.95;
}

.final-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.final-cta h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.final-cta p {
    margin: 18px 0 28px;
    color: #c3cdc0;
    font-size: 16px;
}

.site-footer {
    border-top: 1px solid var(--prosto-border);
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 110px;
    color: var(--prosto-muted);
    font-size: 13px;
}

.footer-brand {
    color: var(--prosto-text);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.footer-inner p {
    margin: 0 auto 0 0;
}

.footer-inner a:not(.footer-brand) {
    font-weight: 700;
    text-decoration: none;
}

.footer-inner small {
    font-size: 12px;
}

.inner-page {
    min-height: 65vh;
    padding: 64px 0;
}

.page-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    border: 1px solid var(--prosto-border);
    border-radius: 24px;
    background: var(--prosto-surface);
}

.page-card h1 {
    margin-top: 0;
    line-height: 1.2;
}

@media (max-width: 900px) {
    .site-main .hero {
        min-height: 0;
        padding-top: 56px;
    }

    .site-main .hero > .wp-block-group__inner-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-copy {
        max-width: 720px;
    }

    .site-main .hero-visual {
        grid-column: 1;
        grid-row: 2;
        width: min(100%, 480px);
        margin: 0 auto;
    }

    .site-main .steps-grid > .wp-block-group__inner-container {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 640px) {
    .header-inner,
    .site-main,
    .footer-inner {
        width: calc(100% - 28px);
    }

    .header-inner {
        min-height: 74px;
        gap: 12px;
    }

    .site-nav {
        display: none;
    }

    .header-button {
        min-height: 42px;
        margin-left: auto;
        padding: 10px 14px;
        border-radius: 12px;
        font-size: 12px;
    }

    .site-brand-copy small {
        display: none;
    }

    .site-brand-logo {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .site-main .hero {
        padding: 42px 0 50px;
    }

    .hero h1 {
        font-size: clamp(42px, 13vw, 58px);
    }

    .hero-lead {
        font-size: 16px;
    }

    .hero-actions .wp-block-button__link {
        width: 100%;
    }

    .site-main .hero-visual {
        padding: 26px 4px;
    }

    .nutrition-card {
        padding: 22px;
        border-radius: 24px;
    }

    .section {
        padding: 58px 0;
    }

    .site-main .features-grid > .wp-block-group__inner-container {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 0;
        padding: 24px;
    }

    .final-cta {
        margin: 24px 0 56px;
        padding: 38px 26px;
        border-radius: 25px;
    }

    .final-cta::after {
        width: 220px;
        height: 220px;
        right: -130px;
        top: -100px;
    }

    .footer-inner {
        flex-wrap: wrap;
        gap: 12px 20px;
        padding: 26px 0;
    }

    .footer-inner p {
        flex-basis: 100%;
        order: 3;
    }

    .footer-inner small {
        margin-left: auto;
    }

    .page-card {
        padding: 26px 20px;
    }
}

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

    * {
        transition: none !important;
    }
}
