@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', -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;
}

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

.main {
    margin-top: 5rem;
    min-height: calc(100vh - 5rem);
}

.hero {
    padding: 8rem 2rem 6rem;
    text-align: left;
    max-width: 90rem;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-family: 'HalvarBreit', sans-serif;
}

.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;
    font-family: 'HalvarBreit', sans-serif;
}

.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;
    font-family: 'HalvarBreit', sans-serif;
}

.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;
    font-family: 'HalvarBreit', sans-serif;
}

.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;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

.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 */

    .hero {
        padding: 6rem 1.5rem 4rem;
    }

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

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

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

/* 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;
}


/* Секция списка квартир */
.apartments-section {
    max-width: 90rem;
    margin: 0 auto;
    padding: 4rem 2rem 8rem;
    border-top: 1px solid #000000;
}

.apartments-section-title {
    font-size: 2rem;
    font-weight: 400;
    margin-top: 8rem;
    margin-bottom: 1.5rem;
    color: #000000;
    text-align: left;
    text-transform: none;
    letter-spacing: -0.02em;
}

.apartments-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #000000;
    padding-bottom: 1rem;
}

.toggle-button {
    background-color: transparent;
    color: #a68f50;
    border: 1px solid #a68f50;
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    font-family: 'HalvarBreit', 'PPNeueMontreal', 'Neue Montreal', 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.toggle-button:hover {
    background-color: #a68f50;
    color: #ffffff;
    border-color: #a68f50;
}

.toggle-button.active {
    background-color: #a68f50;
    color: #ffffff;
    border-color: #a68f50;
}

.apartments-header {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 3rem;
    color: #000000;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.apartments-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.partners-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 3rem;
    border: 1px solid #000000;
    background-color: #ffffff;
    max-width: 800px;
    margin: 0 auto;
}

.partners-title {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-align: left;
}

.partners-text {
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.6;
    color: #000000;
    margin-bottom: 1rem;
}

.partners-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.partners-contact-label {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.partners-contact-info {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    color: #000000;
}

.partners-contact-info a {
    color: #000000;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.partners-contact-info a:hover {
    opacity: 0.6;
    text-decoration: underline;
}

.partners-button {
    display: inline-block;
    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;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 1rem;
    align-self: flex-start;
}

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

.apartment-card {
    display: flex;
    flex-direction: row;
    border: 1px solid #000000;
    background-color: #ffffff;
    width: 100%;
}

.apartment-image-wrapper {
    width: 50%;
    flex-shrink: 0;
    overflow: hidden;
}

.apartment-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    display: block;
}

.apartment-info {
    width: 50%;
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.apartment-address {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #000000;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.apartment-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.apartment-detail {
    font-size: 1.125rem;
    font-weight: 400;
    color: #000000;
    line-height: 1.8;
    letter-spacing: 0.01em;
}

.apartment-price-wrapper {
    margin-bottom: 2rem;
}

.apartment-price-label {
    font-size: 1rem;
    font-weight: 400;
    color: #000000;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.apartment-price {
    font-size: 1.5rem;
    font-weight: 400;
    color: #000000;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.apartment-price-alt {
    font-size: 0.875rem;
    font-weight: 300;
    color: #000000;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.apartment-price-alt:hover {
    opacity: 0.6;
}

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

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

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

    .apartments-section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .apartments-toggle {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .toggle-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.75rem;
    }

    .apartments-list {
        gap: 2rem;
    }

    .apartment-card {
        flex-direction: column;
    }

    .apartment-image-wrapper {
        width: 100%;
    }

    .apartment-image {
        min-height: 300px;
    }

    .apartment-info {
        width: 100%;
        padding: 2rem;
    }

    .partners-content {
        padding: 2rem 1.5rem;
    }

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

    .partners-text {
        font-size: 1rem;
    }

    .partners-button {
        width: 100%;
        align-self: stretch;
    }

    .apartment-address {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .apartment-details {
        margin-bottom: 1.25rem;
        gap: 0.4rem;
    }

    .apartment-detail {
        font-size: 0.875rem;
    }

    .apartment-price-wrapper {
        margin-bottom: 1.5rem;
    }

    .apartment-price {
        font-size: 1.25rem;
    }
}
