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

:root {
    --bg: #f8f9fa;
    --bg-dark: #f0f2f5;
    --bg-card: #ffffff;
    --logo-color: #3859a1;
    --logo-light: rgba(56, 89, 161, 0.08);
    --hover-color: #21345e;
    --text: #111827;
    --text-muted: #4b5563;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --max-width: 1140px;
    --font: "Inter", system-ui, -apple-system, sans-serif;
    --radius: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--logo-color);
}

img {
    max-width: 100%;
    display: block;
}

/* --- Animations --- */

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* stagger children */
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.32s; }
.fade-up:nth-child(6) { transition-delay: 0.4s; }

/* --- Container --- */

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

/* --- Navbar (glassmorphism) --- */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.3s, background 0.3s;
}

.navbar.scrolled {
    box-shadow: 0 1px 8px rgba(0,0,0,0.08);
    background: rgba(248, 249, 250, 0.95);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

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

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.navbar-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 4px 0;
}

.navbar-nav a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--logo-color);
    transition: width 0.25s ease;
}

.navbar-nav a:hover::after,
.navbar-nav a.active::after {
    width: 100%;
}

.navbar-nav a:hover {
    color: var(--text);
    text-decoration: none;
}

.navbar-nav a.active {
    color: var(--logo-color);
}

.lang-switch {
    display: flex;
    gap: 2px;
    background: var(--bg-dark);
    border-radius: 6px;
    padding: 2px;
}

.lang-btn {
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--text-light);
    transition: all 0.2s;
}

.lang-btn:hover {
    color: var(--text);
}

.lang-btn.active {
    background: white;
    color: var(--logo-color);
    box-shadow: var(--shadow-sm);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.navbar-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    border-radius: 1px;
    transition: 0.3s;
}

/* --- Hero --- */

.hero {
    padding: 160px 0 120px;
    background: var(--bg-dark);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(56,89,161,0.08), transparent),
        linear-gradient(45deg, rgba(56,89,161,0.06), transparent 40%),
        linear-gradient(225deg, rgba(251,168,220,0.12), transparent 40%);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(16px, 1.5vw, 19px);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.btn {
    display: inline-block;
    background: var(--logo-color);
    color: white;
    padding: 14px 36px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(56,89,161,0.25);
}

.btn:hover {
    background: var(--hover-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(56,89,161,0.35);
}

.btn:active {
    transform: translateY(0);
}

/* --- 3D Cube --- */

.cube-wrapper {
    width: 15vw;
    height: calc(15vw * 1.65);
    min-width: 140px;
    min-height: 231px;
    perspective: 600px;
}

.cube {
    position: relative;
    top: 7.5%;
    left: 12.5%;
    width: 15vw;
    height: 15vw;
    min-width: 140px;
    min-height: 140px;
    transform-style: preserve-3d;
    transform: rotateX(-36deg) rotateY(45deg) rotateZ(0deg);
}

.cube-side {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cube-side:nth-child(1) {
    border: 0;
    border-bottom: dotted 5px var(--logo-color);
    border-left: dotted 5px var(--logo-color);
    border-top: solid 5px var(--logo-color);
    transform: rotateY(180deg);
}

.cube-side:nth-child(2) {
    border: solid 5px var(--logo-color);
    transform-origin: center left;
    transform: rotateY(-90deg);
}

.cube-side:nth-child(3) {
    border-top: solid 5px var(--logo-color);
    border-bottom: solid 5px var(--logo-color);
    transform: translateZ(calc(15vw - 0.1vw));
}

.cube-side:nth-child(4) {
    border: 0;
    border-bottom: dotted 5px var(--logo-color);
    border-left: solid 5px var(--logo-color);
    border-top: solid 5px var(--logo-color);
    transform-origin: center right;
    transform: rotateY(90deg);
}

.cube-side:nth-child(5) {
    border: 0;
    transform-origin: top center;
    transform: rotateX(90deg);
}

.cube-side:nth-child(6) {
    border: 0;
    transform-origin: bottom center;
    transform: rotateX(-90deg);
}

/* --- Sections --- */

.section {
    padding: 96px 0;
}

.section-grey {
    background: var(--bg-dark);
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 56px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Offer Grid --- */

.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.offer-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    min-height: 220px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--logo-color);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.offer-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--logo-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.offer-card-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--logo-color);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.offer-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.offer-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* --- Tech (badges) --- */

.tech-section-text {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tech-badge:hover {
    border-color: var(--logo-color);
    background: var(--logo-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.tech-badge svg {
    width: 16px;
    height: 16px;
    stroke: var(--logo-color);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- Contact Page --- */

.contact-section {
    padding: 140px 0 80px;
    min-height: calc(100vh - 200px);
    background: var(--bg-dark);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(56,89,161,0.06), transparent),
        linear-gradient(45deg, rgba(56,89,161,0.04), transparent 40%),
        linear-gradient(225deg, rgba(251,168,220,0.08), transparent 40%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 36px;
    border: 1px solid var(--border);
}

.contact-grid h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.contact-table {
    width: 100%;
}

.contact-table td {
    padding: 0 10px 14px 0;
    vertical-align: top;
    font-size: 15px;
}

.contact-table .icon-cell {
    width: 32px;
    padding-top: 2px;
}

.contact-table .icon-cell svg {
    width: 18px;
    height: 18px;
    stroke: var(--logo-color);
    fill: none;
    stroke-width: 1.5;
}

.contact-table a {
    color: var(--logo-color);
    font-weight: 500;
}

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

.contact-spacer {
    height: 32px;
}

/* --- Footer --- */

.footer {
    background: var(--text);
    color: #d1d5db;
    padding: 56px 0;
    font-size: 14px;
}

.footer a {
    color: #d1d5db;
    transition: color 0.2s;
}

.footer a:hover {
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}

.footer-brand p {
    margin-top: 16px;
    line-height: 1.6;
    color: #9ca3af;
    max-width: 300px;
}

.footer-brand img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1) opacity(0.85);
}

.footer-col h4 {
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #6b7280;
    font-size: 13px;
}

/* --- Mobile --- */

@media (max-width: 991px) {
    .offer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .navbar-toggle {
        display: block;
    }

    .navbar-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(248, 249, 250, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .navbar-nav.open {
        display: flex;
    }

    .hero {
        padding: 130px 0 80px;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        display: none;
    }

    .section {
        padding: 64px 0;
    }

    .offer-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }
}
