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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    color: #e8e8e8;
    background: #12151c;
    line-height: 1.65;
    overflow-x: hidden;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Шапка ===== */
header {
    position: relative;
    background: linear-gradient(135deg, #0f2d13 0%, #1b5e20 50%, #2e7d32 100%);
    color: #fff;
    padding: 90px 0 110px;
    text-align: center;
    overflow: hidden;
}

.header-inner {
    position: relative;
    z-index: 2;
    animation: fadeDown 0.9s ease both;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 14px;
}

.logo-cube {
    width: 48px;
    height: 48px;
    background: linear-gradient(180deg, #7cb342 0 50%, #5d4037 50% 100%);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    animation: cubeFloat 3s ease-in-out infinite;
}

header h1 {
    font-size: 46px;
    letter-spacing: 1px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.tagline {
    font-size: 19px;
    opacity: 0.92;
    margin-bottom: 28px;
}

/* Плавающие «блоки» на фоне шапки */
.header-blocks .block {
    position: absolute;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    animation: floatBlock 8s ease-in-out infinite;
}

.b1 { top: 15%; left: 8%; animation-delay: 0s; }
.b2 { top: 60%; left: 15%; animation-delay: 1.5s; width: 22px; height: 22px; }
.b3 { top: 25%; right: 10%; animation-delay: 0.8s; }
.b4 { top: 70%; right: 18%; animation-delay: 2.2s; width: 26px; height: 26px; }
.b5 { top: 45%; left: 48%; animation-delay: 3s; width: 18px; height: 18px; }

/* ===== Кнопки ===== */
.btn {
    display: inline-block;
    background: rgba(67, 160, 71, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 13px 32px;
    border-radius: 980px; /* «пилюля» как в iOS */
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(67, 160, 71, 0.4);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.3s ease;
}

.btn:hover {
    background: rgba(56, 142, 60, 0.95);
    transform: scale(1.06);
    box-shadow: 0 10px 26px rgba(67, 160, 71, 0.55);
}

.btn:active {
    transform: scale(0.94);
    transition-duration: 0.1s;
}

/* ===== Секции ===== */
main {
    padding: 40px 0 50px;
}

section {
    background: rgba(26, 31, 43, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 30px 32px;
    margin-bottom: 24px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.3s ease,
                box-shadow 0.6s ease;
}

section:hover {
    border-color: rgba(67, 160, 71, 0.6);
    transform: scale(1.01);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

section h2 {
    color: #7cb342;
    margin-bottom: 16px;
    font-size: 24px;
}

section p {
    margin-bottom: 12px;
    color: #c9d1d9;
}

section strong {
    color: #fff;
}

.note {
    font-size: 14px;
    color: #8b93a3;
    background: #141924;
    border-left: 3px solid #43a047;
    padding: 10px 14px;
    border-radius: 0 8px 8px 0;
}

/* ===== Списки ===== */
.feature-list,
.contact-list {
    margin: 0 0 14px 24px;
}

.feature-list li,
.contact-list li {
    margin-bottom: 8px;
    color: #c9d1d9;
}

/* ===== Карточки возможностей ===== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.card {
    background: #141924;
    border: 1px solid #262d3d;
    border-radius: 18px;
    padding: 22px;
    text-align: center;
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.3s ease,
                box-shadow 0.55s ease;
    will-change: transform;
}

.card:hover {
    transform: translateY(-8px) scale(1.04);
    border-color: #7cb342;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.card:active {
    transform: scale(0.96);
    transition-duration: 0.1s;
}

.card-icon {
    font-size: 34px;
    margin-bottom: 12px;
    display: inline-block;
    transition: transform 0.6s cubic-bezier(0.34, 1.8, 0.64, 1);
}

.card:hover .card-icon {
    transform: scale(1.25) rotate(-8deg);
}

.card h3 {
    color: #fff;
    font-size: 17px;
    margin-bottom: 8px;
}

.card p {
    font-size: 14px;
    color: #8b93a3;
    margin-bottom: 0;
}

/* ===== Шаги ===== */
.steps {
    list-style: none;
}

.steps li {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #141924;
    border: 1px solid #262d3d;
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 10px;
    color: #c9d1d9;
    transition: border-color 0.3s ease,
                transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.steps li:hover {
    border-color: #43a047;
    transform: translateX(10px) scale(1.01);
}

.steps li:active {
    transform: translateX(10px) scale(0.98);
    transition-duration: 0.1s;
}

.step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #43a047;
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Подвал ===== */
footer {
    background: #0d1017;
    border-top: 1px solid #262d3d;
    color: #8b93a3;
    padding: 24px 0;
    text-align: center;
    font-size: 14px;
}

footer a {
    color: #7cb342;
    text-decoration: none;
    transition: color 0.25s ease;
}

footer a:hover {
    color: #aed581;
}

/* ===== Анимации ===== */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cubeFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(4deg); }
}

@keyframes floatBlock {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-22px) rotate(10deg); }
}

/* Появление секций при прокрутке — пружинка как в iOS */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition: opacity 0.7s ease,
                transform 0.9s cubic-bezier(0.22, 1.2, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Каскадная анимация карточек и шагов внутри появившейся секции */
.reveal .card,
.reveal .steps li {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.5s ease,
                transform 0.8s cubic-bezier(0.22, 1.2, 0.36, 1);
}

.reveal.visible .card,
.reveal.visible .steps li {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal.visible .card:nth-child(1),
.reveal.visible .steps li:nth-child(1) { transition-delay: 0.05s; }
.reveal.visible .card:nth-child(2),
.reveal.visible .steps li:nth-child(2) { transition-delay: 0.13s; }
.reveal.visible .card:nth-child(3),
.reveal.visible .steps li:nth-child(3) { transition-delay: 0.21s; }
.reveal.visible .card:nth-child(4),
.reveal.visible .steps li:nth-child(4) { transition-delay: 0.29s; }
.reveal.visible .card:nth-child(5) { transition-delay: 0.37s; }
.reveal.visible .card:nth-child(6) { transition-delay: 0.45s; }

/* Возврат ховер-эффектов поверх каскада (после появления) */
.reveal.visible .card:hover {
    transform: translateY(-8px) scale(1.04);
    transition-delay: 0s;
}

.reveal.visible .steps li:hover {
    transform: translateX(10px) scale(1.01);
    transition-delay: 0s;
}

/* ===== Адаптив ===== */
@media (max-width: 600px) {
    header {
        padding: 60px 0 80px;
    }

    header h1 {
        font-size: 32px;
    }

    section {
        padding: 22px 20px;
    }
}
