:root {
  --main-color: rgb(32, 170, 210);
  --acent-color: #f75b00;
  --dark: #3a3a3a;
}

html {
 font-size: 16px;
}

*{
    box-sizing: border-box;
    font-family: 'TT Firs Neue', sans-serif;
}

body {
    padding-bottom: 30px;
}

#countdown {
    display: flex;
    justify-content: center;
    padding-top: 30px;
    font-size: 1.5rem;
    
}

.container {
    max-width: 1270px;
    padding: 0 15px;
    margin: 0 auto;
}

.flex {
    display: flex;
}

.header {
    margin-bottom: 50px;
}
.header-nav {
    display: flex;
    justify-content: space-between;
    padding: 30px 0px;
}

.header-logo {
    width: 250px;
}

.header-nav-link {
    display: flex;
    align-items: center;
}

.socials {
    margin-right: 50px;
}

.socials-list {
    display: flex;
}

.social-list-item {
    width: 45px;
}

.social-list-item:not(:last-child) {
    margin-right: 15px; 
}

.telephone {
    font-size: 1.5rem;
    color: var(--dark);
    font-weight: 400;
}

.telephone:hover {
    color: var(--main-color);
    text-decoration: underline;
}

.header-hero {
    display: flex;
    overflow: hidden; /* Оставить, чтобы обрезать выступающие части */
    min-height: 560px; /* min-height вместо height */
    height: auto; /* Разрешить расти */
    position: relative; /* Добавить контекст позиционирования */
}

.header-hero-left {
    width: 45%;
    text-wrap: wrap;
}

.header-title {
    color: var(--main-color);
    font-size: 3.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    padding-top: 80px;
    font-weight: 600;
}

.header-descr {
    font-size:  30px;
    margin-bottom: 40px;
}

.header-btn {
    background-color: var(--main-color);
    color: rgb(255, 255, 255);
    width: 350px;
    height: 80px;
    font-size: 20px;
    border-radius: 20px;
    transition: background-color 0.25s ease-in;
}

.header-btn:hover {
    background-color: var(--acent-color);
}

.hero-min {
    display: none;
}

.header-hero-right {
    position: relative;
    width: 60%;
    min-height: 560px; /* Минимальная высота для декстопа */
}

.header-hero-round {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    top: 50px;
}

.hero {
    position: absolute;
    z-index: 2;
    width: 470px;
    height: 700px;
    left: 50px;
    max-width: 100%; /* Адаптивность */
    object-fit: contain;
    object-position: bottom; 
}


.hello {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hello-text {
    text-align: center;
    margin-bottom: 40px;
}


.korobov-name {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 30px;
}

.repetitor{
    font-size: 1.7rem;
    margin-bottom: 10px;
}

.spec{
    font-size: 1.2rem;
    font-weight: 200;
}

.hello {
    margin-bottom: 30px;
}

.hello-regaly-box {
    display: flex;
    position: relative;
    width: 85vw;
    max-width: 900px;
    height: 460px;
    background-color: rgb(32, 170, 210);
    border-radius: 30px;
    margin-bottom: 25px;
}

.regaly-photo {
    position: absolute;
    display: block;
    width: 290px;
    height: 480px;
    bottom: 0px;
    left: 9%;
}

.regaly-text {
    position: absolute;
    color: aliceblue;
    width: 45%;
    font-size: 1.2rem;
    line-height: 30px;
    right: 8%;
    top: 10%;
}

.regaly-photo-min {
    display: none;
}

.achiv-block{
display: flex;
justify-content: center;
margin-bottom: 30px;

}

.card {
    text-align: center;
    width: calc(70% / 3);
}

.card__image {
    margin-bottom: 10px;
}

.card__title {
    font-weight: 550;
    margin-bottom: 10px;
}

.card__description {
    font-weight: 300;
    margin-bottom: 10px;
}

.about-me {
    display: flex;
    align-items: center;
}

.about-me-wrapper {
    margin-bottom: 70px;
}


.about-me__title {
    font-size: 2.5rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 15px;
}

.about-me__description {
    text-align: center;
    margin-bottom: 25px;
}

.about-me-box {
    display: flex;
    position: relative;
    width: 85vw;
    max-width: 970px;
    height: 460px;
    background-color: rgb(32, 170, 210);
    border-radius: 30px;
    margin-bottom: 30px;
    overflow: hidden; /* Чтобы картинка не вылезала за скругления */
}

.about-me-img {
    width: 60%;
    height: 80%;
    align-self: flex-end; /* Прижать к низу */
    border-bottom-left-radius: 30px;
    object-fit: cover; /* Чтобы фото заполняло область без искажений */
}

.about-me-text {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px;
    box-sizing: border-box;
    color: white;
}

.about-me-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.about-me-box--reversed {
    flex-direction: row-reverse;

}

.about-me-img--reversed {
    width: 40%;
    height: 90%;
    align-self: flex-end; /* Прижать к низу */
    border-bottom-left-radius: 30px;
    object-fit: contain;
}

.about-me-box--reversed .about-me-img {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 30px;
}


.about-me-text--reversed {
    width: 50%;
}

.about-me-img--globus {
    width: 50%;
    padding-left: 3%;
    align-self: center; 
    object-fit: contain;
    align-self: center;
}

.about-me-images {
    position: relative;
    width: 40%;
    height: 100%;
    align-self: flex-end;
    object-fit: cover; 
    margin-left: auto;
    margin-right: 0;
}

.about-me-text--mgu {
    width: 65%;                        /* чуть больше места под длинный текст */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
    color: white;
}

.about-me-img--mgu1,
.about-me-img--mgu2 {
    position: absolute;
    bottom: 0;
    height: 90%;
    object-fit: contain;
}

.about-me-img--mgu1 {
    left: 5%;
    width: 75%;
    z-index: 2;
}

.about-me-img--mgu2 {
    right: 0;
    bottom: -1%;
    width: 60%;
    z-index: 1;
    border-bottom-right-radius: 30px;
    overflow: hidden; 
    margin-right: -8%;
}

.about-me-img--min {
    display:none;
    width : 60%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 8%;
}

.main {
    position: relative;
    z-index: 10;
    background: white;
    clear: both;
}

.diploms-swiper {
    max-width: 1100px;
    max-height: none;
}
      
.diploms-title  {
    font-size: 2.5rem;
    font-weight: 500;
    text-align: center;
}

.diploms-swiper .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}
        
.diploms-swiper .swiper-slide img{
    display: block;
    width: 100%;
    max-height: 1000;
    object-fit: contain;
}

.swiper-button-next,
.swiper-button-prev {
    color: rgba(255,255,255,0.8);
    background: var(--main-color); 
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 30px;
}

.diploms-pagination {
    position: relative;
    margin-top: 25px;
    text-align: center;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--main-color);
}
        
.swiper-pagination-bullet-active {
    width: 12px;
    height: 12px;
    background: var(--main-color);
}


.section-diploms {
    margin-bottom: 70px;
}


.science-title  {
    font-size: 2.5rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 30px;
}

.section-science {
    margin: 50px;
}

.science-swiper {
    max-width: 900px;
    max-height: none; /* Убираем ограничение высоты контейнера, чтобы пагинация поместилась */
    /* height: 600px;  — это ограничение лучше убрать или заменить */
}

.science-swiper .swiper-wrapper {
    max-height: 700px; /* Ограничиваем только область слайдов */
}

.science-swiper .swiper-slide img {
    display: block;
    width: 100%;
    max-height: 700px;
    object-fit: contain;
}

.science-pagination {
    position: relative;
    margin-top: 50px;
    text-align: center;
}

.principe-title {
    font-size: 2.5rem;
    font-weight: 500;
    text-align: center;
}

.principe-descr {
    font-size: 1.4rem;
    font-weight: 200;
    text-align: center;
    margin-bottom: 10px;
}

.container-mockup {
    max-width: 800px;
    padding: 0 15px;
    margin: 0 auto;
}

.macbook-mockup {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.macbook-screen {
    background: #1a1a1a;
    border-radius: 15px 15px 0 0;
    padding: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.screen-bezel {
    background: #2c2c2c;
    border-radius: 10px;
    padding: 12px;
    position: relative;
}

.camera {
    width: 6px;
    height: 6px;
    background: #1a1a1a;
    border-radius: 50%;
    margin: 0 auto 10px;
    position: relative;
    border: 1px solid #444;
}

.camera::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #006400;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.video-container {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.screen-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
                135deg,
                rgba(255, 255, 255, 0.1) 0%,
                rgba(255, 255, 255, 0) 30%,
                rgba(255, 255, 255, 0) 70%,
                rgba(255, 255, 255, 0.05) 100%
            );
    pointer-events: none;
    z-index: 1;
}



