
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --header-height: 5rem;
    --font-medium: 500;

    --first-color: #3e50b5;
    --white-color: #fafaff;
    --dark-color: #2a3b47;
    --text-color: #697477;

    --body-font: 'Montserrat', sans-serif;
    --big-font-size: 2.5rem;
    --h2-font-size: 1.25rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;

    --mb1: .5rem;
    --mb2: 1rem;
    --mb3: 1.5rem;
    --mb4: 2rem;

    --z-fixed: 100;
}

@media screen and (min-width: 768px) {
    :root {
        --big-font-size: 10.5rem;
        --h2-font-size: 2rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: var(--header-height) 0 0 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { text-decoration: none; color: var(--text-color); }
img { max-width: 100%; height: auto; display: block; }
.logo-img { max-width: 140; height: 110px;}
.section { padding: 3rem 0; }

.section-title {
    position: relative;
    font-size: var(--h2-font-size);
    color: var(--dark-color);
    margin: var(--mb4) 0;
    text-align: center;
}

    .section-title::after {
        position: absolute;
        content: '';
        width: 32px;
        height: 0.18rem;
        left: 0;
        right: 0;
        margin: auto;
        top: 2rem;
        background-color: var(--first-color);
    }

.bd-grid {
    max-width: 1024px;
    display: grid;
    grid-template-columns: 100%;
    grid-column-gap: 2rem;
    width: calc(100% - 2rem);
    margin-left: var(--mb2);
    margin-right: var(--mb2);
}

/*HEADER*/

.l-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: var(--first-color);
}



.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-item { margin-bottom: var(--mb4); }
.nav-link { position: relative; color: var(--dark-color); }
    .nav-link:hover { color: var(--first-color); }
.nav-logo { color: var(--white-color); }
.nav-toggle { color: var(--white-color); font-size: 1.5rem; cursor: pointer; }

.active::after {
    position: absolute;
    content: '';
    width: 100%;
    height: 0.18rem;
    left: 0;
    top: 2rem;
    background-color: var(--first-color);
}

@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 80%;
        height: 100%;
        padding: 2rem;
        background-color: rgba(255, 255, 255, .3);
        transition: .5s;
        backdrop-filter: blur(10px);
    }

    .show { right: 0; }
}

/*HOME*/

.home {
    position: relative; 
    background-color: var(--first-color); 
    overflow: hidden;
    padding-top: 2rem;
    padding-bottom: 8rem;
}
.home-container {
    height: calc(100vh - var(--header-height));
    row-gap: 5rem;
}

.home-title { 
    align-self: flex-end; 
    font-size: var(--big-font-size); 
    color: var(--white-color);
    line-height: 0.8;
}
    .home-title span { text-shadow: 0 20px 25px rgba(0, 0, 0, .5); }

.home-scroll { align-self: flex-end; padding-bottom: var(--mb4); }
.home-scroll-link { writing-mode: vertical-lr; transform: rotate(-180deg); color: var(--white-color); }
.member-row {
    display: flex;
    gap: 20px; 
    margin-bottom: 20px;
    flex-wrap: wrap;
  }

.slider-container {
    position: relative;
    max-width: 1000px;
    margin: auto;
    padding: 40px 0;
    margin-top: 120px;
    max-height: 10000000px;
  }
  
  
  
  /* КНОПКИ СЛАЙДЕРА */
  .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    color: #c9c4c4;
  }
  
  /* NEWS слайдер */
  .slider-container.news .slider-btn.prev {
    left: -60px;
  }
  .slider-container.news .slider-btn.next {
    right: -60px;
  }
  .slider-wrapper-news {
    width: 960px;
    overflow: hidden;
    margin: auto;
  }
  .slider-track-news {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 500px
  }
  
  /* MEMBERS слайдер */
  .slider-container.members .slider-btn.prev {
    left: -60px;
  }
  .slider-container.members .slider-btn.next {
    right: -60px;
  }
  .slider-wrapper-members {
    width: 960px;
    overflow: hidden;
    margin: auto;
  }
  .slider-track-members {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }
  
  /* КАРТОЧКИ */
  .slider-track-member2 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; 
    justify-content: center; 
  }
  
  .card3 {
    width: 300px;
    flex-shrink: 0;
    margin: 0 10px;
    border-radius: 16px;
    background-color: #195390;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    text-align: center;
    font-family: sans-serif;
    transition: transform 0.3s ease;
  }
  
  .card, .card2 {
    width: 300px;
    flex-shrink: 0;
    margin: 0 10px;
    border-radius: 16px;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    text-align: center;
    font-family: sans-serif;
    transition: transform 0.3s ease;
  }
  
  .card2 {
    background-color: var(--first-color);
    color: #fff;
  }
  
  .slider-wrapper-news .card:hover,
  .slider-wrapper-members .card2:hover {
    transform: scale(1.05);
  }
  
  .card-text, .card2-text {
    font-family: var(--body-font);
    padding: 16px;
    flex-grow: 1;
  }
  
  .card2-text {
    color: #fff;
  }
  
  .card-button {
    margin: 40px 0 16px 16px;
    padding: 10px;
    background-color: rgb(9, 64, 141);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    font-family: var(--body-font);
  }
  
/*ABOUT*/

.about-container { justify-items: center; row-gap: 2rem; text-align: center; }

.about-img {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    max-width: 300px;
    height: 150px;
}

    .about-img img { width: 100px; }

.about-subtitle { font-size: var(--h2-font-size); color: var(--first-color); margin-bottom: var(--mb1); }
.about-text { margin-bottom: var(--mb4); }
.about-profession { display: block; margin-bottom: var(--mb4); }
.about-social-icon { font-size: 1.4rem; margin: 0 var(--mb1); }
    .about-social-icon:hover { color: var(--first-color); }
.about-social-icon2 {
    font-size: 1.5rem;
    margin: 0 0.5rem;
    color: #ffffff;
}
.about-social-icon2:hover {
    color: #697477;
}

/*SKILLS*/

.skills-container { row-gap: 2rem; }
.skills-subtitle { color: var(--first-color); margin-bottom: var(--mb3); }

.skills-name {
    display: inline-block;
    font-size: var(--small-font-size);
    margin-right: var(--mb2);
    margin-bottom: var(--mb3);
    border-radius: .25rem;
    transition: .5s;
}

    .skills-name:hover { background-color: var(--first-color); color: var(--white-color); }

.skills-img img { border-radius: .5rem; }

/*PORTFOLIO*/

.portfolio { background-color: var(--white-color); }
.portfolio-container { justify-items: center; row-gap: 2rem; }
.portfolio-img { position: relative; overflow: hidden; }
    .portfolio-img img { border-radius: .5rem; }

.portfolio-link {
    position: absolute;
    bottom: -100%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, .3);
    border-radius: .5rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: .3s;
}

    .portfolio-img:hover .portfolio-link { bottom: 0; }
.portfolio-link-color { color: var(--dark-color); }
.member-social-icon { font-size: 1.4rem; margin: 0 var(--mb1); }
    .member-social-icon:hover { color: var(--first-color); }
/*CONTACT*/

.contact-container { row-gap: 2rem; }
.contact-subtitle { font-size: var(--normal-font-size); color: var(--first-color); }
.contact-text { display: inline-block; margin-bottom: var(--mb2); }
.contact-inputs { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 1rem; }

.contact-input {
    width: 100%;
    padding: 0.8rem;
    outline: none;
    border: 1.5px solid var(--dark-color);
    font-size: var(--normal-font-size);
    margin-bottom: var(--mb4);
    border-radius: .5rem;
}

.contact-button {
    display: block;
    background-color: var(--first-color);
    color: var(--white-color);
    padding: 0.75rem 2.5rem;
    margin-left: auto;
    border-radius: .5rem;
    border: none;
    outline: none;
    font-size: var(--normal-font-size);
    cursor: pointer;
}

/*FOOTER*/

.footer { background-color: var(--dark-color); }
.footer-container { row-gap: 2rem; }
.footer-title { font-size: var(--normal-font-size); color: var(--white-color); margin-bottom: var(--mb2); }
.footer-link { padding: 0.25rem 0; }
    .footer-link:hover { color: var(--first-color); }

.footer-social { font-size: 1.4rem; margin-right: var(--mb1); }
    .footer-social:hover { color: var(--first-color); }

/*MEDIA QUERIES*/

@media screen and (min-width: 768px) {
    body { margin: 0; }
    .section { padding-top: 4rem; }
    .section-title { margin-bottom: 3rem; }
    .section-title::after { width: 64px; top: 3rem; }

    .nav { height: calc(var(--header-height) + 1rem); }
    .nav-list { display: flex; }
    .nav-item { margin-left: var(--mb4); margin-bottom: 0; }
    .nav-toggle { display: none; }
    .nav-link { color: var(--white-color); }
        .nav-link:hover { color: var(--white-color); }
    .active::after { background-color: var(--white-color); }

    .home-container { height: 100vh; grid-template-rows: 1.7fr 1fr; row-gap: 0; }
    .home-img { width: 524px; right: 10%; }

    .about-container { grid-template-columns: repeat(2, 1fr); align-items: center; text-align: initial; padding: 4rem 0; }
    .about-img { width: 200px; height: 200px; }
        .about-img img { width: 165px; }

    .skills-container { grid-template-columns: repeat(2, 1fr); align-items: center; }

    .portfolio-container { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); column-gap: 2rem; }

    .contact-container { grid-template-columns: repeat(2, 1fr); justify-items: center; }
    .contact-form { width: 380px; }

    .footer-container { grid-template-columns: repeat(3, 1fr); justify-items: center; } 

} 

@media screen and (min-width: 1024px) {
    .bd-grid { margin-left: auto; margin-right: auto; }
}
/*educa*/
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #1e40af;
    color: white;
}
  
  .btn:hover {
    background-color: #1e3a8a;
  }
  
  /* Hero Section */
  .hero-section {
    padding: 80px 0;
    background-color: #fff;
  }
  
  .hero-content {
    display: flex;
    gap: 40px;
    align-items: center;
  }
  
  .hero-text {
    flex: 1;
  }
  
  .hero-text h1 {
    margin-top: 50px;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
  }
  
  .hero-text h2 {
    font-size: 24px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 20px;
  }
  
  .hero-text p {
    color: #6b7280;
    margin-bottom: 30px;
  }
  
  .button-group {
    display: flex;
    gap: 15px;
  }
  
  .laptop-wrapper {
    position: relative;
    width: 600px; 
    max-width: 100%;
    margin: 0 auto;
  }
  
  .laptop-img {
    width: 100%;
    display: block;
  }
  
  .gif-screen {
    position: absolute;
    top: 16%;                                             
    left: 18%; 
    width: 64%;
    height: 75%;    
    overflow: hidden;
    border-radius: 5px;
    pointer-events: none;
  }
  
  .circle-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: #3498db; 
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid #2980b9; 
  }

  .circle-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
  }
  
  .gif-inside {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  


  
  /* Statistics Section */
  .statistics-section {
    padding: 80px 0;
    background-color: #f9fafb;
  }
  
  .statistics-section h2 {
    font-size: 30px;
    margin-bottom: 40px;
  }
  
  .statistics-content {
    display: flex;
    gap: 40px;
    align-items: center;
  }
  
  .chart-container {
    flex: 2;
    display: flex;
    justify-content: center;
  }
  
  .donut-chart {
    width: 300px;
    height: 300px;
  }
  
  .donut-chart svg {
    width: 100%;
    height: 100%;
  }
  
  .donut-chart .percentage {
    font-size: 12px;
    font-weight: 700;
    fill: #1e40af;
  }
  
  .donut-chart .label {
    font-size: 5px;
    fill: #6b7280;
  }
  
  .statistics-text {
    flex: 3;
  }
  
  .statistics-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .statistics-text p {
    color: #6b7280;
    margin-bottom: 20px;
  }
  
  .stat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
  }
  
  .stat-card {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  
  .stat-value {
    color: #1e40af;
    font-size: 20px;
    font-weight: 700;
  }
  
  .stat-label {
    color: #6b7280;
    font-size: 14px;
  }
  
  /* Courses Section */
  .courses-section {
    padding: 80px 0;
    background-color: white;
  }
  
  .courses-section h2 {
    font-size: 30px;
    text-align: center;
    margin-bottom: 40px;
  }
  
  .courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  
  .course-card {
    background-color: #1e40af;
    color: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
  }
  
  .course-card h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 5px;
  }
  
  .course-level {
    color: #93c5fd;
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  .course-topics {
    margin-bottom: 20px;
    flex-grow: 1;
  }
  
  .course-topics li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 14px;
  }
  
  .course-topics li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #93c5fd;
  }
  
  .contact-btn {
    display: block;
    text-align: center;
    background-color: #60a5fa;
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
  }
  
  .contact-btn:hover {
    background-color: #3b82f6;
  }
  
  /* Footer */
  footer {
    background-color: #1e40af;
    color: white;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
  }
  
  /* Responsive Design */
  @media (max-width: 1024px) {
    .courses-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  @media (max-width: 768px) {
    .hero-content {
      flex-direction: column;
    }
    
    .statistics-content {
      flex-direction: column;
    }
    
    .courses-grid {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-cards {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 480px) {
    .courses-grid {
      grid-template-columns: 1fr;
    }
    
    .button-group {
      flex-direction: column;
    }
  }
/*news*/
.news-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

.news-item {
  background-color: white;
  border: 1px solid #ddd;
  border-top: 5px solid #004b8d;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.news-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 1px solid #ccc;
}

.news-content {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-title {
  margin: 0 0 10px;
  font-size: 1.1em;
  color: #004b8d;
}

.news-date {
  font-size: 0.85em;
  color: #888;
  margin-bottom: 10px;
}

.news-description {
  font-size: 0.95em;
  color: #333;
  flex-grow: 1;
  margin-bottom: 10px;
}

.news-link {
  align-self: flex-start;
  text-decoration: none;
  color: #004b8d;
  font-weight: bold;
  font-size: 0.95em;
}

.news-link:hover {
  text-decoration: underline;
}
.news-wrapper {
  padding: 30px 20px; 
  background-color: #f9f9f9; 
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin: 40px auto; 
  max-width: 1300px; 
}
.admin-toolbar { padding: 10px; margin-left: 975px; }
.btn { margin-right: 8px; padding: 8px 12px; border: none; border-radius: 4px; color: white; cursor: pointer; }
.create-btn { background: #28a745; size: 24px; }
.edit-btn { background: #007bff; }
.delete-btn { background: #dc3545; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.modal.hidden { display: none; }
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }
.modal-content { background: white; margin: 100px auto; padding: 20px; border-radius: 8px; width: 90%; max-width: 500px; }
.modal-actions { margin-top: 16px; text-align: right; }
.member-card.selected {
  outline: 3px solid #00aaff;
  background-color: #f0f8ff;
}
