:root {
    --nexus-blue: #1e88e5;
    --bg-light: #f5f7fb;
    --bg-alt: #ffffff;
    --text-main: #111111;
    --text-muted: #555555;
    --border-soft: #dde2ee;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.08);
    --radius-lg: 18px;
    --radius-xl: 26px;
    --transition-fast: 0.2s ease-out;
    --max-width: 1100px;
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--text-main);
    background: radial-gradient(circle at top left, #e6f0ff, #f8fafc);
}

/* Layout */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.4rem;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
}

.logo-block {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 0.6rem;
}

.logo-img {
    height: 46px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.main-nav {
    display: flex;
    gap: 1.4rem;
    font-size: 0.9rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    padding-bottom: 0.15rem;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--nexus-blue);
    transition: width var(--transition-fast);
}

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

.main-nav a:hover::after {
    width: 100%;
}

/* Hero */

.hero {
    padding: 3.5rem 0 3.2rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
    gap: 2.2rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.1rem;
    margin: 0 0 1rem;
}

.hero-text p {
    margin: 0 0 1.2rem;
    color: var(--text-muted);
    max-width: 32rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.hero-contact-short {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero-card {
    background: linear-gradient(135deg, #ffffff, #f0f5ff);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    padding: 1.8rem 1.6rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.hero-card h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.hero-card p {
    margin-top: 0;
    margin-bottom: 0.9rem;
    color: var(--text-muted);
}

.hero-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-card li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.hero-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--nexus-blue);
}

/* Buttons */

.btn {
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
    font-weight: 500;
}

.btn.primary {
    background: var(--nexus-blue);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(30, 136, 229, 0.35);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(30, 136, 229, 0.4);
}

.btn.ghost {
    background: transparent;
    color: var(--text-main);
    border-color: rgba(0, 0, 0, 0.1);
}

.btn.ghost:hover {
    background: rgba(255, 255, 255, 0.6);
}

.btn.full {
    width: 100%;
}

/* Sections */

.section {
    padding: 3rem 0;
}

.section.alt {
    background: var(--bg-light);
}

.section h2 {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}

.section-intro {
    margin-top: 0;
    margin-bottom: 1.8rem;
    color: var(--text-muted);
    max-width: 32rem;
}

/* Services cards */

.cards-grid {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.15rem;
    border: 1px solid var(--border-soft);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* About */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2rem;
    align-items: flex-start;
}

.about-box {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.3rem 1.2rem;
    border: 1px solid var(--border-soft);
}

/* Contact */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2rem;
    align-items: flex-start;
}

.contact-form {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 1.4rem 1.3rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.form-group {
    margin-bottom: 0.9rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    font-family: var(--font-main);
    font-size: 0.9rem;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--nexus-blue);
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.15);
}

.alert {
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 0.9rem;
}

.alert.success {
    background: #e6fbf1;
    border: 1px solid #32a852;
}

.alert.error {
    background: #ffecec;
    border: 1px solid #e23b3b;
}

.contact-info {
    font-size: 0.9rem;
}

.contact-info a {
    color: var(--nexus-blue);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer */

.site-footer {
    padding: 1.3rem 0 1.4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #ffffff;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-small {
    opacity: 0.9;
}

/* Responsive */

@media (max-width: 900px) {
    .hero-inner,
    .cards-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        padding-top: 2.4rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 0.8rem;
    }
}

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

    .main-nav {
        width: 100%;
        justify-content: flex-end;
        font-size: 0.85rem;
    }

    .site-header {
        position: static;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }
}
