/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arimo', sans-serif;
    color: #000000;
    background-color: #FFFFFF;
    line-height: 1.5;
    padding-top: 25vh;
    min-height: 100vh;
}

@media (max-height: 240px) {
    body {
        padding-top: 60px;
    }
    .header {
        height: 60px;
        min-height: 60px;
        max-height: 60px;
    }
}

@media (min-height: 480px) {
    .header {
        max-height: 120px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 25vh;
    }
    
    @media (max-height: 400px) {
        body {
            padding-top: 80px;
        }
        .header {
            height: 80px;
            min-height: 80px;
            max-height: 80px;
        }
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 25vh;
    min-height: 60px;
    max-height: 120px;
    background-color: #FFFFFF;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: visible;
}

.header-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
    flex-wrap: nowrap;
}

.logo {
    height: 90% !important;
    width: auto !important;
    flex-shrink: 0 !important;
    flex-grow: 0;
    flex-basis: auto;
    object-fit: contain;
    order: 1;
    min-width: auto;
    max-width: none;
}

.burger-menu {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 90%;
    width: auto;
    aspect-ratio: 1 / 1;
    max-width: 108px;
    max-height: 108px;
    min-width: 54px;
    min-height: 54px;
    line-height: 0;
    box-sizing: border-box;
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible;
}

.burger-menu svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    flex-shrink: 0;
    visibility: visible !important;
    opacity: 1 !important;
    stroke: #000000;
    fill: none;
}

/* Hero Section */
.hero {
    width: 100%;
    background-color: #FFFFFF;
}

.hero-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 96px 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hero-title {
    font-family: 'Arimo', sans-serif;
    font-weight: 700;
    font-size: 80px;
    line-height: 1em;
    letter-spacing: -0.02em;
    color: #000000;
    width: 1227px;
    max-width: 100%;
}

.hero-subtitle {
    font-family: 'Arimo', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3333333333333333em;
    letter-spacing: -0.01em;
    color: #000000;
    max-width: 100%;
}

/* Hero Image Section */
.hero-image {
    width: 100%;
}

.hero-image-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 32px;
    height: 640px;
    background-image: url('../img/hero-background-1699cd.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Financing Options */
.financing-options {
    width: 100%;
    background-color: #FFFFFF;
}

.financing-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 32px 0;
}

.cards-wrapper {
    display: flex;
    gap: 8px;
    padding: 0 32px;
}

.card {
    flex: 1;
    padding: 32px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-size 0.3s ease;
    overflow: hidden;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background-size: 110%;
}

.card-1 {
    background-image: url('../img/card-1-background.png');
}

.card-2 {
    background-image: url('../img/card-2-background.png');
}

.card-3 {
    background-image: url('../img/card-3-background.png');
}

.card-title {
    font-family: 'Arimo', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3333333333333333em;
    letter-spacing: -0.01em;
    color: #FFFFFF;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.card:hover .card-title {
    transform: translateY(-4px);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: translateY(-4px) scale(1.1);
}

.card-icon img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.card-badge {
    font-family: 'Arimo', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3333333333333333em;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.card:hover .card-badge {
    transform: translateY(-4px);
    opacity: 0.6;
}

/* Mission Section */
.mission {
    width: 100%;
    background-color: #FFFFFF;
}

.mission-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 96px 32px;
    display: flex;
    gap: 32px;
}

.mission-title {
    font-family: 'Arimo', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.25em;
    letter-spacing: -0.02em;
    color: #000000;
    flex: 1;
}

.mission-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mission-text {
    font-family: 'Arimo', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3333333333333333em;
    letter-spacing: -0.01em;
    color: rgba(40, 23, 27, 0.4);
}

.mission-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background-color: rgba(40, 23, 27, 0.12);
    border: none;
    border-radius: 400px;
    cursor: pointer;
    width: fit-content;
    font-family: 'Arimo', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.4em;
    color: #000000;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.mission-button:hover {
    background-color: rgba(40, 23, 27, 0.2);
}

.mission-button img {
    width: 20px;
    height: 20px;
}

/* Footer */
.footer {
    width: 100%;
    background-color: #FFFFFF;
}

.footer-container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer-logo {
    width: 35px;
    height: 56px;
}

.footer-logo img {
    width: 100%;
    height: 100%;
}

.footer-content {
    display: flex;
    align-items: flex-end;
    gap: 32px;
}

.footer-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-item {
    font-family: 'Arimo', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5em;
    letter-spacing: 0.04em;
    color: #000000;
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.2s ease;
    display: inline-block;
}

.contact-item:hover {
    opacity: 0.7;
}

.footer-info {
    font-family: 'Arimo', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5em;
    letter-spacing: 0.04em;
    color: #000000;
    white-space: pre-line;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-link {
    font-family: 'Arimo', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5em;
    letter-spacing: 0.04em;
    color: rgba(40, 23, 27, 0.4);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #000000;
}

/* Responsive Design */
@media (max-width: 1280px) {
    .header-container,
    .hero-container,
    .hero-image-container,
    .financing-container,
    .mission-container,
    .footer-container {
        max-width: 1280px;
    }

    .header-container {
        padding: 16px 32px;
        gap: 24px;
    }

    .logo {
        height: 90% !important;
        width: auto !important;
        flex-shrink: 0 !important;
        min-width: auto;
        max-width: none;
    }

    .hero-title {
        width: 800px;
        max-width: 100%;
    }

    .hero-image-container {
        padding: 64px 32px;
    }
}

@media (max-width: 1200px) {
    .header-container {
        gap: 16px;
    }

    .logo {
        height: 90% !important;
        width: auto !important;
        flex-shrink: 0 !important;
        min-width: auto;
        max-width: none;
    }

    .burger-menu {
        width: auto;
        height: 90%;
        max-width: 108px;
        max-height: 108px;
        min-width: 54px;
        min-height: 54px;
        position: absolute;
        right: 32px;
        top: 50%;
        transform: translateY(-50%);
    }

    .burger-menu svg {
        width: 100%;
        height: 100%;
    }

    .hero-title {
        font-size: 60px;
        width: 100%;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .cards-wrapper {
        flex-direction: column;
    }

    .card {
        min-height: 300px;
    }

    .mission-container {
        flex-direction: column;
    }
}

@media (max-width: 1024px) {
    .header-container,
    .hero-container,
    .hero-image-container,
    .financing-container,
    .mission-container,
    .footer-container {
        max-width: 1024px;
    }

    .header-container {
        padding: 16px 24px;
        gap: 16px;
    }

    .logo {
        height: 90% !important;
        width: auto !important;
        flex-shrink: 0 !important;
        min-width: auto;
        max-width: none;
    }

    .burger-menu {
        width: auto;
        height: 90%;
        max-width: 108px;
        max-height: 108px;
        min-width: 54px;
        min-height: 54px;
        position: absolute;
        right: 24px;
        top: 50%;
        transform: translateY(-50%);
    }

    .burger-menu svg {
        width: 100%;
        height: 100%;
    }

    .hero-container {
        padding: 64px 24px;
    }

    .hero-title {
        width: 100%;
        max-width: 100%;
        font-size: 60px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-image-container {
        padding: 48px 24px;
        height: 500px;
    }

    .financing-container {
        padding: 24px 0;
    }

    .cards-wrapper {
        padding: 0 24px;
        gap: 8px;
    }

    .card {
        padding: 24px;
        min-height: 320px;
    }

    .mission-container {
        padding: 64px 24px;
        gap: 24px;
    }

    .mission-title {
        font-size: 28px;
    }

    .mission-text {
        font-size: 20px;
    }

    .footer-container {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 12px 16px;
        gap: 12px;
    }

    .logo {
        height: 90% !important;
        width: auto !important;
        flex-shrink: 0 !important;
        min-width: auto;
        max-width: none;
    }

    .burger-menu {
        width: auto;
        height: 90%;
        max-width: 108px;
        max-height: 108px;
        min-width: 43px;
        min-height: 43px;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
    }

    .burger-menu svg {
        width: 100%;
        height: 100%;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .card-title {
        font-size: 20px;
    }

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

    .mission-text {
        font-size: 18px;
    }

    .hero-container,
    .mission-container {
        padding: 48px 16px;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Burger Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(51, 51, 51, 0.4);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 629px;
    max-width: 90vw;
    height: 100vh;
    background-color: #FFFFFF;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.menu-overlay.active .menu-sidebar {
    transform: translateX(0);
}

.menu-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: none;
    z-index: 10000;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.menu-close-btn:hover {
    opacity: 0.7;
}

.menu-close-btn svg {
    width: 100%;
    height: 100%;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 96px 64px 64px;
    gap: 16px;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    text-decoration: none;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.menu-item:hover {
    opacity: 0.7;
}

.menu-item.active .menu-text {
    color: #000000;
    font-family: 'Arimo', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.25em;
    letter-spacing: -0.02em;
}

.menu-item:not(.active) .menu-text {
    color: rgba(40, 23, 27, 0.4);
    font-family: 'Arimo', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3333333333333333em;
    letter-spacing: -0.01em;
}

.menu-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.menu-item:not(.active) .menu-icon {
    opacity: 0;
}

.menu-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
}

.menu-footer-link {
    font-family: 'Arimo', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.3333333333333333em;
    letter-spacing: -0.01em;
    color: #000000;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.menu-footer-link:hover {
    opacity: 0.7;
}

.menu-footer-info {
    font-family: 'Arimo', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.3333333333333333em;
    letter-spacing: -0.01em;
    color: rgba(40, 23, 27, 0.4);
    white-space: pre-line;
}

.menu-footer-links {
    display: flex;
    gap: 16px;
}

.menu-footer-link-small {
    font-family: 'Arimo', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5em;
    letter-spacing: 0.04em;
    color: rgba(40, 23, 27, 0.4);
    text-decoration: none;
    transition: color 0.2s ease;
}

.menu-footer-link-small:hover {
    color: #000000;
}

body.menu-open,
body.form-open,
body.success-open {
    overflow: hidden;
}

/* Success Message Modal */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(51, 51, 51, 0.4);
    z-index: 10002;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.success-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 629px;
    max-width: 90vw;
    height: 100vh;
    background-color: #FFFFFF;
    z-index: 10003;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 96px 64px 64px;
    display: flex;
    flex-direction: column;
}

.success-overlay.active .success-container {
    transform: translateX(0);
}

.success-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: opacity 0.2s ease;
    z-index: 10004;
}

.success-close:hover {
    opacity: 0.7;
}

.success-close svg {
    width: 24px;
    height: 24px;
}

.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    padding: 40px 0;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon-large {
    margin-bottom: 32px;
    animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-icon-large svg {
    width: 80px;
    height: 80px;
}

.success-title-large {
    font-family: 'Arimo', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.25em;
    letter-spacing: -0.02em;
    color: #000000;
    margin: 0 0 16px 0;
}

.success-text-large {
    font-family: 'Arimo', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5em;
    color: rgba(40, 23, 27, 0.6);
    margin: 0;
    max-width: 400px;
}

/* Responsive Success Modal */
@media (max-width: 768px) {
    .success-container {
        width: 100%;
        max-width: 100%;
        padding: 64px 32px 32px;
    }

    .success-title-large {
        font-size: 24px;
    }

    .success-text-large {
        font-size: 18px;
    }

    .success-icon-large svg {
        width: 60px;
        height: 60px;
    }

    .success-close {
        top: 16px;
        right: 16px;
    }
}

/* Contact Form Modal */
.contact-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(51, 51, 51, 0.4);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-form-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-form-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 629px;
    max-width: 90vw;
    height: 100vh;
    background-color: #FFFFFF;
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 96px 64px 64px;
    display: flex;
    flex-direction: column;
}

.contact-form-overlay.active .contact-form-container {
    transform: translateX(0);
}

.contact-form-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: opacity 0.2s ease;
    z-index: 10002;
}

.contact-form-close:hover {
    opacity: 0.7;
}

.contact-form-close svg {
    width: 24px;
    height: 24px;
}

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

.contact-form-title {
    font-family: 'Arimo', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.25em;
    letter-spacing: -0.02em;
    color: #000000;
    margin: 0 0 8px 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: 'Arimo', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5em;
    color: #000000;
}

.form-input,
.form-textarea {
    font-family: 'Arimo', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5em;
    padding: 12px 16px;
    border: 1px solid rgba(40, 23, 27, 0.2);
    border-radius: 8px;
    color: #000000;
    background-color: #FFFFFF;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

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

.form-submit-btn {
    font-family: 'Arimo', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.4em;
    color: #000000;
    background-color: rgba(40, 23, 27, 0.12);
    border: none;
    border-radius: 400px;
    padding: 12px 32px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: fit-content;
    align-self: flex-start;
    margin-top: 8px;
}

.form-submit-btn:hover {
    background-color: rgba(40, 23, 27, 0.2);
    transform: translateY(-2px);
}

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

/* Responsive Contact Form */
@media (max-width: 768px) {
    .contact-form-container {
        width: 100%;
        max-width: 100%;
        padding: 64px 32px 32px;
    }

    .contact-form-title {
        font-size: 24px;
    }

    .contact-form-close {
        top: 16px;
        right: 16px;
    }

    .form-submit-btn {
        width: 100%;
        align-self: stretch;
    }
}

/* Responsive Menu */
@media (max-width: 768px) {
    .menu-sidebar {
        width: 100%;
        max-width: 100%;
        position: relative;
    }

    .menu-close-btn {
        display: flex;
    }

    .menu-nav {
        padding: 64px 32px 32px;
    }

    .menu-item.active .menu-text {
        font-size: 24px;
    }

    .menu-item:not(.active) .menu-text {
        font-size: 20px;
    }

    .menu-icon {
        width: 32px;
        height: 32px;
    }

    .menu-footer-link {
        font-size: 20px;
    }

    .menu-footer-info {
        font-size: 18px;
    }
}
