/* Настройки шаблона */
@font-face {
    font-family: Doloman Pavljenko;
    src: url("/templates/rostsayt/fonts/DolomanPavljenko.otf") format("opentype");
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root, body {font-size: 10px;}
@media screen and (min-width: 576px) {:root, body {font-size: 12px;}}
@media screen and (min-width: 768px) {:root, body {font-size: 12px;}}
@media screen and (min-width: 992px) {:root, body {font-size: 14px;}}
@media screen and (min-width: 1200px) {:root, body {font-size: 16px;}}

/* Элементы */
html {width: calc(100% + calc(100vw - 100%)); overflow-x: hidden;}
body {
    display: flex; flex-direction: column; margin: 0 auto; max-width: 2700px;
    font-family: 'Inter', sans-serif; color: #000; outline: 1px solid #ddd; overflow-x: hidden;
}
#middle main {overflow: inherit;}
*::before {pointer-events: none;}
@media (min-width: 1680px) {.container {max-width: 1680px;}}
a {text-decoration: none;}

/* ========== ШАПКА ========== */
#top_menu {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

#logo {
    margin-right: 20px;
    flex-shrink: 0;
}
#logo img {
    max-height: 60px;
    width: auto;
}

.mod-menu.mod-list.nav {
    width: auto;
    min-width: 547px;
    height: 20px;
    padding: 0 12px;
    gap: 40px;
    display: flex;
    align-items: center;
    margin: 0;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    .mod-menu.mod-list.nav {
        min-width: auto;
        flex-wrap: wrap;
        justify-content: center;
        height: auto;
        gap: 20px;
    }
}

.site-title {
    font-family: 'Doloman Pavljenko', sans-serif;
    font-size: 24px;
    line-height: 1.2;
    color: #000;
    text-transform: uppercase;
}
.site-title span {display: block;}

/* ========== НАВИГАЦИЯ (ЦЕНТРИРОВАННАЯ) ========== */
.navbar-nav {
    display: flex !important;
    gap: 8.125rem !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.navbar-nav .nav-item {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar-nav .nav-link,
#top_menu .mod-menu a,
#top_menu .nav-item a,
.nav-item {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #F0F8FA;
    text-decoration: none;
    padding: 0 15px;
    display: inline-block;
    white-space: nowrap;
}

@media screen and (max-width: 992px) {
    .navbar-nav {
        gap: 4rem !important;
    }
}

@media screen and (max-width: 768px) {
    .navbar-nav {
        gap: 1.5rem !important;
        flex-direction: column;
    }
    .navbar-nav .nav-item {
        width: 100%;
        justify-content: center;
    }
}

/* Центрирование всей шапки */
header#navbar .container,
#navbar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* Стили для меню в шапке */
#top_menu .mod-menu {
    display: flex;
    gap: 31px;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#top_menu .mod-menu li {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* ========== КНОПКИ ========== */
.header-button,
.btn-custom-header {
    background-color: #1384BD;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 16px;
    width: 224px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    white-space: nowrap;
    box-sizing: border-box;
    flex-shrink: 0;
}

@media screen and (max-width: 768px) {
    .header-button,
    .btn-custom-header {
        width: 100%;
        max-width: 280px;
    }
}

#top::before {display: none;}
#top > * {position: relative; z-index: 2;}

/* ========== КАРТОЧКИ ========== */
.card {border: none;}
.card-img-overlay {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    width: 100%;
    max-width: 26rem;
}
.card-img-overlay .display-6 {
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 0.5rem;
}

@media screen and (max-width: 576px) {
    .card-img-overlay .display-6 {
        font-size: 2rem;
    }
}

.card-image-container {width: 100%; max-width: 26rem;}
.card-image-container > img {width: 100%; max-width: 26rem;}

.card-img-overlay .fs-6 {
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.9);
}

/* ========== ТЕКСТОВЫЕ БЛОКИ ========== */
.block2-wrapper,
.about-text-block {
    background-color: #fff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.block2-wrapper {
    width: 100%;
    max-width: 780px;
    min-height: 369px;
    padding: 32px;
    border: 1px solid rgba(19, 132, 189, 0.2);
}
.about-text-block {
    width: 100%;
    max-width: 700px;
}

@media screen and (max-width: 768px) {
    .block2-wrapper,
    .about-text-block {
        padding: 24px;
        gap: 18px;
        min-height: auto;
    }
    .block2-wrapper {
        max-width: 100%;
    }
}

.block2-title,
.about-text-block h2 {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.2;
    color: #1384BD;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    width: 100%;
    padding-bottom: 24px;
    word-wrap: break-word;
}

@media screen and (max-width: 768px) {
    .block2-title,
    .about-text-block h2 {
        font-size: 28px;
        padding-bottom: 18px;
    }
}

@media screen and (max-width: 576px) {
    .block2-title,
    .about-text-block h2 {
        font-size: 24px;
        padding-bottom: 16px;
    }
}

.block2-text,
.about-text-block p {
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5;
    color: rgba(27, 45, 77, 0.9);
    margin: 0;
    width: 100%;
    word-wrap: break-word;
}

@media screen and (max-width: 768px) {
    .block2-text,
    .about-text-block p {
        font-size: 16px;
    }
}

@media screen and (max-width: 576px) {
    .block2-text,
    .about-text-block p {
        font-size: 15px;
    }
}

/* ========== КОНТЕЙНЕРЫ ========== */
.first-container {width: 100%; margin-bottom: 3rem;}
.second-container {width: 100%; max-width: 54rem; margin-left: auto; margin-right: 0;}

.first-container .row.g-4 {max-width: calc(26rem * 2 + 1.5rem);}
.second-container {max-width: calc(26rem * 2 + 1.5rem);}

.first-container .col-md-6,
.second-container .col-md-6 {
    flex: 0 0 calc(50% - 0.75rem);
    max-width: calc(50% - 0.75rem);
}

@media screen and (max-width: 768px) {
    .first-container .col-md-6,
    .second-container .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.first-container .card,
.second-container .card,
.first-container .card-image-container,
.second-container .card-image-container {width: 100%;}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
    max-width: 1700px;
    width: 100%;
    padding: 0 15px;
}

.first-container {
    width: 50%;
    max-width: 50%;
    margin-bottom: 3rem;
    padding-right: 1rem;
}
.second-container {
    width: 50%;
    max-width: 50%;
    margin-left: 0;
    padding-left: 1rem;
}

@media screen and (max-width: 768px) {
    .first-container,
    .second-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    .second-container {margin-left: 0;}
    .col-md-6 {
        width: 100%;
        margin-bottom: 1rem;
    }
}

.second-container .col-md-12 {width: 100%;}

/* ========== EVENT СТИЛИ ========== */
.event-title {
    font-weight: 600;
    font-size: 28px;
    line-height: 32px;
    text-transform: uppercase;
    color: #1B2D4D;
    opacity: 0.8;
    margin: 0 0 16px 0;
    width: 100%;
    max-width: 526px;
}

@media screen and (max-width: 768px) {
    .event-title {
        font-size: 24px;
        line-height: 28px;
    }
}

@media screen and (max-width: 576px) {
    .event-title {
        font-size: 22px;
    }
}

.event-text {
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: #1B2D4D;
    opacity: 0.8;
    margin: 0 0 24px 0;
    width: 100%;
    max-width: 526px;
}

@media screen and (max-width: 768px) {
    .event-text {
        font-size: 18px;
        line-height: 22px;
    }
}

@media screen and (max-width: 576px) {
    .event-text {
        font-size: 16px;
    }
}

.event-button {
    padding: 16px 32px;
    border-radius: 16px;
    background-color: #1384BD;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 239px;
    height: 56px;
}

@media screen and (max-width: 768px) {
    .event-button {
        width: 100%;
        max-width: 239px;
        margin: 0 auto;
        padding: 12px 24px;
        font-size: 14px;
    }
}

.event-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
}
.event-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}
@media screen and (max-width: 768px) {
    .event-card-image {
        height: 200px;
    }
}
.event-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.event-card-content {padding: 2rem;}

@media screen and (max-width: 768px) {
    .event-card-content {
        padding: 1.5rem;
    }
}

.image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.event-image {
    object-fit: cover;
    min-height: 250px;
    max-height: 300px;
    width: 100%;
}
@media screen and (max-width: 1023px) {
    .event-image {
        min-height: 220px;
        max-height: 280px;
    }
}
@media screen and (max-width: 768px) {
    .event-image {
        min-height: 200px;
        max-height: 250px;
    }
}
@media screen and (max-width: 576px) {
    .event-image {
        min-height: 180px;
        max-height: 220px;
    }
}

.no-image-placeholder {
    min-height: 250px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

/* ========== ТРЕУГОЛЬНИКИ ДЛЯ КАРТОЧЕК ========== */
.white-triangle-visible {
    position: absolute;
    top: 0;
    z-index: 10;
    pointer-events: none;
    width: 25%;
    height: 100%;
    background: #fff;
    opacity: 1;
}
.white-triangle-visible.triangle-right {
    right: 0;
    clip-path: polygon(100% 0, 0% 0, 100% 100%);
    width: 15%;
}
.white-triangle-visible.triangle-left {
    left: 0;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    width: 15%;
}
.order-md-1 .white-triangle-visible.triangle-right {right: -1px; top: -1px;}
.order-md-2 .white-triangle-visible.triangle-left {left: -1px; top: -1px;}

@media screen and (max-width: 1023px) {
    .white-triangle-visible {width: 30%;}
}
@media screen and (max-width: 768px) {
    .white-triangle-visible {width: 30%;}
}
@media screen and (max-width: 576px) {
    .white-triangle-visible {width: 35%;}
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ КЛАССЫ ========== */
.moduletable > .container-safety {
    margin-left: 16rem !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
    max-width: 1700px;
    width: 100%;
}

@media screen and (max-width: 1400px) {
    .moduletable > .container-safety {
        margin-left: 5rem !important;
    }
}

@media screen and (max-width: 768px) {
    .moduletable > .container-safety {
        margin-left: 1rem !important;
    }
}

.order-md-1 {padding: 0;}
.order-md-2 {padding: 0;}

.container-mer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 2100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.container-mer > .row {width: 100%;}
.container-mer > .row > .order-md-1,
.container-mer > .row > .order-md-2 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
}

.second-container .col-md-12:last-child .card-img-overlay {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding: 1.5rem !important;
}

/* ========== АДАПТАЦИЯ ========== */
@media screen and (max-width: 1023px) {
    #top_menu {
        position: relative;
        width: 100%;
    }
    
    #logo {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .mod-menu.mod-list.nav {
        width: 100%;
        justify-content: center;
        min-width: auto;
    }
    
    .navbar-nav {
        justify-content: center;
        gap: 2rem;
        flex-wrap: wrap;
    }
    
    .header-button,
    .btn-custom-header {
        margin-top: 1rem;
    }
    
    .block2-wrapper,
    .about-text-block {
        width: 100%;
        min-height: auto;
    }
    
    .event-button {
        margin-right: 0;
    }
    
    .first-container .col-md-6,
    .second-container .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .block2-wrapper,
    .about-text-block {
        padding: 28px;
        gap: 20px;
    }
    .block2-title,
    .about-text-block h2 {
        font-size: 32px;
        padding-bottom: 20px;
    }
    .block2-text,
    .about-text-block p {
        font-size: 17px;
    }
}

/* ========== ТЕКСТ ПОД ЛОГОТИПОМ ========== */
.hero-text-under-logo {
    padding: 20px;
    margin-bottom: 30px;
}

.hero-title {
    font-family: 'Inter';
    font-weight: 700;
    font-size: 80px;
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #FFFFFF;
    width: 34.75rem;
    height: 12.125rem;
    max-width: 100%;
}

@media screen and (max-width: 1200px) {
    .hero-title {
        font-size: 60px;
        width: auto;
        height: auto;
    }
}

@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 48px;
        width: auto;
        height: auto;
    }
}

@media screen and (max-width: 576px) {
    .hero-title {
        font-size: 36px;
        width: auto;
        height: auto;
    }
}

.hero-subtitle {
    font-family: 'Inter';
    font-weight: 700;
    font-size: 52px;
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: #F0F8FA;
}

@media screen and (max-width: 1200px) {
    .hero-subtitle {
        font-size: 42px;
    }
}

@media screen and (max-width: 768px) {
    .hero-subtitle {
        font-size: 32px;
    }
}

@media screen and (max-width: 576px) {
    .hero-subtitle {
        font-size: 26px;
    }
}

.hero-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: rgba(240, 248, 250, 0.9);
    max-width: 900px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

@media screen and (max-width: 768px) {
    .hero-description {
        font-size: 16px;
        line-height: 20px;
    }
}

@media screen and (max-width: 576px) {
    .hero-description {
        font-size: 14px;
        line-height: 18px;
    }
}

/* ========== НОВЫЙ ТРЕУГОЛЬНИК ========== */
.corner-triangle-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 25%;
    height: 30%;
    background: #ffffff;
    opacity: 0.95;
    clip-path: polygon(100% 100%, 0% 100%, 100% 0%);
    z-index: 10;
    pointer-events: none;
}

.corner-triangle-left {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25%;
    height: 30%;
    background: #ffffff;
    opacity: 0.95;
    clip-path: polygon(0% 100%, 100% 100%, 0% 0%);
    z-index: 10;
    pointer-events: none;
}

.hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    max-width: 1920px;
    height: 944px;
    object-fit: cover;
    object-position: center;
}

@media screen and (max-width: 1920px) {
    .hero-image-wrapper {
        width: 100%;
        height: 100%;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    z-index: 3;
}

.hero-content {
    width: 100%;
    max-width: 1400px;
    color: white;
    text-align: left;
    padding: 0 15px;
}

@media screen and (max-width: 768px) {
    .hero-content {
        padding: 0 10px;
    }
}

.hero-main-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 1200px) {
    .hero-main-title {
        font-size: 48px;
    }
}

@media screen and (max-width: 768px) {
    .hero-main-title {
        font-size: 36px;
    }
}

.hero-sub-title {
    font-size: 42px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 1200px) {
    .hero-sub-title {
        font-size: 32px;
    }
}

@media screen and (max-width: 768px) {
    .hero-sub-title {
        font-size: 28px;
    }
}

.hero-description {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 800px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 768px) {
    .hero-description {
        font-size: 16px;
    }
}

.hero-btn {
    display: inline-block;
    background: white;
    color: black;
    padding: 16px 45px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
}

@media screen and (max-width: 768px) {
    .hero-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
}

@media screen and (max-width: 576px) {
    .hero-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
}

.hero-corner-triangle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 250px;
    height: 200px;
    background: white;
    opacity: 0.95;
    clip-path: polygon(100% 100%, 0% 100%, 100% 0%);
    z-index: 4;
    pointer-events: none;
}

@media screen and (max-width: 768px) {
    .hero-corner-triangle {
        width: 150px;
        height: 120px;
    }
}

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

.projects-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #333;
}

@media screen and (max-width: 768px) {
    .projects-title {
        font-size: 36px;
    }
}

.project-item {
    margin-bottom: 40px;
}

.project-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
}

@media screen and (max-width: 768px) {
    .project-title {
        font-size: 24px;
    }
}

.project-text {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    max-width: 800px;
}

.project-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
}

.project-divider {
    margin: 40px 0;
    border: none;
    border-top: 2px solid #eee;
}

.proj-zag {
    text-align: center;
    font-family: 'Inter';
    font-weight: 700;
    font-size: 40px;
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: uppercase;
    color: rgba(19, 132, 189, 0.8);
    width: 12.75rem;
    height: 3rem;
    max-width: 100%;
}

@media screen and (max-width: 768px) {
    .proj-zag {
        font-size: 32px;
        width: auto;
        height: auto;
    }
}

.fddd {
    margin-top: 30px;
    margin-bottom: 30px;
}

.content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Базовые стили для треугольников */
.project-triangle {
    position: absolute;
    width: 9.375rem;
    height: 19.375rem;
    background: white;
    z-index: 10;
    pointer-events: none;
}

@media screen and (max-width: 768px) {
    .project-triangle {
        width: 6rem;
        height: 12rem;
    }
}

.triangle-top-left {
    top: 0;
    left: 0;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.triangle-top-right {
    top: 0;
    right: 0;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.triangle-bottom-left {
    bottom: -1px;
    left: -1px;
    clip-path: polygon(0 100%, 100% 100%, 0 0);
}

.triangle-bottom-right {
    bottom: -1px;
    right: -1px;
    clip-path: polygon(100% 100%, 0 100%, 100% 0);
}

/* ========== ИСПРАВЛЕНИЕ ПЕРВОГО БЛОКА ========== */
.mod-custom122 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    .mod-custom122 {
        padding: 20px 0;
    }
}

.hero-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    flex-wrap: wrap;
}

@media screen and (max-width: 768px) {
    .hero-block {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

.hero-block > div {
    flex: 1;
    max-width: 600px;
}

@media screen and (max-width: 768px) {
    .hero-block > div {
        max-width: 100%;
    }
}

.hero-block h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

@media screen and (max-width: 768px) {
    .hero-block h1 {
        font-size: 36px;
    }
}

.hero-block h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 1.3;
    color: #ffffff;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

@media screen and (max-width: 768px) {
    .hero-block h2 {
        font-size: 24px;
    }
}

.hero-block p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    color: #ffffff;
    margin: 0 0 30px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

@media screen and (max-width: 768px) {
    .hero-block p {
        font-size: 16px;
    }
}

/* ========== СТИЛИ ДЛЯ ЭЛЕМЕНТОВ PROP ========== */
.prop-item {
    margin-bottom: 2rem;
}

.prop-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    max-width: 600px;
}

@media screen and (max-width: 768px) {
    .prop-title {
        font-size: 36px;
    }
}

@media screen and (max-width: 576px) {
    .prop-title {
        font-size: 28px;
    }
}

.prop-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    max-width: 600px;
}

@media screen and (max-width: 768px) {
    .prop-description {
        font-size: 16px;
    }
}

/* ========== ИСПРАВЛЕНИЕ ДЛЯ КАРТИНКИ ========== */
.hero-image {
    position: fixed;
    top: -6rem;
    left: 0;
    width: 100vw;
    height: calc(100vh + 6rem);
    z-index: -1;
}

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

/* Шапка поверх фона */
header#navbar {
    position: relative;
    z-index: 1000;
    background: transparent !important;
}

/* Затемнение */
.hero-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 0;
    pointer-events: none;
}

/* Контент поверх картинки */
.hero-content {
    position: relative;
    z-index: 3;
    margin-top: 6rem;
    width: 100%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

@media screen and (max-width: 768px) {
    .hero-content {
        margin-top: 3rem;
        padding: 0 15px;
    }
}

/* Меню и кнопки должны быть видны */
#top_menu,
.header-button,
.btn-custom-header {
    position: relative;
    z-index: 1001;
}

.hero-content-left {
    text-align: left;
    margin-left: -10%;
    width: 90%;
    max-width: 1400px;
    position: relative;
    bottom: 6rem;
}

@media screen and (max-width: 1400px) {
    .hero-content-left {
        margin-left: -5%;
    }
}

@media screen and (max-width: 768px) {
    .hero-content-left {
        margin-left: 0;
        width: 100%;
        bottom: 3rem;
    }
}

.hero-content-left .hero-title,
.hero-content-left .hero-subtitle,
.hero-content-left .hero-description {
    text-align: left;
}

@media screen and (max-width: 768px) {
    .hero-content-left .hero-title,
    .hero-content-left .hero-subtitle,
    .hero-content-left .hero-description {
        text-align: center;
    }
}

/* Белый треугольник на картинке */
.corner-triangle-right-white {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 135rem;
    height: 17rem;
    background: #ffffff;
    clip-path: polygon(100% 100%, 0% 100%, 100% 0%);
    z-index: 10;
    pointer-events: none;
}

@media screen and (max-width: 1920px) {
    .corner-triangle-right-white {
        width: 100%;
        height: 30%;
    }
}

@media screen and (max-width: 768px) {
    .corner-triangle-right-white {
        height: 25%;
    }
}

@media screen and (max-width: 576px) {
    .corner-triangle-right-white {
        height: 20%;
    }
}

.hero-button {
    width: 378px;
    height: 71px;
    border-radius: 16px;
    padding: 16px 32px;
    background: linear-gradient(90deg, #294474 0%, #3175AC 53.92%, #389BD8 100%);
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 0%;
    text-transform: uppercase;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    .hero-button {
        width: 100%;
        max-width: 300px;
        height: 60px;
        padding: 12px 24px;
        font-size: 18px;
    }
}

@media screen and (max-width: 576px) {
    .hero-button {
        max-width: 280px;
        height: 56px;
        padding: 10px 20px;
        font-size: 16px;
    }
}

.hero-button:hover {
    background: #FFFFFF;
    color: #1384BD;
}

.btn-custom-header:hover,
.btn-custom-header:focus,
.btn-custom-header:active,
.btn-custom-header:visited {
    background-color: #1384BD !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
}

.right-container {
    display: flex;
    gap: 20px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

@media screen and (max-width: 768px) {
    .right-container {
        gap: 10px;
    }
}

.event-button:hover,
.event-button:focus,
.event-button:active,
.event-button:visited {
    background-color: #1384BD !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
}

.otstup {
    position: relative;
    bottom: 6em;
}

@media screen and (max-width: 768px) {
    .otstup {
        bottom: 3em;
    }
}

.navbar {
    width: 90.5rem;
    margin: 0 auto;
}

@media screen and (max-width: 1200px) {
    .navbar {
        width: 100%;
        padding: 0 15px;
    }
}