@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    line-height: 1.75rem;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
    font-variation-settings: "wdth" 100;
}

html,
body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body>*:not(footer) {
    flex-shrink: 0;
}

body {
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
}

a {
    text-decoration: none !important;
    color: black !important;
}

img.logo-headers {
    height: 4rem;
}


.top-header {
    width: 100%;
    background-color: rgba(0, 33, 71, 1);
    padding: 0 20px;
    height: 40px;
}

.main-header2 {
    background-color: white;
    width: 100%;
    padding: 0 20px;
    height: 100px;
    
}

.top-header {
    width: 100%;
    background-color: rgba(0, 33, 71, 1);
    padding: 0 20px!important;
    height: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 14px!important;
    font-weight: 500;
}


.th-contacts {
    display: flex !important;
    color: white;
    gap: 2rem !important;
    font-size: 14px;
    font-weight: 500;
}

/* .th-contacts a {
    font-family: "Roboto", sans-serif!important;
    color: white;
} */

.top-link-button {
    padding: 0.5rem 1rem;
    background: rgb(253 200 0);
    border-radius: .6rem;
    font-weight: none;
    font-size: 1rem;
}

.main-header2 {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 20px;
    align-items: center;
    height: 100px;
    border-bottom: 2px solid rgba(0, 33, 71, 0.7);

}

.main-header {
    width: 100%;
    background-color: white;
    padding: 0 20px;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* по умолчанию в потоке */
    transition: top 0.3s ease, position 0.3s ease;
    z-index: 999;
    border-bottom: 3px solid rgba(0, 33, 71, 0.7);
}
.main-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}


.menu {
    display: flex;
    gap: 24px;
    align-items: center;
}

.menu .dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 10px 15px;
    color: #002855;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background-color: #f0f0f0;
}


.dropdown-button {
    background: transparent;
    border: none;
    color: #002855;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
}

.dropdown-button:focus,
.dropdown-button:active {
    outline: none;
    box-shadow: none;
}



.vacancies-section {
    padding: 4rem 0rem;
}




/*hero section*/
.hero-section {
    height: 700px;
    background-image:url(/img/background.jpg);
    background-blend-mode: overlay;
    background-color: rgba(0, 33, 71, 0.7);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: aliceblue;
}

.h-heading {
    font-size: 3rem;
    line-height: 1;
}

.h-paragraph {
    margin-bottom: 3rem;
    margin-top: 1rem;
}

.hero-link-button {
    padding: 1rem 2rem;
    background: rgb(253 200 0);
    border-radius: 0.5rem;
    /* text-decoration: inherit; */
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.75rem;
    margin-top: 2rem;
}

    /*plan-report section*/
    .plan-report {
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        padding: 4rem 0;
        gap: 3rem;
    }

    .box {
        text-align: center;
        background: #c9e9ff;
        padding: 2rem 2.5rem;
        flex: 1 1 32%;

        border-radius: 0.5rem;
    }

    .box h3 {
        color: rgb(0, 33, 71,);
        font-size: 1.875rem;
    }

    .box p {
        margin: 2rem 0 3rem 0;
    }

    .box a {
        color: rgb(255 255 255) !important;
        padding: 0.75rem 2rem;
        border-radius: 0.5rem;
        font-size: 1.125rem;
        line-height: 1.75;
        background-color: rgb(0 33 71);
    }

/*methodical basket section*/
.methodical-basket {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 4rem 0;
}

.box-b {
    background: rgb(253 200 0);
    padding: 3rem 3.5rem;
    border-radius: 0.5rem;
    flex: 1 1 48%;
    min-width: 320px; 
}

.methodical-basket .box-b h3 {
    font-size: 2.25rem;
    color: rgb(0 33 71);
}

.methodical-basket .box-b p {
    font-size: 1.25rem;
    margin: 2rem 0 3rem 0;
    color: rgb(0 33 71);
}

.box-b a {
    color: rgb(255 255 255) !important;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.125rem;
    line-height: 1.75;
    background-color: rgb(0 33 71);
    display: inline-block;
}

.methodical-basket img {
    max-width: 100%;
    height: auto;
    width: 550px;
    border-radius: 0.5rem;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.popular-section {
  padding: 60px 0;
}

.popular-headeing {
  font-size: 2rem;
  font-weight: 700;
  color: rgb(0 33 71);
  margin-bottom: 30px;
  text-align: center;
}

.popular-button {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.popular-page-button {
  background-color: rgb(0 33 71);
  color: white !important;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.popular-page-button:hover {
  background-color: #003366;
}




.pdf-viewer {
  padding: 2rem 0;
}

.pdf-viewer h2 {
  font-size: 1.75rem;
  color: rgb(0 33 71);
  margin-bottom: 1rem;
}

.pdf-frame {
  width: 100%;
  height: 800px; 
  border: 1px solid #ccc;
  border-radius: 0.5rem;
}

@media (max-width: 768px) {
  .pdf-frame {
    height: 500px;
  }
}


/*video section*/
.video-report {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 33, 71);
    padding: 4rem 0;
    gap: 8px;
    font-weight: 500;
    height: 500px;
}

.video-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.v-heading {
    font-size: 2.25rem;
    line-height: 2.5rem;
    margin-bottom: 2rem;
    color: rgb(255 255 255);
}

.video-box a {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #ffc107;
    color: rgba(0, 33, 71) !important;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.3s;
    text-decoration: none;
}

.video-box a:hover {
    background-color: #e0a800;
    transform: scale(1.1);
}

/* news-section */

.news-section {
    margin: 0;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.new-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.news-title {
    color: rgba(0, 33, 71);
    font-size: 32px;
    margin-bottom: 30px;
}

.news-container {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-content {
    padding: 15px;
}

.news-date {
    color: #fdc800;
    font-size: 14px;
    margin-bottom: 8px;
}

.news-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 8px;
}

.heading-title {
    font-size: 30px;
    font-weight: bold;
    margin: 0 0 8px;
}

.news-desc {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
}

.read-more {
    font-size: 14px;
    color: #002147;
    text-decoration: none;
    font-weight: bold;
}

.read-more::after {
    content: ' →';
}

.news-button a {
    color: white !important;
}

.news-button {
    margin-top: 30px;
    padding: 10px 20px;
    background: #002147;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.news-button:hover {
    background: #001530;
}
#pagination button.active {
    background-color: #002147;
    color: white;
}

.filter-container {
    margin-top: 4rem;
}

/* news-detail */
/* Стили для подробной новости */
#news-detail {
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #002147; /* твой фирменный цвет */
}

#news-detail h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #002147;
}

#news-detail p {
  margin-bottom: 1rem;
}

#news-detail img {
  object-fit: fill;
  width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 8px;
}

#news-detail ul, #news-detail ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

#news-detail li {
  margin-bottom: 0.5rem;
}



/* events */
.events {
    margin: 0;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.events-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

/* partners section */
.partners {
    margin: 0;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.carousel-wrapper {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.partner-card {
    min-width: 25%;
    margin: 0 10px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-decoration: none;
    color: #002147;
    padding: 1rem;
}

.partner-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.partner-card p {
    font-weight: bold;
    margin-top: 10px;
}


.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}




/*footer*/
footer {
    background: rgba(0, 33, 71);
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    margin-top: auto;
    position: relative;
}



footer section {
    background: rgba(0, 33, 71);
    display: flex;
    justify-content: space-between;
}

.footer-1 {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    align-items: center;
    height: 150px;
}

.footer-header {
    color: #f4f4f4;
    max-width: 400px;
    margin: 0;
    padding: 0;
    font-size: 1rem;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
    display: block;
}
.footer-header {
    font-size: clamp(0.8rem, 2vw, 1rem);
}


img.logo-footer {
    height: 4rem;
}

footer .footer-p {
    text-align: center;
    text-decoration: none;
    color: white;
    background: rgb(3, 28, 57);
    margin: 0;
    font-size: .8rem;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.soc-nets {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    font-size: 2rem;
}

.counter-f {    
    color: white;
    font-size: .8rem;
    text-align: center;
}


/* contact html */
.contact-section {
    margin: 100px;
}
.contact-section .card {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-section h4 {
    color: #002147;
}

.contact-section i {
    min-width: 32px;
}

/* history html */
.history-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    line-height: 1.75rem;
}

.history-title {
    color: #002147;
    font-size: 2rem;
}

.history-card p+p {
    margin-top: 1rem;
}



/* management html */
.team-section {
    padding: 40px 0;
    margin: 100px;
}

.team-title {
    font-size: 2rem;
    color: #002147;
    text-align: center;
    margin-bottom: 2rem;
}

.team-cards {
    display: flex;
    justify-content: space-between;

}

.team-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 300px;
}

.team-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.team-info h3 {
    font-size: 1.125rem;
    color: #002147;
    margin-bottom: 0.5rem;
}

.team-info .position {
    color: #002147;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.team-info p,
a {
    font-size: 0.85rem;
    margin: 0.25rem 0;
}

.team-info strong {
    color: #fdc800;
}

.carousel-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.team-card-tech {
    flex: 0 0 25%;
    /* 4 карточки на экране */
    padding: 10px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.team-card-tech img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}



.carousel-controls {
    text-align: center;
    margin-top: 20px;
}

.carousel-btn {
    background-color: #002147;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-btn:hover {
    background-color: #fdc800;
    color: #002147;
}


/* statistic html */
.stats-section .accordion-button {
    background: #f7f9fc;
}

.stats-section table th {
    white-space: nowrap;
}

.stats-section table td {
    vertical-align: top;
}

.stats-section .table-responsive {
    border-radius: 12px;
}

/* schedule html */
.course-schedule {
    padding: 4rem 0;
    margin: 100px;
}

.schedule-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 2.5rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.schedule-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #002147;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.schedule-header .icon {
    font-size: 1.75rem;
    color: #fdc800;
}

.schedule-desc {
    font-size: 1rem;
    color: #333;
    margin-bottom: 2rem;
}

.schedule-links {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.schedule-item {
    background-color: #f7f9fc;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.schedule-item .icon {
    font-size: 1.25rem;
    color: #fdc800;
    margin-right: 0.5rem;
}

.file-link {
    font-weight: 600;
    color: #002147;
    text-decoration: none;
    margin-right: auto;
}

.file-meta {
    font-size: 0.9rem;
    color: #555;
}

.view-link {
    color: #002147;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.view-link:hover {
    text-decoration: underline;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 24px;
    vertical-align: middle;
}

.schedule-card .icon {
    color: #fdc800;
    font-size: 28px;
}

.view-link .material-symbols-outlined {
    font-size: 20px;
    color: #002147;
}

/* methodical-basket html */
.methodical-card * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.60);
}

.methodical-basket-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px 0;
    max-width: 100%;
    width: 100%;
}

.methodical-card {
    flex: 1;
    perspective: 1000px;
    max-width: 400px;
}

.methodical-card-inner {
    position: relative;
    width: 100%;
    height: 250px;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.methodical-card-front,
.methodical-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backface-visibility: hidden;
    border-radius: 10px;
}

.methodical-card-front {
    color: white;
    text-align: center;
}

.methodical-card-front i {
    font-size: 48px;
    margin-bottom: 15px;
}

.methodical-card-back {
    color: white;
    transform: rotateY(180deg);
}

.methodical-card:hover .methodical-card-inner {
    transform: rotateY(180deg);
}

.methodical-card-back a {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    background-color: #002147;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.methodical-card-back a:hover {
    background-color: #001530;
    transform: scale(1.05);
}

/* PISA html */
.resource-section {
    padding: 40px 0;
    margin: 100px;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-card {
    background-color: #fdc800;
    color: #002147;
    border-radius: 12px;
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    transition: transform 0.2s ease;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.video-card {
    padding: 0;
    background: none;
    box-shadow: none;
}

.video-card iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
}

/* social-networks html */

.social-section {
    padding: 40px 0;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.social-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: white !important;
    text-decoration: none !important;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.social-card i {
    font-size: 1.5rem;
}

/* Цвета по соцсетям */
.social-card.telegram {
    background-color: #0088cc;
}

.social-card.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-card.youtube {
    background-color: #ff0000;
}

.social-card.facebook {
    background-color: #3b5998;
}

.social-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* council-docs html */

/* Стиль превью */
.modal-trigger {
    width: 350px;
    cursor: zoom-in;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.position-section {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin: 100px;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.modal-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.modal-content {
    max-width: 95%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.close:hover {
    color: #fdc800;
}

/* scroll up button */
#scrollToTopBtn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 999;
    background-color: #fdc800;
    color: #002147;
    border: none;
    outline: none;
    width: 50px;
    height: 50px;
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#scrollToTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#scrollToTopBtn:hover {
    background-color: #e6b800;
}

/* technologies html */
.accordion {
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    background: #d3e3ff;
}

.accordion-button {
    width: 100%;
    padding: 1rem;
    background: #cce0ff;
    color: #002147;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-title {
    flex: 1;
}

.accordion-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    transform: rotate(0deg);
    /* ▼ по умолчанию */
}

.accordion-button.active .accordion-icon {
    transform: rotate(180deg);
    /* ▲ при открытии */
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    background: #fff;
    padding: 0 1rem;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content p {
    margin: 1rem 0;
}

.accordion-button::after {
    display: none !important;
}

.corruption-button {
    background-color: #002147;
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    display: inline-block;
    text-align: center;
}

.corruption-button:hover {
    background-color: #001530;
}

.corruption-btn {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}
/* Адаптивность для планшетов */
@media (max-width: 1024px) {
  .container {
    padding: 0 16px;
  }
  .plan-report,
  .methodical-basket {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .methodical-basket img {
    width: 100%;
  }
  .team-cards {
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }
  .methodical-basket .box-b {
    width: 100%;
    color: rgb(255 255 255) !important;
  }

  .methodical-card-front,
  .methodical-card-back {
    color: black;
    max-width: auto;
color: rgb(255 255 255) !important;
  }

  .methodical-basket-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* отступы между карточками */
  }

  .methodical-card {
    width: 100% !important; /* карточка занимает всю ширину контейнера */
    max-width: none !important;
  }

}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .top-header,
  .main-header,
  .main-header2 {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 10px 16px;
  }

  .menu {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .hero-section {
    height: auto;
    padding: 60px 20px;
    text-align: center;
  }
  .h-heading {
    font-size: 2rem;
  }
  .h-paragraph {
    font-size: 1rem;
  }

  .plan-report {
    flex-direction: column;
    gap: 2rem;
  }

  .methodical-basket {
    display: flex;
    flex-direction: column !important;
    gap: 2rem;
  }

  .methodical-basket .box-b {
    width: 100%;
    padding: 2rem;
  }

  .methodical-basket img {
    width: 100%;
  }
  .methodical-basket h5 {
    color: white !important;
    color: rgb(255 255 255) !important;
  }

  .video-report {
    height: auto;
    padding: 2rem 1rem;
  }

  .news-section {
    padding: 20px;
  }

  .team-section,
  .resource-section,
  .course-schedule,
  .position-section,
  .contact-section {
    margin: 20px;
    padding: 20px 0;
  }

  .team-cards {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .team-card {
    width: 100%;
  }

  .methodical-card {
    flex-direction: column;

    max-width: 100%;
  }

  .methodical-card-front,
  .methodical-card-back {
    color: black;
    max-width: auto;
color: rgb(255 255 255) !important;
  }

  .methodical-basket-cards {
    flex-direction: column;
    align-items: center;
  }

  .carousel-track {
    flex-wrap: nowrap;
  }

  .team-card-tech {
    flex: 0 0 80%;
  }

  .schedule-card {
    padding: 1.5rem;
  }

  .footer-1 {
    flex-direction: column;
    gap: 1rem;
    height: auto;
    text-align: center;
  }
  section:not(:last-child){
    margin-bottom: 3rem;
  }

  .methodical-basket-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* отступы между карточками */
  }

  .methodical-card {
    width: 100% !important; /* карточка занимает всю ширину контейнера */
    max-width: none !important;
  }
}

/* Мелкие телефоны */
@media (max-width: 480px) {
  .h-heading {
    font-size: 1.75rem;
  }

  .hero-link-button {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }

  .box-b {
    padding: 1.5rem;
  }

  .news-title {
    font-size: 1.5rem;
  }

  .resource-card {
    min-height: 150px;
  }

  .schedule-header {
    font-size: 1.25rem;
  }

  .social-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .soc-nets {
    gap: 1rem;
    font-size: 1.5rem;
    flex-wrap: wrap;
  }

  footer .footer-p {
    font-size: 0.75rem;
  }

  #scrollToTopBtn {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .methodical-card {
    flex-direction: column;

    max-width: 100%;
  }

  .methodical-card-front,
  .methodical-card-back {
    color: black;
    max-width: auto;
color: rgb(255 255 255) !important;
  }

  .methodical-basket-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* отступы между карточками */
  }

  .methodical-card {
    width: 100% !important; /* карточка занимает всю ширину контейнера */
    max-width: none !important;
  }


}
/* Бургер кнопка по умолчанию */
.burger-btn {
  display: none; /* по умолчанию скрыта */
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  position: absolute; /* будем позиционировать справа */
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.burger-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #002147;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Анимация крестика */
.burger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger-btn.active span:nth-child(2) {
  opacity: 0;
}
.burger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Меню */
@media (max-width: 768px) {
  .burger-btn {
    display: flex;
  }

  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    background-color: #fff;
    gap: 1.5rem;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .menu.active {
    right: 0;
  }

  .menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #002147;
    align-self: flex-end;
    cursor: pointer;
  }

  .menu a {
    font-size: 1.2rem;
    color: #002147;
    text-decoration: none;
  }

  .methodical-card-front,
  .methodical-card-back {
    color: black;
    max-width: auto;
color: rgb(255 255 255) !important;
  }

  .methodical-basket-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* отступы между карточками */
  }

  .methodical-card {
    width: 100% !important; /* карточка занимает всю ширину контейнера */
    max-width: none !important;
  }

}
/* Меню адаптивное */
@media (max-width: 768px) {
  .burger-btn {
    display: flex;
  }

  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    flex-direction: column;
    justify-content: center;
    background-color: #fff;
    gap: 1.5rem;
    padding: 2rem;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .menu.active {
    right: 0;
  }

  .methodical-card-front,
  .methodical-card-back {
    color: black;
    max-width: auto;
color: rgb(255 255 255) !important;
  }

  .methodical-basket-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* отступы между карточками */
  }

  .methodical-card {
    width: 100% !important; /* карточка занимает всю ширину контейнера */
    max-width: none !important;
  }

}
@media (max-width: 768px) {
  .top-header {
    display: none;
  }

  .methodical-card-front,
  .methodical-card-back {
    color: black;
    max-width: auto;
color: rgb(255 255 255) !important;
  }

  .methodical-basket-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* отступы между карточками */
  }

  .methodical-card {
    width: 100% !important; /* карточка занимает всю ширину контейнера */
    max-width: none !important;
  }

}

.btn-short-text {
  display: none;
}

@media (max-width: 768px) {
  .btn-full-text {
    display: none;
  }

  .btn-short-text {
    display: inline;
  }

  .methodical-basket-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* отступы между карточками */
  }

  .methodical-card {
    width: 100% !important; /* карточка занимает всю ширину контейнера */
    max-width: none !important;
  }

  .methodical-card-front,
  .methodical-card-back {
    color: black;
    max-width: auto;
color: rgb(255 255 255) !important;
  }

}




@media screen and (max-width: 768px) {
    footer section {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .footer-1 {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .soc-nets {
        justify-content: center;
        padding-top: 1rem;
    }

    .footer-header {
        padding-top: 1rem;
    }

  .methodical-card-front,
  .methodical-card-back {
    color: black;
    max-width: auto;
color: rgb(255 255 255) !important;
  }

  .methodical-basket-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* отступы между карточками */
  }

  .methodical-card {
    width: 100% !important; /* карточка занимает всю ширину контейнера */
    max-width: none !important;
  }

}

