﻿:root {
    --bg: #f6f8f4;
    --paper: rgba(255, 255, 255, 0.9);
    --text-main: #161c16;
    --text-soft: #4d574d;
    --stroke: rgba(31, 46, 31, 0.1);
    --brand: #e66a2f;
    --brand-deep: #b24a1d;
    --accent: #1f6b5b;
    --glow: rgba(230, 106, 47, 0.22);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Sora", "Segoe UI", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 198, 145, 0.38) 0%, rgba(255, 198, 145, 0) 45%),
        radial-gradient(circle at 85% 5%, rgba(117, 199, 178, 0.34) 0%, rgba(117, 199, 178, 0) 42%),
        linear-gradient(165deg, #f6f8f4 0%, #ecefe7 100%);
    min-height: 100vh;
    padding: 32px 20px;
    line-height: 1.6;
    overflow-x: hidden;
}

.bg-shape {
    position: fixed;
    z-index: -1;
    pointer-events: none;
    filter: blur(34px);
}

.bg-shape-left {
    width: 220px;
    height: 220px;
    left: -68px;
    top: 160px;
    background: rgba(230, 106, 47, 0.32);
    border-radius: 42% 58% 65% 35% / 43% 42% 58% 57%;
    animation: drift-left 16s ease-in-out infinite alternate;
}

.bg-shape-right {
    width: 280px;
    height: 280px;
    right: -88px;
    top: 58%;
    background: rgba(31, 107, 91, 0.28);
    border-radius: 56% 44% 31% 69% / 52% 58% 42% 48%;
    animation: drift-right 18s ease-in-out infinite alternate;
}

.site {
    width: min(1050px, 100%);
    margin: 0 auto;
    background: var(--paper);
    border: 1px solid var(--stroke);
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(22, 28, 22, 0.11);
    padding: 26px;
    animation: fade-in-up 0.8s ease;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}

.brand-block,
.top-link {
    opacity: 0;
    animation: fade-in-down 0.7s ease forwards;
}

.brand-block {
    animation-delay: 0.15s;
}

.top-actions {
    opacity: 0;
    animation: fade-in-down 0.7s ease forwards;
    animation-delay: 0.28s;
}

.top-link,
.lang-toggle {
    animation-delay: 0.28s;
}

.brand {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.brand-subtitle {
    color: var(--text-soft);
    font-size: 0.85rem;
}

.top-link {
    font-size: 0.92rem;
    text-decoration: none;
    color: var(--accent);
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: border-color 0.22s ease;
}

.top-link:hover {
    border-color: var(--accent);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-ghost {
    color: var(--brand-deep);
    border: 1px solid rgba(178, 74, 29, 0.35);
    background: rgba(255, 255, 255, 0.64);
}

.btn-ghost:hover {
    background: rgba(230, 106, 47, 0.08);
}

.lang-toggle {
    min-height: 40px;
    min-width: 58px;
    padding: 8px 12px;
}

.hero {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.9), rgba(251, 244, 238, 0.9));
    border: 1px solid rgba(31, 46, 31, 0.1);
    border-radius: 22px;
    padding: 22px;
    opacity: 0;
    animation: fade-in-up 0.75s ease forwards;
    animation-delay: 0.42s;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(31, 107, 91, 0.1);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.55rem, 3vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: 10px;
}

.lead {
    color: var(--text-soft);
    max-width: 60ch;
}

.hero-meta {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-meta span {
    border: 1px solid rgba(31, 46, 31, 0.15);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.84rem;
    color: #2e3730;
    background: #f9faf6;
    opacity: 0;
    animation: fade-in-up 0.5s ease forwards;
}

.hero-meta span:nth-child(1) {
    animation-delay: 0.62s;
}

.hero-meta span:nth-child(2) {
    animation-delay: 0.72s;
}

.certificate-grid {
    margin-top: 18px;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cert-card {
    background: #ffffff;
    border: 1px solid rgba(31, 46, 31, 0.1);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(22, 28, 22, 0.09);
}

.cert-badge {
    display: inline-block;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    background: rgba(31, 107, 91, 0.1);
    border-radius: 999px;
    padding: 4px 8px;
    margin-bottom: 8px;
}

.cert-head h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.1rem;
    line-height: 1.3;
}

.cert-desc {
    font-size: 0.92rem;
    color: var(--text-soft);
    flex: 1;
}

.cert-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #f18b4a 0%, var(--brand) 100%);
    box-shadow: 0 12px 24px var(--glow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cert-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px var(--glow);
}

.footer {
    margin-top: 22px;
    padding: 16px 6px 2px;
    border-top: 1px dashed rgba(31, 46, 31, 0.18);
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.reveal {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
    transition: opacity 700ms cubic-bezier(0.18, 0.89, 0.32, 1.02), transform 700ms cubic-bezier(0.18, 0.89, 0.32, 1.02);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

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

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-down {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drift-left {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    }
    100% {
        transform: translate3d(44px, -24px, 0) rotate(8deg) scale(1.08);
    }
}

@keyframes drift-right {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    }
    100% {
        transform: translate3d(-52px, 20px, 0) rotate(-9deg) scale(1.09);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 980px) {
    .certificate-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body {
        padding: 18px 12px;
    }

    .site {
        border-radius: 22px;
        padding: 16px;
    }

    .topbar,
    .footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}
