* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: white;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Header - header.png на всю ширину */
.header {
    width: 100%;
}

.header-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Header2 - белая полоса с объектами */
.header2 {
    width: 100%;
    background-color: white;
    padding: 40px 0;
    display: flex;
    justify-content: center;
}

.header2-container {
    width: 90%;
    display: flex;
    align-items: stretch;
    gap: 0;
}

/* Зеленый прямоугольник - занимает 30% от ширины контейнера */
.green-rectangle {
    background-color: #1C7134;
    width: 30%;
    display: flex;
    align-items: center;
    padding: 40px 20px;
    position: relative;
}

.nav-menu {
    width: 100%;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 0;
    padding: 0;
    align-items: flex-start;
    width: 100%;
}

.nav-menu li {
    margin: 0;
    width: 100%;
    position: relative;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    transition: opacity 0.3s;
    display: inline-block;
    padding: 5px 0;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.nav-menu a.active {
    text-decoration: underline;
}

/* Белые полосы для кнопок с эффектом затухания */
.stripe-line {
    position: absolute;
    left: -20px;
    width: calc(50% + 20px);
    height: 2px;
    background: linear-gradient(to right, white, rgba(255, 255, 255, 0));
}

.top-stripe-btn {
    top: -15px;
}

.middle-stripe-btn {
    top: -20px;
}

.middle-stripe-btn2 {
    top: -20px;
}

.bottom-stripe-btn {
    bottom: -15px;
}

/* Frame 2.png - занимает 70% от ширины контейнера, прилегает к зеленому прямоугольнику */
.frame2-wrapper {
    width: 70%;
    display: flex;
    align-items: stretch;
}

.frame2-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Основной контент */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    overflow-x: hidden;
}

.main-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    padding: 40px 0;
    flex-wrap: wrap;
}

/* Левая колонка */
.content-left {
    flex: 1.5;
    min-width: 0;
    position: relative;
}

/* Зеленые полосы - динамическая ширина по длине текста */
.green-stripe {
    height: 3px;
    background-color: #1C7134;
    width: 0;
    transition: width 0.3s ease;
}

.top-green-stripe {
    margin-bottom: 30px;
}

.bottom-green-stripe {
    margin-top: 30px;
}

.content-left h1 {
    font-size: 36px;
    color: #1C7134;
    margin-bottom: 25px;
    font-weight: 600;
    word-wrap: break-word;
}

.description {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
    word-wrap: break-word;
}

/* Правая колонка */
.content-right {
    flex: 1;
    min-width: 0;
    align-self: flex-start;
    position: sticky;
    top: 20px;
    transition: all 0.3s ease;
}

.contacts-card {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
}

.sticky-card {
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.sticky-card.scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contacts-card h2 {
    font-size: 28px;
    color: #1C7134;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #1C7134;
    display: inline-block;
}

.contact-section {
    margin-bottom: 30px;
}

.contact-section h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-section p {
    margin-bottom: 8px;
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

.director-name {
    font-weight: 600;
    color: #1C7134;
    margin-bottom: 12px;
    font-size: 16px;
}

.contact-section .address {
    color: #666;
}

.contact-section .email {
    color: #1C7134;
    text-decoration: underline;
}

.contact-section .phone {
    color: #666;
}

.director {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

/* Footer */
footer {
    background-color: #1C7134;
    width: 100%;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: stretch;
    gap: 80px;
}

/* Логотип растянут от верхней до нижней границы */
.footer-logo {
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
}

.footer-white-logo {
    height: auto;
    width: auto;
    max-height: 100px;
    object-fit: contain;
}

/* Дирекция по центру, занимает такую же высоту как лого */
.footer-director {
    flex: 1;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-director h4 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.footer-director p {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.9;
}

/* Контакты с заголовком */
.footer-contacts {
    flex-shrink: 0;
    text-align: left;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-contacts h4 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.footer-contacts p {
    font-size: 13px;
    margin-bottom: 4px;
    opacity: 0.9;
}

.footer-contacts p:last-child {
    margin-bottom: 0;
}

/* Стили для кликабельных элементов */
.clickable-address,
.clickable-email,
.clickable-phone {
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.clickable-address:hover,
.clickable-email:hover,
.clickable-phone:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Для футера - убираем изменение цвета текста при наведении */
footer .clickable-email:hover,
footer .clickable-phone:hover,
footer .clickable-address:hover {
    color: white;
    opacity: 0.8;
}

/* Для основного контента - сохраняем изменение цвета */
.content-right .clickable-email:hover {
    color: #1C7134;
}

.content-right .clickable-phone:hover {
    color: #1C7134;
}

.content-right .clickable-address:hover {
    color: #1C7134;
}

/* Стили для всплывающего уведомления о копировании */
.copy-tooltip {
    position: fixed;
    background-color: #1C7134;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1000;
    pointer-events: none;
    animation: fadeOut 1.5s ease forwards;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    70% {
        opacity: 0.7;
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
        visibility: hidden;
    }
}

/* Стили для страницы абитуриентам */
.abiturient-text {
    margin-bottom: 30px;
}

.green-subtitle {
    font-size: 24px;
    color: #1C7134;
    margin: 30px 0 20px 0;
    font-weight: 600;
    line-height: 1.4;
}

/* Убираем полоску у подзаголовков */
.green-subtitle.no-stripe::after {
    display: none;
}

.why-choose-title {
    margin-top: 40px;
}

.advantages-list {
    margin: 20px 0 30px 0;
}

.advantages-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.advantages-ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.5;
    color: #555;
}

/* Зеленые жирные точки */
.advantages-ul li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: #1C7134;
    font-weight: bold;
    font-size: 18px;
}

.advantages-ul li:last-child {
    margin-bottom: 0;
}

.directions-list {
    margin-top: 20px;
}

/* Центральный блок с призывом */
.call-to-action {
    text-align: center;
    margin: 50px 0 30px 0;
    padding: 20px 0;
}

.green-title-center {
    font-size: 32px;
    color: #1C7134;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.black-subtitle-center {
    font-size: 20px;
    color: #333;
    font-weight: 500;
    margin: 0;
}

.clickable-phone-center {
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    color: #1C7134;
    font-weight: 600;
    text-decoration: underline;
}

.clickable-phone-center:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .header2-container {
        width: 95%;
    }
    
    .green-rectangle {
        padding: 30px 15px;
    }
    
    .nav-menu ul {
        gap: 20px;
    }
    
    .nav-menu a {
        font-size: 18px;
    }
    
    .stripe-line {
        left: -15px;
        width: calc(50% + 15px);
    }
}

@media (max-width: 768px) {
    .header2 {
        padding: 30px 0;
    }
    
    .header2-container {
        flex-direction: column;
        width: 90%;
        gap: 20px;
    }
    
    .green-rectangle {
        width: 100%;
        padding: 30px 20px;
    }
    
    .nav-menu ul {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
        flex-wrap: wrap;
        align-items: center;
    }
    
    .nav-menu li {
        position: relative;
    }
    
    .stripe-line {
        display: none;
    }
    
    .frame2-wrapper {
        width: 100%;
    }
    
    .frame2-image {
        max-height: 200px;
        object-fit: contain;
    }
    
    main {
        padding: 0 20px;
    }
    
    .main-container {
        flex-direction: column;
        gap: 40px;
        padding: 30px 0;
    }
    
    .content-left h1 {
        font-size: 28px;
    }
    
    .contacts-card {
        padding: 20px;
    }
    
    .contacts-card h2 {
        font-size: 24px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 25px;
        text-align: center;
        padding: 0 20px;
        align-items: center;
    }
    
    .footer-logo {
        width: 150px;
    }
    
    .footer-white-logo {
        width: 100%;
        height: auto;
    }
    
    .footer-director {
        width: 100%;
    }
    
    .footer-contacts {
        text-align: center;
        width: 100%;
    }
    
    /* Отключаем sticky на мобильных */
    .content-right {
        position: static;
        top: auto;
    }
    
    .sticky-card.scrolled {
        box-shadow: none;
    }
    
    .green-subtitle {
        font-size: 20px;
        margin: 25px 0 15px 0;
    }
    
    .why-choose-title {
        margin-top: 30px;
    }
    
    .advantages-ul li {
        font-size: 14px;
        padding-left: 24px;
        margin-bottom: 12px;
    }
    
    .advantages-ul li::before {
        font-size: 16px;
    }
    
    .green-title-center {
        font-size: 26px;
    }
    
    .black-subtitle-center {
        font-size: 18px;
    }
    
    .call-to-action {
        margin: 40px 0 25px 0;
    }
}

@media (max-width: 640px) {
    .nav-menu ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu a {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .content-left h1 {
        font-size: 24px;
    }
    
    .description {
        font-size: 14px;
    }
    
    .contacts-card h2 {
        font-size: 22px;
    }
    
    .contact-section h3 {
        font-size: 18px;
    }
    
    .green-subtitle {
        font-size: 18px;
        margin: 20px 0 12px 0;
    }
    
    .why-choose-title {
        margin-top: 25px;
    }
    
    .advantages-ul li {
        font-size: 13px;
        padding-left: 22px;
        margin-bottom: 10px;
    }
    
    .advantages-ul li::before {
        font-size: 14px;
    }
    
    .green-title-center {
        font-size: 22px;
    }
    
    .black-subtitle-center {
        font-size: 16px;
    }
    
    .call-to-action {
        margin: 30px 0 20px 0;
    }
} 
/* Стили для списка направлений подготовки */
.directions-list {
    margin: 20px 0 30px 0;
}

.directions-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.directions-ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    font-size: 16px;
    line-height: 1.5;
    color: #555;
}

/* Зеленые жирные точки для направлений */
.directions-ul li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: #1C7134;
    font-weight: bold;
    font-size: 18px;
}

.directions-ul li:last-child {
    margin-bottom: 0;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .directions-ul li {
        font-size: 14px;
        padding-left: 24px;
        margin-bottom: 12px;
    }
    
    .directions-ul li::before {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .directions-ul li {
        font-size: 13px;
        padding-left: 22px;
        margin-bottom: 10px;
    }
    
    .directions-ul li::before {
        font-size: 14px;
    }
}
/* Стили для кликабельных подзаголовков */
.program-links {
    display: flex;
    gap: 30px;
    margin: 20px 0 30px 0;
    flex-wrap: wrap;
}

.program-link {
    display: inline-block;
    font-size: 20px;
    font-weight: 600;
    color: #1C7134;
    text-decoration: none;
    padding: 8px 0;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.program-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1C7134;
    transition: width 0.3s ease;
}

.program-link:hover::after {
    width: 100%;
}

.program-link:hover {
    opacity: 0.8;
}

/* Стили для списка направлений - используем тот же класс что и для преимуществ */
.directions-list {
    margin: 20px 0 30px 0;
}

.directions-list .advantages-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.directions-list .advantages-ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 14px;
    font-size: 16px;
    line-height: 1.5;
    color: #555;
}

.directions-list .advantages-ul li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: #1C7134;
    font-weight: bold;
    font-size: 18px;
}

.directions-list .advantages-ul li:last-child {
    margin-bottom: 0;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .program-links {
        gap: 20px;
        margin: 15px 0 25px 0;
    }
    
    .program-link {
        font-size: 18px;
    }
    
    .directions-list .advantages-ul li {
        font-size: 14px;
        padding-left: 24px;
        margin-bottom: 12px;
    }
    
    .directions-list .advantages-ul li::before {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .program-links {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .program-link {
        font-size: 16px;
    }
    
    .directions-list .advantages-ul li {
        font-size: 13px;
        padding-left: 22px;
        margin-bottom: 10px;
    }
    
    .directions-list .advantages-ul li::before {
        font-size: 14px;
    }
}
/* Стили для страницы bacalavr.html */
.full-width-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    overflow-x: hidden;
}

.full-width-container {
    width: 100%;
    padding: 40px 0;
}

.page-title {
    font-size: 36px;
    color: #1C7134;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
}

.program-content {
    width: 100%;
}

.orange-subtitle {
    font-size: 24px;
    color: #FF8C00;
    margin: 30px 0 20px 0;
    font-weight: 600;
}

.section-subtitle {
    font-size: 22px;
    color: #1C7134;
    margin: 25px 0 10px 0;
    font-weight: 600;
}

.study-duration {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

/* Стили для таблиц */
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0 30px 0;
}

.admission-table,
.scores-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admission-table th,
.scores-table th {
    background-color: #1C7134;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #000;
}

.admission-table td,
.scores-table td {
    padding: 10px 15px;
    border: 1px solid #000;
    color: #333;
}

.admission-table tbody tr:hover,
.scores-table tbody tr:hover {
    background-color: #f5f5f5;
}

/* Стили для ссылки на портал */
.admission-link {
    margin-top: 20px;
}

.clickable-link {
    color: #1C7134;
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.clickable-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .full-width-main {
        padding: 0 20px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .orange-subtitle {
        font-size: 20px;
    }
    
    .section-subtitle {
        font-size: 18px;
    }
    
    .admission-table th,
    .admission-table td,
    .scores-table th,
    .scores-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 24px;
    }
    
    .orange-subtitle {
        font-size: 18px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .admission-table th,
    .admission-table td,
    .scores-table th,
    .scores-table td {
        padding: 6px 8px;
        font-size: 11px;
    }
}
/* Стили для выделенного текста */
.highlight-text {
    font-size: 17px;
    font-weight: 600;
    color: #1C7134;
}

.highlight-text-uppercase {
    font-size: 17px;
    font-weight: 600;
    color: #1C7134;
    text-transform: uppercase;
}

.uppercase {
    text-transform: uppercase;
}

/* Стили для программ в таблицах */
.program-name {
    font-size: 12px;
    color: #666;
    font-style: italic;
    display: inline-block;
    margin-top: 4px;
}

/* Адаптация для списка направлений с программами */
.advantages-ul li strong {
    color: #1C7134;
    font-size: 16px;
}

.advantages-ul li {
    margin-bottom: 20px;
}

.advantages-ul li br {
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .highlight-text,
    .highlight-text-uppercase {
        font-size: 15px;
    }
    
    .advantages-ul li strong {
        font-size: 14px;
    }
    
    .program-name {
        font-size: 10px;
    }
}
/* Оранжевый текст */
.orange-text {
    color: #FF8C00;
}

.orange-subtitle {
    font-size: 24px;
    color: #FF8C00;
    margin: 30px 0 20px 0;
    font-weight: 600;
}

.orange-subtitle.uppercase {
    text-transform: uppercase;
}

/* Стили для ссылки в заголовке */
.green-subtitle .clickable-link {
    color: #1C7134;
    text-decoration: underline;
    font-size: inherit;
    font-weight: inherit;
}

.green-subtitle .clickable-link:hover {
    opacity: 0.8;
    text-decoration: none;
}
/* Стили для примечания в таблицах */
.table-note {
    font-size: 11px;
    font-weight: normal;
    color: #ffffff;
    display: block;
    margin-top: 3px;
    text-align: right;
}

.admission-table th {
    vertical-align: top;
    background-color: #1C7134;
    color: white;
    position: relative;
}

.admission-table th .table-note {
    color: #ffffff;
    opacity: 0.9;
}

/* Альтернативный вариант: выравнивание содержимого ячейки */
.admission-table th {
    text-align: left;
}

.admission-table th .table-note {
    text-align: right;
    width: 100%;
}