@import url("https://fonts.googleapis.com/css?family=IBM%20Plex%20Sans:500|IBM%20Plex%20Sans:300");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap");

@font-face {
    font-family: "PPNeueMontreal";
    src: url("/NeueMontreal-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "PPNeueMontreal";
    src: url("/NeueMontreal-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "HalvarBreit";
    src: url("/HalvarBreit-Lt.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

:root {
    --m: 4rem;
}

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

body {
    font-family: 'HalvarBreit', 'PPNeueMontreal', 'Neue Montreal', 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 1rem;
    overflow-x: hidden;
}

/* Стили хэдера теперь в css/header.css */

.main {
    margin-top: 0;
    min-height: 100vh;
}

.hero {
    position: relative;
    width: 100%;
    margin-top: 5rem;
    padding: 0;
    overflow: hidden;
}

.hero-number {
    display: none !important;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}


.hero-content {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0.5rem 2rem 4rem;
    text-align: left;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(2.5rem, 11vw, 11rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #a68f50 !important;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: -0.5rem;
    width: 100%;
}

.hero-title-line {
    display: block;
    white-space: nowrap;
    will-change: transform;
    transition: transform 0.1s ease-out;
    width: fit-content;
}

.hero-title-line-2 {
    margin-top: -0.5rem;
}


.content {
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 2rem 8rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 6rem 4rem;
}

.content-block {
    max-width: 35rem;
}

.content-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.content-text {
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.contact-section {
    max-width: 90rem;
    margin: 0 auto;
    padding: 8rem 2rem;
    text-align: center;
    border-top: 1px solid #000000;
}

.contact-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-text {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 3rem;
    letter-spacing: 0.01em;
}

.contact-button {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid #000000;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.contact-button:hover {
    background-color: #000000;
    color: #ffffff;
}

h2 {
    font-weight: 500;
    text-align: center;
    font-size: var(--m);
    margin: 0;
}

h3 {
    font-weight: 500;
    font-size: calc(0.6 * var(--m));
    margin: 0;
}

/* Стили футера теперь в css/footer.css */

img {
    height: calc(0.3 * var(--m));
    object-fit: cover;
}

.social {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

.link {
    width: calc(0.8 * var(--m));
    height: calc(0.8 * var(--m));
    background-color: rgba(0, 0, 0, 0.1);
    border: 1px solid #000000;
    border-radius: calc(0.1 * var(--m));
    display: flex;
    justify-content: center;
    align-items: center;
}

@media screen and (max-width: 1000px) {
    :root {
        --m: 3rem;
    }
}

@media screen and (max-width: 700px) {
    /* Мобильные стили хэдера теперь в css/header.css */
    /* Мобильные стили футера теперь в css/footer.css */

    /* Мобильные стили хэдера теперь в css/header.css */

    .nav-link-cta {
        padding: 0.4rem 1rem;
        font-size: 0.7rem;
    }

    .hero-content {
        padding: 1.5rem 1.5rem 3rem;
        text-align: left;
    }

    .hero {
        margin-top: 4.5rem;
    }

    .hero-image-wrapper {
        max-height: 320px;
    }

    .hero-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3.2rem);
        line-height: 1.05;
        letter-spacing: -0.02em;
    }

    .content {
        padding: 0 1.5rem 6rem;
        gap: 4rem 2rem;
    }

    .contact-section {
        padding: 6rem 1.5rem;
    }

    .contact-title {
        font-size: 1.5rem;
    }
}

/* Infrastructure Section */
.infrastructure-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: stretch;
}

.infrastructure-item {
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: border-color 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 0 0 calc((100% - 4rem) / 3);
    width: calc((100% - 4rem) / 3);
    min-height: 14rem;
}

.infrastructure-item:hover {
    border-color: #000000;
    transform: translateY(-2px);
}

.infrastructure-item-icon {
    width: 100%;
    height: 7rem;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.infrastructure-item-1 .infrastructure-item-icon {
    background-image: url("/img/icons2.png");
}

.infrastructure-item-2 .infrastructure-item-icon {
    background-image: url("/img/icons3.png");
}

.infrastructure-item-3 .infrastructure-item-icon {
    background-image: url("/img/icons4.png");
}

.infrastructure-item-4 .infrastructure-item-icon {
    background-image: url("/img/icons5.png");
}

.infrastructure-item-5 .infrastructure-item-icon {
    background-image: url("/img/icons6.png");
}

.infrastructure-item-6 .infrastructure-item-icon {
    background-image: url("/img/icons7.png");
}

.infrastructure-item-7 .infrastructure-item-icon {
    background-image: url("/img/icons8.png");
}

.infrastructure-item-8 .infrastructure-item-icon {
    background-image: url("/img/icons9.png");
}

.infrastructure-item-9 .infrastructure-item-icon {
    background-image: url("/img/icons10.png");
}

.infrastructure-item-10 .infrastructure-item-icon {
    background-image: url("/img/icons11.png");
}

.infrastructure-item-title {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #000000;
    padding: 0 0 2rem 2rem;
}

/* Opportunities Section */
.opportunities-section {
    max-width: 90rem;
    margin: 0 auto;
    padding: 8rem 2rem;
    text-align: center;
    border-bottom: 1px solid #000000;
}

.opportunities-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.opportunities-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    letter-spacing: 0.01em;
    color: rgba(0, 0, 0, 0.7);
}

/* Nearby Section */
.nearby-section {
    max-width: 90rem;
    margin: 0 auto;
    padding: 8rem 2rem;
    border-bottom: 1px solid #000000;
}

.nearby-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-align: left;
}

.nearby-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 90rem;
}

.nearby-item {
    display: grid;
    grid-template-columns: 20rem 1fr;
    gap: 3rem;
    align-items: start;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nearby-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.nearby-image-wrapper {
    width: 100%;
    height: 15rem;
    overflow: hidden;
    position: relative;
}

.nearby-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nearby-item:hover .nearby-image {
    transform: scale(1.05);
}

.nearby-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nearby-distance-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nearby-distance {
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #000000;
}

.distance-tracker {
    position: relative;
    width: 100%;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.distance-tracker-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
}

.distance-tracker-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #000000;
    transition: width 0.5s ease;
}

.nearby-name {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: 0.01em;
    color: rgba(0, 0, 0, 0.8);
}

/* Actions Section (map / choose / leisure) */
.infra-actions-section {
    width: 100%;
    margin: 0;
    padding: 4rem 2rem 6rem;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

.infra-actions-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
    max-width: 90rem;
    margin: 0 auto;
}

.infra-action-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2.5rem;
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 2rem;
    text-decoration: none;
    color: #000000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.infra-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(138, 60, 39, 0.06) 0%, rgba(138, 60, 39, 0.06) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.infra-action-card:hover::before {
    opacity: 1;
}

.infra-action-card:hover {
    transform: translateY(-8px);
    border-color: #a68f50;
    box-shadow: 0 20px 60px rgba(166, 143, 80, 0.35);
}

.infra-action-icon {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    background: #ffffff;
}

.infra-action-icon svg {
    width: 32px;
    height: 32px;
}

.infra-action-title {
    position: relative;
    z-index: 1;
    font-size: 1.3rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 1rem 0;
}

.infra-action-description {
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    line-height: 1.8;
    font-weight: 400;
    max-width: 18rem;
    margin: 0 auto;
    opacity: 0.8;
}

@media screen and (max-width: 960px) {
    .infra-actions-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }
}

@media screen and (max-width: 700px) {
    .infra-actions-section {
        padding: 3rem 1.5rem 4rem;
    }

    .infra-actions-container {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .infra-action-card {
        padding: 2.5rem 2rem;
    }
}

/* Form Modal Styles */
.form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 2rem;
}

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

.form-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-modal-content {
    position: relative;
    z-index: 1;
    background-color: #ffffff;
    max-width: 600px;
    width: 100%;
    padding: 4rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.form-modal.active .form-modal-content {
    transform: scale(1) translateY(0);
}

.form-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.form-modal-close:hover {
    opacity: 0.6;
}

.form-modal-close span {
    position: absolute;
    width: 1.5rem;
    height: 1px;
    background-color: #000000;
    transition: transform 0.3s ease;
}

.form-modal-close span:first-child {
    transform: rotate(45deg);
}

.form-modal-close span:last-child {
    transform: rotate(-45deg);
}

.form-modal-header {
    margin-bottom: 3rem;
    text-align: left;
}

.form-modal-title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    text-transform: none;
    color: #000000;
}

.form-modal-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    letter-spacing: 0.01em;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #000000;
}

.form-input {
    width: 100%;
    padding: 1rem 0;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    background-color: transparent;
    font-size: 1.125rem;
    font-weight: 300;
    font-family: inherit;
    color: #000000;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.form-input:focus {
    border-bottom-color: #000000;
}

.form-submit {
    width: 100%;
    padding: 1rem 2rem;
    border: 1px solid #000000;
    background-color: #000000;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: inherit;
    margin-top: 1rem;
}

.form-submit:hover {
    background-color: #ffffff;
    color: #000000;
}

.form-success {
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.05);
    color: #000000;
    text-align: center;
    font-size: 1rem;
    margin-top: 1rem;
}


@media screen and (max-width: 700px) {
    .infrastructure-grid {
        gap: 1.5rem;
    }

    .infrastructure-item {
        width: 100%;
        flex: 0 0 100%;
        min-height: auto;
        aspect-ratio: 2 / 1;
    }

    .nearby-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nearby-image-wrapper {
        height: 12rem;
    }

    .nearby-distance {
        font-size: 1.25rem;
    }

    .buttons-container {
        flex-direction: column;
        align-items: center;
    }

    .infra-button {
        width: 100%;
        max-width: 20rem;
        text-align: center;
    }

    .form-modal-content {
        padding: 2rem 1.5rem;
    }

    .content {
        padding: 0 1.5rem 6rem;
        gap: 4rem 2rem;
    }

    .contact-section {
        padding: 6rem 1.5rem;
    }

    .contact-title {
        font-size: 1.5rem;
    }
}

/* Infrastructure Section */
.infrastructure-section {
    max-width: 90rem;
    margin: 0 auto;
    padding: 8rem 2rem;
    border-top: 1px solid #000000;
    border-bottom: 1px solid #000000;
}

.infrastructure-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-align: left;
}

.infrastructure-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: stretch;
}

.infrastructure-item {
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: border-color 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 0 0 calc((100% - 4rem) / 3);
    width: calc((100% - 4rem) / 3);
    min-height: 14rem;
}

.infrastructure-item:hover {
    border-color: #000000;
    transform: translateY(-2px);
}

.infrastructure-item-icon {
    width: 100%;
    height: 7rem;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.infrastructure-item-1 .infrastructure-item-icon {
    background-image: url("/img/icons2.png");
}

.infrastructure-item-2 .infrastructure-item-icon {
    background-image: url("/img/icons3.png");
}

.infrastructure-item-3 .infrastructure-item-icon {
    background-image: url("/img/icons4.png");
}

.infrastructure-item-4 .infrastructure-item-icon {
    background-image: url("/img/icons5.png");
}

.infrastructure-item-5 .infrastructure-item-icon {
    background-image: url("/img/icons6.png");
}

.infrastructure-item-6 .infrastructure-item-icon {
    background-image: url("/img/icons7.png");
}

.infrastructure-item-7 .infrastructure-item-icon {
    background-image: url("/img/icons8.png");
}

.infrastructure-item-8 .infrastructure-item-icon {
    background-image: url("/img/icons9.png");
}

.infrastructure-item-9 .infrastructure-item-icon {
    background-image: url("/img/icons10.png");
}

.infrastructure-item-10 .infrastructure-item-icon {
    background-image: url("/img/icons11.png");
}

.infrastructure-item-title {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #000000;
    padding: 0 0 2rem 2rem;
}

/* Opportunities Section */
.opportunities-section {
    max-width: 90rem;
    margin: 0 auto;
    padding: 8rem 2rem;
    text-align: center;
    border-bottom: 1px solid #000000;
}

.opportunities-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.opportunities-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    letter-spacing: 0.01em;
    color: rgba(0, 0, 0, 0.7);
}

/* Nearby Section */
.nearby-section {
    max-width: 90rem;
    margin: 0 auto;
    padding: 8rem 2rem;
    border-bottom: 1px solid #000000;
}

.nearby-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-align: left;
}

.nearby-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 90rem;
}

.nearby-item {
    display: grid;
    grid-template-columns: 20rem 1fr;
    gap: 3rem;
    align-items: start;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nearby-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.nearby-image-wrapper {
    width: 100%;
    height: 15rem;
    overflow: hidden;
    position: relative;
}

.nearby-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nearby-item:hover .nearby-image {
    transform: scale(1.05);
}

.nearby-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nearby-distance-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nearby-distance {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #000000;
}

.distance-tracker {
    position: relative;
    width: 100%;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.distance-tracker-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
}

.distance-tracker-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #000000;
    transition: width 0.5s ease;
}

.nearby-name {
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: 0.01em;
    color: rgba(0, 0, 0, 0.8);
}

/* Buttons Section */
.buttons-section {
    max-width: 90rem;
    margin: 0 auto;
    padding: 8rem 2rem;
}

.buttons-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.infra-button {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid #000000;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.infra-button:hover {
    background-color: #000000;
    color: #ffffff;
}

/* Form Modal Styles */
.form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 2rem;
}

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

.form-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-modal-content {
    position: relative;
    z-index: 1;
    background-color: #ffffff;
    max-width: 600px;
    width: 100%;
    padding: 4rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.form-modal.active .form-modal-content {
    transform: scale(1) translateY(0);
}

.form-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.form-modal-close:hover {
    opacity: 0.6;
}

.form-modal-close span {
    position: absolute;
    width: 1.5rem;
    height: 1px;
    background-color: #000000;
    transition: transform 0.3s ease;
}

.form-modal-close span:first-child {
    transform: rotate(45deg);
}

.form-modal-close span:last-child {
    transform: rotate(-45deg);
}

.form-modal-header {
    margin-bottom: 3rem;
    text-align: left;
}

.form-modal-title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    text-transform: none;
    color: #000000;
}

.form-modal-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    letter-spacing: 0.01em;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #000000;
}

.form-input {
    width: 100%;
    padding: 1rem 0;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    background-color: transparent;
    font-size: 1.125rem;
    font-weight: 300;
    font-family: inherit;
    color: #000000;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.form-input:focus {
    border-bottom-color: #000000;
}

.form-submit {
    width: 100%;
    padding: 1rem 2rem;
    border: 1px solid #000000;
    background-color: #000000;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: inherit;
    margin-top: 1rem;
}

.form-submit:hover {
    background-color: #ffffff;
    color: #000000;
}

.form-success {
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.05);
    color: #000000;
    text-align: center;
    font-size: 1rem;
    margin-top: 1rem;
}


@media screen and (max-width: 700px) {
    .infrastructure-grid {
        gap: 1.5rem;
    }

    .infrastructure-item {
        width: 100%;
        flex: 0 0 100%;
        min-height: auto;
        aspect-ratio: 2 / 1;
    }

    .nearby-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nearby-image-wrapper {
        height: 12rem;
    }

    .nearby-distance {
        font-size: 1.25rem;
    }

    .buttons-container {
        flex-direction: column;
        align-items: center;
    }

    .infra-button {
        width: 100%;
        max-width: 20rem;
        text-align: center;
    }

    .form-modal-content {
        padding: 2rem 1.5rem;
    }
    
    .gallery-section {
        padding: 4rem 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 20rem;
    }
    
    .gallery-item-large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .gallery-number {
        top: 1.5rem;
        left: 1.5rem;
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
}

.gallery-section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 6rem 4rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.gallery-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 4rem;
    text-align: left;
    letter-spacing: -0.02em;
    text-transform: none;
    color: #000000;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    grid-auto-rows: 25rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.5s ease;
    border-radius: 0;
    isolation: isolate;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-number {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 200;
    line-height: 1;
    letter-spacing: -0.1em;
    color: rgba(255, 255, 255, 0.3);
    z-index: 2;
    font-family: 'PPNeueMontreal', 'Neue Montreal', sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, color 0.3s ease;
    pointer-events: none;
    max-width: calc(100% - 4rem);
    word-break: break-word;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin: 0;
}

@media screen and (max-width: 1000px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 18rem;
    }
    
    .gallery-item-large {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media screen and (max-width: 700px) {
    .gallery-section {
        padding: 4rem 1.5rem;
    }

    .gallery-title {
        text-align: center;
        margin-bottom: 3rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 15rem;
        gap: 1rem;
    }

    .gallery-item,
    .gallery-item-large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-number {
        top: 1.25rem;
        left: 1.25rem;
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    .gallery-overlay {
        padding: 1.5rem;
    }

    .gallery-caption {
        font-size: 1.05rem;
    }
}

.infrastructure-item-5 {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    background: #000000;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    border: none;
}

.infrastructure-item-5:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.infrastructure-item-5 .infrastructure-item-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: brightness(0.7);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.infrastructure-item-5:hover .infrastructure-item-icon {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.infrastructure-item-5::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

.infrastructure-item-5 .infrastructure-item-title {
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    padding-left: 1.5rem;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%;
}

.infrastructure-item-5 .infrastructure-item-title::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    bottom: 0.5rem;
    width: calc(100% - 3rem);
    height: 2px;
    background: linear-gradient(to right, #a68f50, #a68f50, #a68f50);
    border-radius: 0.25rem;
    box-shadow: 0 0 15px rgba(90, 62, 43, 0.4);
}

.infrastructure-item-1,
.infrastructure-item-2,
.infrastructure-item-3,
.infrastructure-item-4,
.infrastructure-item-6,
.infrastructure-item-7,
.infrastructure-item-8,
.infrastructure-item-9 {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    background: #000000;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    border: none;
}

.infrastructure-item-1:hover,
.infrastructure-item-2:hover,
.infrastructure-item-3:hover,
.infrastructure-item-4:hover,
.infrastructure-item-6:hover,
.infrastructure-item-7:hover,
.infrastructure-item-8:hover,
.infrastructure-item-9:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.infrastructure-item-1 .infrastructure-item-icon,
.infrastructure-item-2 .infrastructure-item-icon,
.infrastructure-item-3 .infrastructure-item-icon,
.infrastructure-item-4 .infrastructure-item-icon,
.infrastructure-item-6 .infrastructure-item-icon,
.infrastructure-item-7 .infrastructure-item-icon,
.infrastructure-item-8 .infrastructure-item-icon,
.infrastructure-item-9 .infrastructure-item-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: brightness(0.7);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.infrastructure-item-1:hover .infrastructure-item-icon,
.infrastructure-item-2:hover .infrastructure-item-icon,
.infrastructure-item-3:hover .infrastructure-item-icon,
.infrastructure-item-4:hover .infrastructure-item-icon,
.infrastructure-item-6:hover .infrastructure-item-icon,
.infrastructure-item-7:hover .infrastructure-item-icon,
.infrastructure-item-8:hover .infrastructure-item-icon,
.infrastructure-item-9:hover .infrastructure-item-icon {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.infrastructure-item-1::before,
.infrastructure-item-2::before,
.infrastructure-item-3::before,
.infrastructure-item-4::before,
.infrastructure-item-6::before,
.infrastructure-item-7::before,
.infrastructure-item-8::before,
.infrastructure-item-9::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

.infrastructure-item-1 .infrastructure-item-title,
.infrastructure-item-2 .infrastructure-item-title,
.infrastructure-item-3 .infrastructure-item-title,
.infrastructure-item-4 .infrastructure-item-title,
.infrastructure-item-6 .infrastructure-item-title,
.infrastructure-item-7 .infrastructure-item-title,
.infrastructure-item-8 .infrastructure-item-title,
.infrastructure-item-9 .infrastructure-item-title {
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    padding-left: 1.5rem;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 100%;
}

.infrastructure-item-1 .infrastructure-item-title::before,
.infrastructure-item-2 .infrastructure-item-title::before,
.infrastructure-item-3 .infrastructure-item-title::before,
.infrastructure-item-4 .infrastructure-item-title::before,
.infrastructure-item-6 .infrastructure-item-title::before,
.infrastructure-item-7 .infrastructure-item-title::before,
.infrastructure-item-8 .infrastructure-item-title::before,
.infrastructure-item-9 .infrastructure-item-title::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    bottom: 0.5rem;
    width: calc(100% - 3rem);
    height: 2px;
    background: linear-gradient(to right, #a68f50, #a68f50, #a68f50);
    border-radius: 0.25rem;
    box-shadow: 0 0 15px rgba(90, 62, 43, 0.4);
}
