:root {
    --bg: #06090f;
    --bg-subtle: #0c1220;
    --fg: #e8ecf4;
    --muted: #5a6a85;
    --accent: #00e68a;
    --accent-dim: rgba(0, 230, 138, 0.12);
    --card: rgba(12, 18, 32, 0.7);
    --border: rgba(90, 106, 133, 0.15);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--fg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    padding-bottom: 5rem;
}

#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}
.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,230,138,0.15), transparent 70%);
    top: -10%;
    right: -5%;
    animation: blobDrift1 18s ease-in-out infinite;
}
.blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,180,220,0.1), transparent 70%);
    bottom: -10%;
    left: -5%;
    animation: blobDrift2 22s ease-in-out infinite;
}

@keyframes blobDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 30px) scale(1.1); }
    66% { transform: translate(20px, -20px) scale(0.95); }
}
@keyframes blobDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -40px) scale(1.15); }
}

main {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
    padding: 2rem 1.5rem;
    gap: 3rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    animation: fadeSlideDown 0.8s ease-out both;
}
.logo-icon {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.logo-icon::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--accent-dim);
}
.logo-icon i {
    color: var(--accent);
    font-size: 1rem;
    position: relative;
    z-index: 1;
}
.logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--fg);
}
.logo-text span {
    color: var(--accent);
}

h1 {
    text-align: center;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
h1 .accent {
    color: var(--accent);
    position: relative;
}
h1 .accent::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0.4;
}

.subtitle {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.details-block {
    width: 100%;
    max-width: 700px;
    background: var(--card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem 1.5rem;
}
.detail-item label {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.6rem;
}
.detail-item p {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--fg);
    margin: 0;
    word-break: normal;
    overflow-wrap: anywhere;
    min-height: 48px;
}
.email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.email-link:hover {
    color: #00ff99;
}

.services-block {
    width: 100%;
    max-width: 700px;
}
.service-card {
    background: var(--card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--fg);
}
.service-card p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.certs-block {
    width: 100%;
    max-width: 700px;
}
.certs-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--fg);
}
.cert-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}
.cert-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--accent-dim);
}
.cert-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}
.cert-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 0.5rem;
}
.cert-desc {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1rem;
}
.cert-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: all 0.3s ease;
    background: transparent;
}
.cert-btn:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.marketplace-block {
    width: 100%;
    max-width: 700px;
}
.mp-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--fg);
}
.mp-stores {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}
.mp-store {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--fg);
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: center;
}
.mp-store:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-2px);
}
.mp-logo {
    width: 24px;
    height: 24px;
}
.mp-logo svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 1.5rem;
    animation: fadeSlideUp 1s ease-out 0.7s both;
}
.contacts {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}
.contacts a {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--card);
    backdrop-filter: blur(8px);
}
.contacts a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--accent-dim);
}
.icon-max {
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: -0.02em;
}
.copyright {
    font-size: 0.78rem;
    color: var(--muted);
    opacity: 0.6;
}

.divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 0 auto 1.5rem;
    opacity: 0.4;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .details-grid { grid-template-columns: 1fr; }
    .mp-stores { flex-direction: column; align-items: stretch; }
    .mp-store { justify-content: flex-start; }
}

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

.service-card p {
    text-align: justify;
}
