/* Шапка */
.site-header {
    background: white;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /*линия в шапке*/
}

.header-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}


.header-logo {
    margin-bottom: 0.8rem;
}

.logo-img {
    width: 60px;
    height: 60px;

}

.header-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0 0.5rem;
}

.nav-link {
    font-size: 1.3em;
    color: #6c757d;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #000;
}

.nav-link.active {
    color: #000;
    font-weight: 500;
}

/* Футер */
.footer {
    width: 100%;
    background-color: rgb(250, 254, 255);
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    z-index: 3;
    padding: 10px;
    text-align: center;
}

.footer p {
    margin: 2px 0;
    font-size: 0.8em;
    color: black;
}


/* Основной контейнер */
.main-container {
    position: relative;
}

/* Секция с колонками - фиксированная */
.columns-section {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10;
    /*transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);*/
}
.main-title-overlay {
    position: relative;
    top: 3em;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #4e6570;
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.main-title-overlay h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.main-title-overlay p {
    color: #1f0101;
    /*margin-bottom: 1rem;*/
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}
/**/
/* Основная сетка для 3 колонок */
.three-column-layout {
    display: flex;
    flex: 1;  /* ← Занимает всё доступное пространство */
    min-height: 100vh; /*  Минимальная высота, но может расти */
    position: relative;
    width: 100%;
    margin: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.column {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    /*transform: none !important;*/
    min-height: auto;
}

.column.active {
    flex: 1.2; /* Активная колонка немного больше */
}

/* Стили для контента колонок */
.column-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease;
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 10;
    pointer-events: none;
}


.content-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 2em;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-left: 4px solid transparent;
}

.content-item h3 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.2em;
    font-weight: 600;
}

.content-item p {
    color: #555;
    font-size: 1em;
    line-height: 1.4;
    margin: 0;
}

/**/
/*Секция информационная о подборе локаций*/
.info-section {
    margin-top: 7rem;
    position: relative;
    background: linear-gradient(135deg, #5591ad 0%, #85cafd 100%);
    color: white;
    padding: 50px 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.container {
    padding: 0 20px;
}

.info-content {
    text-align: center;
}

.info-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.info-subtitle {
    font-size: 1.5rem;
    margin-bottom: 4rem;
    opacity: 0.9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.service-card p {
    opacity: 0.9;
    line-height: 1.6;
}

.cta-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    margin: 0 auto;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    background: white;
    color: #667eea;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Адаптивность */
@media (max-width: 768px) {
    .info-title {
        font-size: 2.5rem;
    }

    .info-subtitle {
        font-size: 1.2rem;
    }

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

    .service-card {
        padding: 1.5rem;
    }

    .cta-section {
        padding: 2rem;
    }
}
.advantages-section .container {
    text-align: center; /* Это выровняет по центру весь текст внутри контейнера */
}

.advantages-section {
    margin-top: -1rem;
    position: relative;
    color: black;
    padding: 50px 0;
    min-height: 90vh;
    display: flex;
}

.advantage-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.advantages-grid h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}
.advantages-grid p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

/*Страница about*/
.about-page {
    position: relative;
    text-align: center;
}

.about-title{
    position: relative;
    top: 3em;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: black;
}

.magazine-blocks {
    width: 80%;
    max-width: 1400px;
    margin: 30px auto; /* Уменьшаем до 30px для компенсации */
    display: flex;
    flex-direction: column;
    /*padding-top: 20px; !* Дополнительный отступ *!*/
}
.magazine-block{
    display: flex; /* Включаем flex для этого блока */
    align-items: center; /* Выравниваем дочерние элементы по центру вертикально */
    justify-content: space-between; /* Распределяем пространство между элементами */
    padding: 30px; /* Внутренние отступы */
    margin-bottom: 20px;
}

.magazine-block.reverse {
    direction: rtl;
}

.magazine-block.reverse > * {
    direction: ltr;
}

.block-category {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: #6791bb;
    margin-bottom: 1rem;
    display: block;
}


.block-content{
    min-width: 450px;
    max-width: 650px;
    text-align: left;
}
.block-image {
    width: 600px;
    height: 450px;
    overflow: hidden; /* Чтобы обрезать лишнее, если изображение не квадратное */
    display: flex;
    justify-content: center;
    align-items: center;
}
.block-image img {
    width: 90%;
    height: 90%;
    object-fit: cover; /* Это свойство обрежет изображение, чтобы оно заполнило блок без искажений */
}

.philosophy-section{
    margin-top: -1rem;
    position: relative;
    background: linear-gradient(135deg, #5591ad 0%, #85cafd 100%);
    color: white;
    min-height: 60vh;
    display: flex;
    align-items: center;
}
.philosophy-section h2{
    /*margin-top: -3em;*/
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.philosophy-item h3{
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}
.philosophy-item p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.projects-grid-section {
    margin-top: -1rem;
    position: relative;
    color: black;
    padding: 60px 0;
    min-height: 80vh;
    display: flex;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}
.grid-item {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* Сохраняем квадрат */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-cta {
    margin: 2rem;
}
.about-cta h2{
    margin-top: -3rem;
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);

}
.cta-button-about {
    margin: 1rem;
    color: white;
    background: #6ba9d7;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cta-button-about:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: white;
    background: #5591ad;
}


/*Страница контактов*/
.contacts-page {
    position: relative;
    text-align: center;
}

.contacts-title{
    position: relative;
    top: 3em;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: black;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem 0;
}

.contacts-map {
    border-radius: 12px;
    overflow: hidden;
    /*box-shadow: 0 10px 30px rgba(0,0,0,0.1);*/
}

.map-placeholder {
    height: 600px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #666;
}

.contacts-blocks {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contacts-block, .contact-form-block {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    /*box-shadow: 0 5px 20px rgba(0,0,0,0.08);*/
}

.contact-item {
    justify-content: center;
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.contact-details h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-note {
    font-size: 0.875rem;
    color: #888;
    margin-top: 0.25rem;
    display: block;
}

.submit-btn {
    background: #667eea;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
}

.contacts-extra {
    background: linear-gradient(135deg, #5591ad 0%, #85cafd 100%);
    padding: 4rem 0;
}

.extra-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.extra-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.highlight {
    font-size: 1.25rem;
    font-weight: bold;
    color: #667eea;
    margin: 0.5rem 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    color: #667eea;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #667eea;
    border-radius: 20px;
    transition: all 0.3s;
}