/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.5;
    color: #1a1a1a;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === ФОН С ПАРАЛЛАКСОМ === */
.parallax-bg {
    background-image: url('/images/custom/bg_banner.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* === ШАПКА САЙТА === */
.site-header {
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    padding: 20px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
}

.logo span {
    font-size: 0.9rem;
    display: block;
    color: #bbdef5;
}

.contacts-header {
    text-align: right;
}

.phone {
    font-size: 1.6rem;
    font-weight: bold;
    color: #ffaa00;
}

/* === НАВИГАЦИЯ === */
.main-nav {
    background-color: rgba(20, 15, 10, 0.7);
    padding: 12px 0;
    transition: all 0.3s ease;
}

.main-nav.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(20, 15, 10, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.nav-fixed-spacer {
    display: none;
}

.nav-fixed-spacer.active {
    display: block;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: #ffaa00;
}

/* === БЛОК HERO === */
.hero-section {
    background-color: transparent;
    color: white;
    padding: 100px 0;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
}

.hero-btn-wrapper {
    text-align: center;
}

/* === СВЕТЛАЯ СЕКЦИЯ (на фоне) === */
.light-section {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    margin: 40px 0;
    padding: 60px 0;
}

/* === ДВЕ КОЛОНКИ === */
.two-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.column {
    flex: 1;
}

/* === СПИСОК С ГАЛКАМИ === */
.check-list {
    list-style: none;
    padding-left: 0;
}

.check-list li {
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ffaa00;
    font-weight: bold;
}

/* === СЕКЦИЯ С СЕРЫМ ФОНОМ === */
.gray-section {
    background-color: #eef2f5;
    padding: 60px 0;
}

/* === ЦЕНТРИРОВАННЫЙ ЗАГОЛОВОК === */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

/* === КАРТОЧКИ КЕЙСОВ === */
.cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.card {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.card h3 {
    margin-bottom: 15px;
}

/* === КНОПКИ === */
.btn {
    display: inline-block;
    background-color: #ffaa00;
    color: #1a1a1a;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #e69900;
}

.btn-center {
    text-align: center;
    margin-top: 30px;
}

/* === ТРИ КОЛОНКИ ДЛЯ МИССИИ === */
.mission-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
}

.mission-item {
    flex: 1;
}

.mission-item h3 {
    margin-bottom: 15px;
}

/* === ФУТЕР === */
.site-footer {
    /*background-color: #0a2b4e;*/
    background-color: rgba(20, 15, 10, 0.95);
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    /*border-top: 1px solid #2c4c6e;*/
    border-top: 1px solid #e69900;
    font-size: 0.85rem;
}

.footer-contacts {
    color: #ccc;
}

.footer-contacts a {
    color: #ccc;
    text-decoration: none;
}
.footer-contacts a:hover {
    color: #fff;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .contacts-header {
        text-align: center;
    }
    
    .nav-list {
        justify-content: center;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .two-columns {
        flex-direction: column;
    }
    
    .cards-grid {
        flex-direction: column;
    }
    
    .mission-grid {
        flex-direction: column;
    }
}
/* === СЕКЦИЯ МИССИИ === */
.mission-section {
    padding: 60px 0;
}

.mission-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
}

.mission-item {
    flex: 1;
}

.mission-item h3 {
    margin-bottom: 15px;
}


/* === СТРАНИЦА КОНТАКТОВ === */
.contacts-title {
    margin-top: 30px;
    padding-bottom: 70px;
    color: #ffffff;
}

.contacts-two-columns {
    margin-top: 40px;
}

.contacts-subtitle {
    margin-top: 30px;
}

/* === КОНТАКТНАЯ ФОРМА === */
.contact-form {
    margin-top: 20px;
}

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

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form button {
    align-self: flex-start;
}

/* === БЛОК С КАРТОЙ === */
.map-block {
    margin: 60px 0;
}

.map-wrapper {
    background-color: #eef2f5;
    padding: 20px;
    border-radius: 8px;
}

.map-address {
    margin-bottom: 15px;
}

.map-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* Соотношение 16:9 */
    border-radius: 8px;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* === КАРТОЧКА КОМАНДЫ === */
.team-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.team-photo {
    width: 100%;
    aspect-ratio: 1 / 1; /* Квадратное фото */
    object-fit: cover;
    display: block;
}

.team-info {
    padding: 20px;
}

.team-info h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.team-info .position {
    color: #d4a017;
    font-weight: bold;
    margin-bottom: 10px;
}

.team-info .experience {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.team-info .specialization {
    color: #333;
    font-size: 0.9rem;
}
/* === СТРАНИЦА "О КОМПАНИИ" === */
.pro-mission {
    margin-top: 30px;
}

.pro-mission-text {
    font-size: 1.2rem;
}

.pro-advantages {
    margin: 60px 0;
}

.pro-team {
    margin: 60px 0;
}

.pro-consultation {
    text-align: center;
}

.pro-consultation p {
    max-width: 700px;
    margin: 0 auto 30px;
}

/* === КАРТОЧКИ КОМАНДЫ === */
.team-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%; /* Растягиваем карточку на всю высоту родителя */
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.team-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.team-info {
    padding: 20px;
    flex: 1; /* Занимает всё свободное пространство */
    display: flex;
    flex-direction: column;
}

.team-info h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.team-info .position {
    color: #d4a017;
    font-weight: bold;
    margin-bottom: 10px;
}

.team-info .experience {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.team-info .specialization {
    color: #333;
    font-size: 0.9rem;
    flex-shrink: 0; /* Не сжимается */
}

/* Сетка для карточек команды */
.cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.cards-grid .team-card {
    flex: 1 1 calc(25% - 30px);
    min-width: 200px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .cards-grid .team-card {
        flex: 1 1 calc(50% - 30px);
    }
}

@media (max-width: 480px) {
    .cards-grid {
        gap: 20px;
    }
    
    .cards-grid .team-card {
        flex: 1 1 100%;
        max-width: 280px; /* Ограничиваем ширину на телефоне */
        margin: 0 auto; /* Центрируем карточку */
    }
    
    .team-info {
        padding: 15px;
    }
    
    .team-info h3 {
        font-size: 1rem;
    }
    
    .team-info .position,
    .team-info .experience,
    .team-info .specialization {
        font-size: 0.85rem;
    }
}
/* === ЛОГОТИП === */
.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 80px;  /* Оптимальная высота для шапки = 50 */
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.logo-text span {
    font-size: 0.8rem;
    display: block;
    color: #bbdef5;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .logo-img {
        height: 40px;  /* Чуть меньше на телефонах */
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
}

/* === СТРАНИЦА КЕЙСОВ === */

/* === СЕТКА ДЛЯ КАРТОЧЕК (общая) === */
.cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.cards-grid .case-card {
    flex: 1 1 calc(33.333% - 30px); /* 3 колонки на десктопе */
    min-width: 250px;
}

/* Адаптивность для планшетов */
@media (max-width: 768px) {
    .cards-grid .case-card {
        flex: 1 1 calc(50% - 30px); /* 2 колонки */
    }
}

/* Адаптивность для телефонов */
@media (max-width: 480px) {
    .cards-grid .case-card {
        flex: 1 1 100%; /* 1 колонка */
    }
}

.case-card {
    display: flex;
    flex-direction: column;
    /*height: 100%;*/
}

.case-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

.case-detail {
    max-width: 900px;
    margin: 40px auto;
}

.case-block {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.case-block h2 {
    color: #d4a017;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.case-content {
    line-height: 1.7;
    font-size: 1.05rem;
}

.case-content p {
    margin-bottom: 15px;
}
.kejsy-title {
    margin-top: 30px;
    color: #ffaa00;
}

.kejsy-subtitle {
    margin-bottom: 50px;
    padding-bottom: 50px;
    color: #ffaa00;
}

.kejsy-no-results {
    text-align: center;
}
/* === СТРАНИЦА КЕЙСОВ === */

/* === ОТЗЫВЫ (ГАЛЕРЕЯ) === */
.reviews-section {
    margin: 60px 0;
    background-color: #f8f8f8;
    padding: 60px 0;
    border-radius: 8px;
}

.reviews-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.review-item {
    flex: 1 1 calc(25% - 20px);
    min-width: 200px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

.review-item img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .review-item {
        flex: 1 1 calc(33.333% - 20px);
    }
}

@media (max-width: 480px) {
    .review-item {
        flex: 1 1 calc(50% - 20px);
    }
}
/* === ОТЗЫВЫ (ГАЛЕРЕЯ) === */
/* === СТРАНИЦА УСЛУГ === */
.services-title {
    margin-top: 30px;
    color: #ffaa00;
}

.services-subtitle {
    margin-bottom: 50px;
    padding-bottom: 50px;
    color: #ffaa00;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.service-card {
    flex: 1 1 calc(33.333% - 30px);
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    color: #d4a017;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Адаптивность для услуг */
@media (max-width: 768px) {
    .service-card {
        flex: 1 1 calc(50% - 30px);
    }
}

@media (max-width: 480px) {
    .service-card {
        flex: 1 1 100%;
    }
}
/* === СТРАНИЦА УСЛУГ === */
/* === ДЕТАЛЬНАЯ СТРАНИЦА УСЛУГИ === */
.service-detail {
    max-width: 900px;
    margin: 40px auto;
    line-height: 1.7;
    font-size: 1.05rem;
}

.service-detail p {
    margin-bottom: 15px;
}
/* === ДЕТАЛЬНАЯ СТРАНИЦА УСЛУГИ === */
