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

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #071019;
    color: #ffffff;
    line-height: 1.6;
}

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

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(7, 16, 25, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background: rgba(7, 16, 25, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

#progressBar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(to right, #d4af37, #f5d76e);
    z-index: 2000;
    transition: width 0.1s linear;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ffffff;
}

.logo span {
    color: #d4af37;
}

.nav-links {
    display: flex;
    align-items: center;
}

nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #dddddd;
    font-size: 14px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #d4af37;
}

nav a.active,
.nav-links a.active {
    color: #d4af37;
    font-weight: 600;
    position: relative;
}

nav a.active::after,
.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: #d4af37;
    border-radius: 2px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: 0.3s ease;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 10px;
}

.menu-toggle span:nth-child(3) {
    top: 20px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-image:
        linear-gradient(rgba(7, 16, 25, 0.58), rgba(7, 16, 25, 0.78)),
        url('images/background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    isolation: isolate;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.14), transparent 32%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06), transparent 24%),
        linear-gradient(to bottom, rgba(7, 16, 25, 0.1), rgba(7, 16, 25, 0.3));
    z-index: 1;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 85%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 85%);
    opacity: 0.28;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding-top: 40px;
}

.hero-accent {
    width: 78px;
    height: 4px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: linear-gradient(to right, #d4af37, #f5d76e);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.22);
}

.hero h1 {
    font-size: 50px;
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: -1px;
    max-width: 10.5ch;
}

.hero p {
    color: #d2d8de;
    margin-bottom: 34px;
    max-width: 700px;
    font-size: 16px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.hero .btn {
    min-width: 190px;
    justify-content: center;
}

.hero .btn+.btn {
    margin-left: 4px;
}

.hero-title,
.hero-text,
.hero-btn {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s ease forwards;
}

.hero-text {
    animation-delay: 0.2s;
}

.hero-btn-1,
.hero-btn:nth-of-type(1) {
    animation-delay: 0.4s;
}

.hero-btn-2,
.hero-btn:nth-of-type(2) {
    animation-delay: 0.55s;
}

.btn {
    display: inline-block;
    text-decoration: none;
    margin-right: 12px;
    margin-top: 18px;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #d4af37, #f5d76e);
    color: #071019;
    font-weight: 600;
    border: none;
    box-shadow: 0 10px 24px rgba(212, 175, 55, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(212, 175, 55, 0.35);
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent
    );
    transform: skewX(-25deg);
}

.btn-primary:hover::after {
    animation: shine 0.8s ease forwards;
}

.btn-primary::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.25), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    border-color: #d4af37;
    color: #d4af37;
    box-shadow: 0 10px 24px rgba(212, 175, 55, 0.15);
    transform: translateY(-4px);
}

section {
    position: relative;
    overflow: hidden;
    padding: 120px 0;
    scroll-margin-top: 90px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

section+section::marker {
    content: "";
}

section:not(.hero)::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(86%, 1180px);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(to right,
            transparent,
            rgba(212, 175, 55, 0.22),
            rgba(255, 255, 255, 0.08),
            rgba(212, 175, 55, 0.22),
            transparent);
    pointer-events: none;
}

section::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent 70%);
    top: -100px;
    left: -100px;
    pointer-events: none;
}

.section-title {
    font-size: 36px;
    margin-bottom: 40px;
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-3 .card {
    transition: transform 0.8s ease, box-shadow 0.8s ease, opacity 0.8s ease;
}

.card {
    position: relative;
    background: linear-gradient(180deg, rgba(11, 23, 34, 0.96), rgba(8, 18, 28, 0.98));
    padding: 30px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.16), transparent 36%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.card::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -60px;
    top: -60px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.14), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.22);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.24);
}

.card:hover::before,
.card:hover::after {
    opacity: 1;
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-bottom: 16px;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.card:hover img {
    transform: scale(1.04);
    filter: brightness(1.04);
}

.card h3 {
    position: relative;
    margin-bottom: 12px;
}

.card p {
    position: relative;
    color: #bcc6cf;
    font-size: 14px;
}

.about {
    background: #08121c;
}

.about-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: #c9d2dc;
    line-height: 1.8;
    margin-bottom: 18px;
}

.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.products {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/backgroundProduct.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 750px;
}

#services {
    background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url('images/services.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    min-height: 100vh;
}

.global {
    background: #08121c;
}

.global-network {
    background:
        radial-gradient(circle at top left, rgba(212, 175, 55, 0.08), transparent 28%),
        #08121c;
}

.global img {
    width: 100%;
    border-radius: 10px;
}

.global-wrap {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
}

.global-copy p {
    max-width: 620px;
    color: #c9d2dc;
    line-height: 1.8;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #d4af37;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.8px;
}

.section-kicker::before {
    content: "";
    width: 28px;
    height: 1px;
    background: rgba(212, 175, 55, 0.8);
}

.network-points {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.network-point {
    position: relative;
    padding: 14px 16px 14px 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #e7edf3;
}

.network-point::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: radial-gradient(circle, #f5d76e, #d4af37);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.28);
}

.map-frame {
    position: relative;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(13, 25, 36, 0.96), rgba(8, 18, 28, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.24);
}

.map-frame::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(circle at top center, rgba(212, 175, 55, 0.14), transparent 38%);
    pointer-events: none;
}

.map-frame img {
    width: 100%;
    display: block;
    border-radius: 16px;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}


.contact-box {
    background: #0b1722;
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(212, 175, 55, 0.7);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form .btn {
    align-self: flex-start;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.9);
    backdrop-filter: blur(10px);
    color: #071019;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

#backToTop:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaaaaa;
    font-size: 14px;
}

#form-status {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 500;
}

#form-status.success {
    color: #7CFC98;
}

#form-status.error {
    color: #ff7b7b;
}

.contact-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.popup {
    position: fixed;
    inset: 0;
    background: rgba(3, 10, 18, 0.58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 3000;
}

.popup.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.popup-box {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: linear-gradient(180deg, rgba(14, 27, 39, 0.96), rgba(7, 16, 25, 0.98));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 22px;
    padding: 36px 30px 28px;
    text-align: center;
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: hidden;
    transform: translateY(18px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.popup.active .popup-box {
    transform: translateY(0) scale(1);
}

.popup-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18), transparent 70%);
    top: -90px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.popup-icon {
    position: relative;
    width: 84px;
    height: 84px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkmark {
    width: 84px;
    height: 84px;
    display: block;
}

.checkmark-circle {
    stroke: #d4af37;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
}

.checkmark-check {
    stroke: #d4af37;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
}

.popup.active .checkmark-circle {
    animation: strokeCircle 0.55s ease forwards;
}

.popup.active .checkmark-check {
    animation: strokeCheck 0.35s ease 0.45s forwards;
}

.popup-box h3 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #ffffff;
}

.popup-box p {
    color: #c9d2dc;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.popup-btn {
    background: linear-gradient(135deg, #d4af37, #f5d76e);
    color: #071019;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.24);
}

.submit-btn {
    position: relative;
    min-width: 170px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(7, 16, 25, 0.25);
    border-top-color: #071019;
    border-radius: 50%;
    display: none;
    animation: spin 0.7s linear infinite;
}

.submit-btn.loading .btn-spinner {
    display: inline-block;
}

.submit-btn.loading .btn-text {
    opacity: 0.92;
}

.contact-form button[type="submit"]:disabled {
    opacity: 0.86;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@keyframes shine {
    to {
        left: 130%;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes strokeCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes strokeCheck {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes heroZoom {
    from {
        background-size: 100%;
    }

    to {
        background-size: 110%;
    }
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .hero h1 {
        font-size: 42px;
    }

    .global-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav {
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        min-height: 70px;
        position: relative;
    }

    .logo {
        font-size: 18px;
        font-weight: 700;
        white-space: nowrap;
        flex: 1;
    }

    .menu-toggle {
        display: block;
        flex-shrink: 0;
        margin-left: 12px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: #071019;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 18px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin-left: 0;
        width: 100%;
        font-size: 16px;
    }

    .hero {
        min-height: 100vh;
        height: auto;
        padding: 120px 0 80px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        max-width: 100%;
        font-size: 38px;
    }


    .hero p {
        font-size: 15px;
        max-width: 100%;
    }

    .hero-accent {
        margin-bottom: 18px;
    }

    .section-kicker {
        font-size: 12px;
        letter-spacing: 1.4px;
    }

    .network-point {
        padding: 13px 14px 13px 40px;
    }

    .map-frame {
        padding: 12px;
        border-radius: 18px;
    }


    .section-title {
        font-size: 28px;
        margin-bottom: 25px;
    }

    section {
        padding: 80px 0;
    }

    .btn {
        margin-bottom: 12px;
    }

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

    .contact-box {
        padding: 25px;
    }

    .global-wrap {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .global-wrap h2 {
        font-size: 34px;
        line-height: 1.15;
        margin-bottom: 16px;
    }

    .global-wrap p {
        font-size: 16px;
        line-height: 1.7;
        max-width: 100%;
        margin-bottom: 18px;
    }

    .global-wrap ul {
        padding-left: 20px;
        margin-top: 12px;
    }

    .global-wrap li {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 8px;
    }

    .global-wrap img {
        display: block;
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
    }

    #services {
        min-height: 100vh;
        height: auto;
    }

    #backToTop {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .logo {
        font-size: 16px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero-grid {
        background-size: 52px 52px;
    }

    .map-frame img {
        border-radius: 12px;
    }


    .hero p {
        font-size: 14px;
    }

    .btn {
        display: block;
        width: 100%;
        text-align: center;
        margin-right: 0;
    }

    .card {
        padding: 20px;
    }

    .card img {
        height: 180px;
    }

    .section-title {
        font-size: 24px;
    }

    section {
        padding: 75px 0;
    }

    #backToTop {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .popup-box {
        padding: 28px 20px 22px;
        border-radius: 16px;
    }

    .popup-box h3 {
        font-size: 22px;
    }

    .popup-box p {
        font-size: 14px;
    }

    .popup-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}