/* Летний лендинг — палитра и hero с видео */

.leto-page {
    --bg: #f4f9f0;
    --surface: #ffffff;
    --surface-muted: #e3f0dc;
    --ink: #1a2e22;
    --ink-soft: #3d5c48;
    --line: #c5dcc0;
    --brand: #5a9e4a;
    --brand-dark: #3d7a34;
    --deep: #1f3d2a;
}

.leto-page .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 120;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(26, 46, 34, 0.35);
    backdrop-filter: blur(10px);
}

.leto-page .leto-logo,
.leto-page .leto-logo .logo-title,
.leto-page .leto-logo .logo-subtitle {
    color: #f8fff4;
}

.leto-page .leto-main-nav a {
    color: rgba(248, 255, 244, 0.88);
}

.leto-page .leto-main-nav a:hover,
.leto-page .leto-main-nav a.active {
    color: #fff;
}

.leto-page .leto-nav-toggle {
    color: #f8fff4;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.15);
}

.leto-hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.leto-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

.leto-hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        165deg,
        rgba(20, 42, 28, 0.72) 0%,
        rgba(30, 58, 38, 0.45) 45%,
        rgba(40, 70, 45, 0.55) 100%
    );
}

.leto-hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    color: #f8fff4;
}

.leto-kicker {
    color: #d4f0b8;
    text-transform: none;
    letter-spacing: 0.03em;
    font-size: clamp(0.72rem, 1.4vw, 0.82rem);
    line-height: 1.45;
    max-width: 28em;
}

.leto-hero-title {
    margin: 10px 0 16px;
    color: #fff;
    letter-spacing: 0.01em;
    line-height: 1.12;
}

.leto-hero-title-main {
    display: block;
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    font-weight: 700;
}

.leto-hero-title-sub {
    display: block;
    margin-top: 4px;
    font-size: clamp(1.55rem, 3.6vw, 2.45rem);
    font-weight: 600;
    color: rgba(248, 255, 244, 0.95);
}

.leto-hero-lead {
    color: rgba(248, 255, 244, 0.92);
    font-size: clamp(1.05rem, 2vw, 1.22rem);
    max-width: 36em;
    margin-bottom: 14px;
}

.leto-hero-facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: 22px;
    font-size: clamp(0.78rem, 1.5vw, 0.88rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(212, 240, 184, 0.95);
}

.leto-hero-facts-sep {
    opacity: 0.55;
    font-weight: 400;
}

.leto-hero-actions .leto-btn-primary {
    white-space: normal;
    text-align: center;
    max-width: 100%;
    background: #7ec86a;
    border-color: #7ec86a;
    color: #163018;
}

.leto-hero-actions .leto-btn-primary:hover {
    background: #9ad888;
    border-color: #9ad888;
    color: #102410;
}

.leto-hero-actions .leto-btn-ghost {
    background: rgba(16, 36, 16, 0.42);
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff;
}

.leto-hero-actions .leto-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    color: #fff;
}

.leto-hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 2;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 1.5rem;
    line-height: 1;
    animation: leto-bounce 2s ease-in-out infinite;
}

@keyframes leto-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

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

.leto-section-muted {
    background: var(--surface-muted);
}

.leto-intro {
    max-width: 52em;
    margin-bottom: 28px;
}

.leto-founder {
    padding-top: 64px;
    padding-bottom: 64px;
}

.leto-founder-grid {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 32px 36px;
    align-items: start;
}

.leto-founder-photo {
    width: 220px;
    height: 220px;
    margin: 0;
    justify-self: center;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--line);
    box-shadow: 0 12px 36px rgba(40, 80, 50, 0.12);
}

.leto-founder-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.leto-founder-name {
    margin: 0 0 6px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-dark);
}

.leto-founder-title {
    margin: 0 0 16px;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    line-height: 1.25;
    color: var(--deep);
    max-width: 22em;
}

.leto-founder-lead {
    max-width: 40em;
    margin-bottom: 18px;
}

.leto-founder-points {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
    margin: 0 0 20px;
    padding: 0;
    max-width: 42em;
}

.leto-founder-points li {
    position: relative;
    padding-left: 1.1em;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--ink-soft);
}

.leto-founder-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
}

.leto-founder-key {
    margin: 0 0 16px;
    font-size: clamp(1.08rem, 1.9vw, 1.25rem);
    font-weight: 700;
    line-height: 1.45;
    color: var(--brand-dark);
    max-width: 28em;
}

.leto-founder-link {
    display: inline-block;
}

.leto-card {
    border-color: var(--line);
    box-shadow: 0 8px 28px rgba(40, 80, 50, 0.06);
}

.leto-list {
    margin: 0;
    padding-left: 1.2em;
    color: var(--ink-soft);
    display: grid;
    gap: 12px;
    max-width: 52em;
}

.leto-list li::marker {
    color: var(--brand);
}

.leto-for-whom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px 32px;
    align-items: start;
}

.leto-for-whom-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.leto-for-whom-col-title {
    margin: 0 0 14px;
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    color: var(--deep);
    line-height: 1.3;
    min-height: calc(1.3em * 2);
}

.leto-for-whom-col--result .leto-result-panel {
    flex: 1;
}

.leto-for-whom-lead {
    max-width: none;
    margin-bottom: 20px;
}

.leto-result-panel {
    padding: 24px 26px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 10px 32px rgba(40, 80, 50, 0.08);
}

.leto-result-lead {
    max-width: none;
    margin-bottom: 18px;
}

.leto-list--for-whom {
    gap: 16px;
    max-width: none;
}

.leto-list--for-whom li {
    padding-left: 0.25em;
    line-height: 1.55;
}

.leto-list--result {
    list-style: none;
    counter-reset: leto-result;
    padding-left: 0;
    gap: 14px;
    max-width: none;
    margin-bottom: 22px;
}

.leto-list--result li {
    position: relative;
    padding-left: 2.6em;
    line-height: 1.55;
}

.leto-list--result li::before {
    counter-increment: leto-result;
    content: counter(leto-result);
    position: absolute;
    left: 0;
    top: 0.05em;
    width: 1.75em;
    height: 1.75em;
    display: grid;
    place-items: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    background: var(--brand);
    border-radius: 50%;
    line-height: 1;
}

.leto-side-effects-kicker {
    margin: 0 0 12px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-dark);
}

.leto-list--side-effects {
    gap: 10px;
    max-width: none;
    padding-left: 1.1em;
}

.leto-var {
    font-weight: 700;
    color: var(--brand-dark);
}

@media (max-width: 900px) {
    .leto-for-whom-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .leto-for-whom-col-title {
        min-height: 0;
    }

    .leto-for-whom-col--result .leto-result-panel {
        margin-top: 0;
    }

    .leto-founder-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .leto-founder-photo {
        width: 200px;
        height: 200px;
    }

    .leto-founder-points {
        grid-template-columns: 1fr;
    }
}

.leto-method-intro {
    max-width: 52em;
    margin-bottom: 28px;
}

.leto-pillars-kicker {
    margin-bottom: 16px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-dark);
}

.leto-pillar-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.leto-pillar-card h3 {
    margin-bottom: 10px;
}

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

.leto-format-grid--top {
    margin-bottom: 16px;
}

.leto-format-grid--facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.leto-format-note {
    margin-bottom: 20px;
    max-width: 52em;
}

.leto-cta-price {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--deep);
    margin: 8px 0 12px;
    line-height: 1.2;
}

.leto-cta-price-note {
    display: block;
    margin-top: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-soft);
}

.leto-schedule {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.leto-format-grid--modules {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 28px;
}

.leto-schedule-card .leto-format-value {
    margin-bottom: 12px;
}

.leto-format-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-dark);
    font-weight: 700;
    margin-bottom: 6px;
}

.leto-format-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--deep);
    margin-bottom: 8px;
}

.leto-cta {
    padding-bottom: 90px;
}

.leto-cta-panel {
    margin: 0 auto;
    text-align: center;
    border-color: var(--line);
    box-shadow: 0 12px 40px rgba(50, 100, 60, 0.08);
}

.leto-cta-panel--wide {
    width: 100%;
    max-width: none;
    text-align: left;
}

.leto-cta-panel--wide .leto-cta-actions {
    justify-content: flex-start;
}

.leto-cta-cost {
    margin: 12px 0 16px;
    max-width: none;
}

.leto-cta-lead {
    margin-bottom: 20px;
    max-width: none;
}

.leto-cta-subtitle {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--deep);
}

.leto-cta-list {
    margin-bottom: 18px;
    max-width: none;
}

.leto-cta-note {
    margin-bottom: 20px;
    max-width: none;
}

.leto-signup-form {
    margin-top: 8px;
    margin-bottom: 16px;
}

.leto-cta-panel--wide .leto-signup-form {
    max-width: none;
}

/* Форма на белом фоне — тёмный текст (основной styles.css заточен под тёмный cta-band) */
.leto-signup-form .form-field > span {
    color: var(--deep);
}

.leto-signup-form .form-field input,
.leto-signup-form .form-field textarea {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
}

.leto-signup-form .form-field input::placeholder,
.leto-signup-form .form-field textarea::placeholder {
    color: var(--ink-soft);
    opacity: 0.85;
}

.leto-signup-form .form-field input:focus,
.leto-signup-form .form-field textarea:focus {
    outline: 2px solid rgba(90, 158, 74, 0.45);
    border-color: var(--brand);
}

.leto-contact-method-field {
    gap: 8px;
}

.leto-contact-method-field > span {
    font-weight: 600;
    line-height: 1.35;
}

.leto-contact-method-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-muted);
}

.leto-contact-method-box label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
    margin: 0;
    cursor: pointer;
}

.leto-signup-form .form-consent {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 0;
    line-height: 1.45;
}

.leto-signup-form .form-consent input[type="checkbox"] {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    accent-color: var(--brand);
}

.leto-cta-panel .leto-signup-form .form-consent,
.leto-cta-panel .leto-signup-form .form-consent span {
    color: var(--ink-soft) !important;
}

.leto-cta-panel .leto-signup-form .form-consent a {
    color: var(--brand-dark) !important;
}

.leto-signup-container {
    display: flex;
    flex-direction: column;
}

.leto-form-status-banner {
    margin: 0 0 20px;
    scroll-margin-top: 96px;
}

.leto-form-status-banner:empty {
    display: none;
    margin: 0;
    padding: 0;
    border: 0;
    min-height: 0;
}

.leto-form-status-banner.is-success,
.leto-form-status-banner.is-visible.is-success {
    color: #163a20 !important;
    background: #c8e6c9 !important;
    border: 1px solid #7cb88a !important;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    font-weight: 700;
    line-height: 1.5;
    padding: 22px 24px;
    text-align: center;
    border-radius: 14px;
    box-shadow: 0 10px 32px rgba(40, 80, 50, 0.12);
}

.leto-form-status-banner.is-error,
.leto-form-status-banner.is-visible.is-error {
    color: #7a2424 !important;
    background: #fde8e8 !important;
    border: 1px solid #e8b4b4 !important;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 16px;
    border-radius: 12px;
}

.leto-cta-panel .leto-signup-form .form-status.is-error {
    color: #8b2e2e !important;
    background: #fdeeee !important;
    border: 1px solid #f0c2c2 !important;
    padding: 12px 14px;
}

.leto-signup-form .cf-turnstile {
    margin: 4px 0;
}

.leto-signup-form .btn[type="submit"] {
    width: 100%;
    max-width: 100%;
}

.leto-cta-alt {
    margin-bottom: 16px;
    max-width: none;
}

.leto-cta-alt a {
    color: var(--brand-dark);
    font-weight: 600;
}

.leto-cta-panel .actions {
    justify-content: center;
}

@media (max-width: 600px) {
    .leto-cta-panel--wide .leto-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .leto-cta-panel--wide .leto-cta-actions .btn {
        text-align: center;
    }
}

.leto-page .leto-btn-primary {
    background: var(--brand);
    border-color: var(--brand);
}

.leto-page .leto-btn-primary:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.leto-footer {
    border-top: 1px solid var(--line);
}

/* На главном сайте hero с отступом; здесь первый блок — на весь экран */
.leto-page main > .leto-hero {
    padding: 0;
}

.leto-page main > .leto-hero + .leto-section {
    padding-top: 72px;
}

/* ——— Индивидуальная архитектура ——— */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.leto-architecture {
    background: linear-gradient(165deg, #e8f3e2 0%, #f6fbf3 42%, #f4f9f0 100%);
    position: relative;
    overflow: hidden;
}

.leto-architecture::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 20% 0%, rgba(122, 180, 100, 0.12), transparent 55%);
    pointer-events: none;
}

.leto-architecture .container {
    position: relative;
    z-index: 1;
}

.leto-architecture-author {
    max-width: 52em;
    margin-bottom: 20px;
}

.leto-architecture-intro {
    max-width: 52em;
    margin-bottom: 16px;
}

.leto-architecture-intro--follow {
    margin-bottom: 28px;
}

.leto-arch-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    margin-bottom: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(31, 61, 42, 0.06);
}

.leto-arch-tab {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 11px 20px;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink-soft);
    background: transparent;
    cursor: pointer;
    transition: color 0.35s ease, background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.leto-arch-tab:hover {
    color: var(--deep);
}

.leto-arch-tab.is-active {
    color: var(--deep);
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(90, 158, 74, 0.35);
    box-shadow: 0 6px 20px rgba(31, 61, 42, 0.08);
    transform: translateY(-1px);
}

.leto-arch-tab:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.leto-arch-panels {
    display: grid;
    margin-bottom: 24px;
}

.leto-arch-panel {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
}

.leto-arch-panel.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.leto-arch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.leto-glass-card {
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: var(--radius);
    padding: 22px 20px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 8px 32px rgba(26, 46, 34, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.leto-glass-card:hover {
    transform: translateY(-3px);
    border-color: rgba(90, 158, 74, 0.35);
    box-shadow: 0 14px 40px rgba(26, 46, 34, 0.1);
}

.leto-glass-card h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--deep);
    margin-bottom: 10px;
    line-height: 1.35;
    letter-spacing: 0.01em;
}

.leto-glass-card p {
    font-size: 0.93rem;
    color: var(--ink-soft);
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 1100px) {
    .leto-format-grid--facts,
    .leto-format-grid--modules {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .leto-format-grid,
    .leto-schedule {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .leto-page .main-nav {
        background: rgba(26, 46, 34, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .leto-hero {
        min-height: 92svh;
        padding-top: 100px;
    }

    .leto-hero-title-main {
        font-size: clamp(1.65rem, 7vw, 2.2rem);
    }

    .leto-hero-title-sub {
        font-size: clamp(1.35rem, 5.5vw, 1.85rem);
    }

    .leto-hero-facts-sep {
        display: none;
    }

    .leto-hero-facts {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .leto-hero-video {
        display: none;
    }

    .leto-hero {
        background: linear-gradient(160deg, #2d5a3a 0%, #4a7c52 50%, #6a9f62 100%);
    }

    .leto-hero-scroll {
        animation: none;
    }

    .leto-arch-panel,
    .leto-arch-tab,
    .leto-glass-card {
        transition: none;
    }
}
