* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: monospace, Times, serif;
}

html {
    scroll-behavior: smooth;
    background-color: #000000;
    scroll-padding-top: 70px;
}

body {
    background-color: #000000;
    color: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-top: 60px;
}

p,
label,
input,
button,
.stat-label,
.nav-item {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid #161616;
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    line-height: 0;
}

.nav-logo img {
    display: block;
    height: 46px;
    width: auto;
    max-width: min(42vw, 220px);
    object-fit: contain;
}

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

.nav-item {
    color: #aaaaaa;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: #2ecc71;
}

.nav-btn-apply {
    background-color: #2ecc71;
    color: #000000;
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: bold;
}

.nav-btn-apply:hover {
    background-color: #27ae60;
    color: #000000;
}

.hero {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: calc(100vh - 60px);
}

.hero-top {
    position: relative;
    width: 100%;
    min-height: 60vh;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.9) 100%),
        url('images/cascadia.png') no-repeat center center;
    background-size: cover;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
    display: none;
}

.hero-headlines {
    margin-top: auto;
    padding-bottom: 20px;
}

.subtitle-green {
    color: #2ecc71;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 10px;
}

.main-title {
    font-size: 3.5rem;
    line-height: 0.95;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 1px;
}

.divider-line {
    width: 100%;
    height: 2px;
    background-color: #2ecc71;
    margin: 15px 0;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-number-big {
    font-size: 3.2rem;
    color: #2ecc71;
    font-weight: 400;
    line-height: 1;
}

.stat-label-box {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
    color: #ffffff;
}

.form-section {
    background-color: #0b0b0b;
    padding: 40px 20px;
}

.section-tag {
    color: #2ecc71;
    font-size: 0.7rem;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.form-section h2 {
    font-size: 2.2rem;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.form-instruction {
    color: #8c8c8c;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #8c8c8c;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    background-color: #161616;
    border: 1px solid #333333;
    padding: 16px;
    color: #ffffff;
    font-size: 1rem;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2ecc71;
}

.btn-submit {
    width: 100%;
    background-color: #222222;
    border: 1px solid #333333;
    color: #ffffff;
    padding: 18px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #2ecc71;
    color: #000000;
    border-color: #2ecc71;
}

.hidden-field {
    display: none !important;
}

.about-section {
    background-color: #000000;
    padding: 60px 20px;
    border-top: 1px solid #161616;
}

.about-section h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 20px;
}

.about-text {
    color: #aaaaaa;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.spec-list {
    display: flex;
    flex-direction: column;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #222222;
}

.spec-value {
    font-size: 2.2rem;
    color: #2ecc71;
    font-weight: 400;
}

.spec-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: right;
    color: #ffffff;
    max-width: 180px;
    line-height: 1.3;
}

.contact-section {
    background-color: #0b0b0b;
    padding: 60px 20px;
    border-top: 1px solid #161616;
}

.contact-section h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 30px;
}

.contact-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #000000;
    border: 1px solid #222222;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-decoration: none;
    color: #ffffff
}

.contact-info-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    font-size: 0.65rem;
    color: #8c8c8c;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-value {
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.contact-arrow {
    color: #2ecc71;
    font-size: 1.2rem;
}

footer {
    background-color: #000000;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #161616;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 15px;
}

.footer-logo img {
    display: block;
    width: auto;
    height: 58px;
    max-width: min(75vw, 280px);
    object-fit: contain;
}

.footer-copy {
    font-size: 0.65rem;
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.5;
    text-align: center;
}

@media (min-width: 768px) {

    .nav-btn-apply {
        display: none;
    }

    body {
        padding-top: 60px;
    }

    .hero {
        flex-direction: row;
        min-height: calc(100vh - 60px);
    }

    .hero-top,
    .form-section {
        flex: 1;
        min-height: auto;
    }

    .hero-top {
        padding: 50px;
    }

    .form-section {
        padding: 80px 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .about-section,
    .contact-section {
        padding: 80px 10% 80px 10%;
    }
}

.scroll-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1100;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #2ecc71;
    border-radius: 50%;
    background: #2ecc71;
    color: #000000;
    font-family: Arial, sans-serif;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease,
        visibility 0.25s ease, background-color 0.25s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #27ae60;
}

.scroll-to-top:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .scroll-to-top {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
    }
}


@media screen and (max-width: 358px) {
    nav a[href="#about"] {
        display: none !important;
    }
}


.phone-input-wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: #171717;
    border: 1px solid #444;
    color: white;
    border-right: none;
}

.phone-input-wrapper input {
    flex: 1;
    min-width: 0;
}

.success-popup {
    position: fixed;
    inset: 0;
    margin: auto;

    width: min(90vw, 440px);
    max-width: 440px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 0;
    border: none;
    border-radius: 18px;
    background: #ffffff;
    color: #222;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.success-popup::backdrop {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
}

.success-popup[open] {
    animation: popup-appear 0.25s ease-out;
}

.success-popup-content {
    position: relative;
    padding: 42px 30px 32px;
    text-align: center;
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: transparent;
    color: #777;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}

.popup-close:hover {
    color: #222;
}

.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #e7f7ed;
    color: #159447;
}

.success-popup h2 {
    margin: 0 0 14px;
    font-size: 25px;
    font-weight: 700;
    color: #183c2a;
}

.success-popup p {
    margin: 0 0 26px;
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

.popup-ok-button {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    background: #168b45;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.popup-ok-button:hover {
    background: #106d35;
    transform: translateY(-1px);
}

@keyframes popup-appear {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .success-popup-content {
        padding: 38px 22px 24px;
    }

    .success-popup h2 {
        font-size: 22px;
    }

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

    nav a[href="#contact"] {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .success-popup[open] {
        animation: none;
    }

    .popup-ok-button {
        transition: none;
    }
}

body.popup-open {
    overflow: hidden;
    touch-action: none;
}