
:root {
    --color-red: #D2232A;
    --color-red-image:  #FF2E36;
    --color-white: #F5F5F0;
    --color-black: #1A1A1A;
    --color-gray: #666666;
    --color-bg-light: #F9F9F9;
    --font-main: 'Inter', -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--color-black);
    line-height: 1.6;
    background-color: var(--color-white);
}


#content {
    padding-top: 0;
}

.container {
    /*max-width: 1200px;
    margin: 0 auto;*/
    padding-top: 0;
    padding-bottom: 0;
}

/*General */
.menu-item {
    position: relative;
}

.promo-card,
.section--engagement{
    position: relative;
    z-index: 2;
    background-repeat: no-repeat;
    background-size: cover; /* Чтобы картинка заполняла весь блок */
    /* background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35));  */
    color: #F5F5F0;
}

.section--engagement {
    background-position: center center;
    background-attachment: fixed;
    min-height: 770px; /* Немного увеличим высоту, чтобы не было тесно */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;    
}

.section--engagement {
    min-height: 570px;
}

.promo-card::before,
.section--engagement::before {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    background-color: #1a1a1aaa;
}

.section--engagement::before {
    background-color: #1B1715;
}

.promo-card .promo-card__container,
.section--engagement .container {
    position: relative; /* Обязательно, чтобы z-index заработал */
    z-index: 2;        /* Должен быть выше, чем z-index у ::before */
}

/* .section { padding: 60px 0; } */
.section--top {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 140px);
    margin-bottom: 80px;
}

@media (max-width: 768px){
    .section--top {
        margin-bottom: 40px;
    }
}

.bg-light { background-color: var(--color-bg-light); }
.text-red { color: var(--color-red); }
.text-red-image {color: var(--color-red-image);}
.text-italic { font-style: italic; }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }

/* Grid System */
.grid { display: grid; gap: 40px; align-items: center; margin: 0 auto; max-width: 1320px;}
.grid--2-cols { grid-template-columns: 1fr 1fr; }
.grid-contact--2-cols {grid-template-columns: 1fr 2fr; align-items: start;}
@media (max-width: 768px) { .grid--2-cols, .grid-contact--2-cols { grid-template-columns: 1fr; } }
.gap-xl { gap: 80px; }

/* Typography */
h2 { font-size: 2rem; font-weight: 900; margin-bottom: 20px; }
.section-title { font-family: 'Inter', sans-serif; font-style: normal !important;  color: var(--color-white) !important; margin-bottom: 40px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    transition: 0.3s;
    cursor: pointer;
}
.btn--primary {
    background-color: var(--color-red);
    color: var(--color-white);
    border: 2px solid var(--color-red);
}
.btn--primary:hover { background-color: var(--color-black); border-color: var(--color-black); }

.btn--secondary {
    background-color: transparent;
    color: var(--color-red);
    border: 2px solid var(--color-red);
}
.btn--secondary:hover { background-color: var(--color-red-image); color: var(--color-white); }
a.btn.btn--promo {
    border: 2px solid var(--color-white); 
    color: var(--color-white);
}

a.btn.btn--promo:hover {
    border-color: var(--color-red-image)
}


/* Promo Card */
.promo-card {
    padding: 40px;
    border-top: 5px solid var(--color-red-image);
}
.promo-card__title {
    font-family: var(--font-heading) !important; 
    color: var(--color-red);
    font-size: 36px;
}
.promo-card__divider { width: 50px; height: 3px; background: var(--color-red-image); margin-bottom: 20px; }
.promo-card__text { color: var(--color-white); margin-bottom: 30px; }


.promo-card__text-wrapper {
    max-height: 180px; /* Примерно 3-4 строки. Подберите под свой шрифт */
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    position: relative;
    margin-bottom: 20px;
}

.promo-card__text-wrapper b {
    color: var(--color-white);
}

/* Эффект затухания снизу (опционально) */
.promo-card__text-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    transition: opacity 0.3s;
}

/* Когда развернуто */
.promo-card--is-expanded .promo-card__text-wrapper {
    max-height: 1000px; /* Большое значение */
}

.promo-card--is-expanded .promo-card__text-wrapper::after {
    opacity: 0; /* Убираем затухание при развороте */
}

.promo-card__btn-more {
  background-color: var(--color-red);
  padding: 5px;
  border-radius: 4px;
  border: none;
  outline: none;
}

/* News Feed */
.news-feed__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.news-feed__title {
  font-family: var(--font-heading);
  font-size: 45px;
  color:var(--color-red);
}

@media (max-width: 768px){
    .news-feed__header {
        align-items: center;
        gap: 10px;
    }
    .news-feed__title {
        font-size: 28px;
        flex-shrink: 0;
    }
}

.news-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}
.news-item:last-child { border: none; }
.news-item__image img { width: 100px; height: 100px; object-fit: cover; }
.news-item__title {color: var(--color-red);}
.news-item__date { font-size: 12px; color: var(--color-gray); }
.news-item__caption { font-size: 14px; color: var(--color-red); margin: 5px 0; cursor: pointer; }
.news-item__excerpt { font-size: 14px; color: var(--color-gray); }

/* 1. Главный контейнер — точка отсчета */
.news-item {
    position: relative; /* Обязательно */
    overflow: hidden;   /* Чтобы ссылка не вылезала за скругленные углы */
    cursor: pointer;    /* Подсказка для Safari/iOS, что блок кликабелен */
}

/* 2. Растягиваем ссылку на ВЕСЬ article */
.news-item__caption a::after {
    cursor: pointer;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Самое важное: */
    z-index: 99; /* Число должно быть выше, чем у картинки и даты */
}

/* 3. Убеждаемся, что картинка не перекрывает ссылку */
.news-item__image {
    position: relative;
    z-index: 1; /* Картинка ниже ссылки */
}



/* Engagement Circles */
.section--engagement {
    margin-bottom: 160px;
    background-color: #112938;
}

@media (max-width: 600px){
  .section--engagement {
    padding-top: 40px;
    padding-bottom: 40px;
    margin-bottom: 100px;
  }
}

.section-title {
    margin: 0 auto 20px;
    max-width: 840px;
    color: var(--color-red);
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1000px;
}

@media (max-width: 375px) { .features-grid { justify-content: center; gap: 16px; } } 
@media (max-width: 1100px) { .features-grid { justify-content: center;} }

.feature-item { 
    display: flex;
    flex-direction: column;

    flex: 1 1 calc(25% - 30px); 
    min-width: 250px; /* Чтобы на планшетах они не становились слишком узкими */
    max-width: 400px; /* Чтобы пара элементов не растягивалась на весь экран */
    text-align: center; 
}

@media (max-width: 768px) {
    .feature-item {
        flex: 1 1 calc(50% - 30px); /* 2 колонки на планшетах */
    }
}

@media (max-width: 480px) {
    .feature-item {
        flex: 1 1 100%; /* 1 колонка на мобильных */
    }
}

.feature-item__circle {
    width: 102px;
    height: 102px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;    /* Центр по вертикали */
    justify-content: center; /* Центр по горизонтали */
    overflow: hidden;        /* Чтобы ничего не вылезало за круг */
    transition: 0.3s;
    background-color: transparent; /* Или ваш фоновый цвет */
}

.icon img {
    width: 114px;      /* Немного уменьшим, чтобы был отступ от краев круга */
    height: 80px;     /* Делаем высоту равной ширине */
    object-fit: contain; /* КРИТИЧНО: сохраняет пропорции, не сплющивает */
    max-width: 100% !important; 
    display: block;
    border-radius: 4px;
}


.feature-item__title { 
    text-transform: uppercase; 
    font-size: 17px; 
    margin-bottom: 10px; 
    text-align: center; 
    color: #F5F5F0;
}

.feature-item__desc { 
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px; 
    color: #F5F5F0; 
    padding: 0 10px; 
    /*flex: 1 1 auto;*/ 
}
.no-engagements { text-align: center }
/* Contacts & Partners */
.contacts-block { border-left: 5px solid var(--color-red); padding-left: 30px;}
.contacts-block__info { margin-bottom: 30px; font-size: 16px; }

.sf-quote-section {
    position: relative;
    overflow: hidden;
    background: #fff;
    margin-bottom: 160px;
}

.sf-container {
    max-width: 1388px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0 20px;
}

/* Линия на заднем плане */
.sf-container::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 74%;
    height: 1px;
    background: #eee;
    z-index: 5;
}

/* Красная буква U */
.sf-logo-bg {
    position: relative;
    font-family: var(--font-heading), sans-serif;
    font-size: 80px;
    color: var(--color-red);
    font-weight: bold;
    font-style: italic;
    position: relative;
    z-index: 5;
    background: #fff;
    padding-right: 15px;
    margin-top: 60px;
}

/* Блок с текстом */
.sf-content {
    flex: 1;
    text-align: right;
    padding: 0 40px;
    position: relative;
    z-index: 2;
    background: #fff;
}

.sf-quote {
    font-family: var(--font-heading), sans-serif; /* Подключите через Google Fonts */
    font-size: 45px;
    color: var(--color-red);
    background-color: transparent;
    margin: 0 0 15px 0;
    line-height: 1.12;
    border-left: 5px solid var(--color-red);
}

.sf-author {
    font-family: sans-serif;
    font-size: 14px;
    color: var(--color-gray);
    font-style: normal;
    margin-left: auto;
}

/* Фотография */
.sf-photo {
    position: relative;
    z-index: 5;
    background: #fff;
    padding-left: 20px;
}

.sf-photo img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 0 0 1px #eee; /* Тонкий контур вокруг фото */
}

/* Адаптив для мобилок */
@media (max-width: 768px) {
    .sf-container {
        flex-direction: column;
        text-align: center;
    }
    .sf-container::before { display: none; }
    .sf-logo-bg { padding: 0; margin-bottom: 20px; }
    .sf-photo { order: -1; padding: 0; margin-bottom: 20px; }
    .sf-quote {padding: 0 0 10px 0;}
    .sf-logo-bg { order: 4; margin: 0;}
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 15px;
    margin-bottom: 15px;
}
.partner-logo {
    width: 33%;
    background: #eee;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    filter: grayscale(0);
    transition: 0.3s;
    border: 1px solid transparent;
}
.partner-logo:hover { filter: grayscale(1); border-color: var(--color-red); background: white; }
.partners-block__note { font-size: 15px; color: var(--color-gray); }
.no-partner {
    text-align: center;
}
