:root {
    --primary-color: #005f99;
    --secondary-color: #48a9e6;
    --background-color: #f5f9fc;
    --text-color: #333;
}
body {
  font-family: 'Izmir', sans-serif;
  color: white;
  background-color: var(--background-color);
  overflow-x: hidden;
  margin: 0;
}


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


@media (max-width: 768px) {
.button {
  font-size: 1rem;
  padding: 10px 15px;
}
.container {
  width: 100%;
  padding: 0 10px;
}
.nav-list {
  display: none; /* Initially hide nav links */
}
.hamburger {
  display: block; /* Show hamburger on smaller screens */
}

}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: #ffffff; 
    transition: 0.3s;
}
@media (min-width: 769px) {
    nav ul {
        display: flex;
        flex-direction: row; /* горизонтально */
        position: static;    /* убираем абсолют */
        background-color: transparent;
    }
}

/* Показываем бургер и скрываем меню */
@media (max-width: 870px) {
    .burger {
        display: flex;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--primary-color);
        position: absolute;
        top: 40px;
        left: 0;
        z-index: 999;
    }

    nav ul.active {
        display: flex;
    }
}

/* Removed fadeIn and pulse animations */

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}



/* Top Bar */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 2em;
    background-color: var(--primary-color);
    color: white;
    animation: fadeIn 1s ease-out;
    position: relative;
    z-index: 2000; /* Увеличиваем z-index хедера */
}

.nav-container {
  flex-grow: 1;
  display: flex;
  justify-content: flex-start;
  margin-left: 17vw; /* расстояние от логотипа */
}


.right-controls {
  display: flex;
  align-items: center;
  gap: 1.5vw;
}
.logo {
    font-size: 1.5em;
    font-weight: bold;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: bold;
  gap: 10px;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10%;
  image-rendering: auto; /* чтобы не терять качество */
}



nav ul {
    list-style: none;
    gap: 10px;
    padding: 5px 15px; 
}


nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
}


nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 12px 20px;
    display: block;
    transition: background 0.3s ease;
}

/* Эффект затемнения при наведении */
nav ul li:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Светлый прямоугольник */

}

#user-name {
font-family: "Arial", sans-serif;
font-size: 18px;
font-weight: bold;
color: #ffffff;
white-space: nowrap; 
overflow: hidden; 
text-overflow: ellipsis; 
max-width: 120px; 
display: inline-block;
}

/* 🔹 Основной контейнер профиля */
#user-profile {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto; /* Это сдвигает профиль вправо */
    cursor: pointer;
    z-index: 1000;
    position: relative;
}
@media (max-width: 870px) {
    #user-profile {
        gap: 3px;
    }

    .profile-icon {
        width: 24px;
        height: 24px;
        margin-right: 5px;
    }

    #user-name {
        font-size: 14px;
        max-width: 70px; /* Короче имя */
    }
}


/* 🔹 Стили для выпадающего меню */
#profile-dropdown {
display: none;
position: absolute;
top: 100%; /* Чуть ниже профиля */
left: 0;
width: 150px; /* Было 140px → теперь компактнее */
min-width: 100px; /* Минимальная ширина, чтобы не схлопывалось */
background: #005f99;
border-radius: 5px;
overflow: hidden;
opacity: 0;
transform: translateY(10px);
transition: opacity 0.2s, transform 0.2s;
z-index: 1000;
}

#profile-dropdown a {
display: block;
padding: 10px;
color: white;
text-decoration: none;
font-size: 14px;
}

#profile-dropdown a:hover {
background-color: rgba(255, 255, 255, 0.2); 

}

/* 🔹 Показываем dropdown при наведении */
#user-profile:hover #profile-dropdown,
#profile-dropdown:hover {
display: block;
opacity: 1;
transform: translateY(0);
}

#profile-dropdown a:first-child {
margin-top: 5px; /* 🔥 Опускаем первую кнопку вниз */
}
.profile-icon {
  width: 35px;       
  height: 35px;
  border-radius: 50%; 
  object-fit: cover; 
  margin-right: 10px; 
}

/* Стили для выпадающего меню */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: #005f99;
    color: white;
    min-width: 200px;
    padding: 6px 0;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    z-index: 1500; /* Меньше чем у хедера */
}

.dropdown-menu li {
    list-style: none;
    padding: 12px 20px;
}

.dropdown-menu li a {
    text-decoration: none;
    color: white;
    display: block;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
}



/* Показываем меню при наведении */


@media (hover: hover) and (pointer: fine) {
  .dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

  .dropdown:hover .arrow {
    transform: rotate(135deg);
  }
}

/* Стили для красивого треугольника */
.arrow {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 6px;
    margin-bottom: 4px; 
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}

.arrow.rotated {
  transform: rotate(135deg);
}



.dropdown-menu.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.logo {
font-size: 1.5em;
font-weight: bold;
}

.cta-button {
    padding: 0.75em 1.5em;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;

    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;

    margin-left: auto; /* это уже достаточно, если right-controls — флекс */
    position: static;  /* ❗ убираем absolute */
    transform: none;   /* ❗ убираем translateY */
    top: auto;         /* ❗ обнуляем top */
}


.cta-button:hover {
background-color: #66c3ff;

}

@media (max-width: 768px) {
  .logo {
    font-size: 1.2em; 
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1em; 
  }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}



.main-banner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 4em 2em;
  background: linear-gradient(270deg, #48a9e6, #005f99);
  background-size: 400% 400%;
  color: white;
  animation: gradientMove 6s ease infinite, fadeIn 1.5s ease-out;
}

.left-content {
  flex: 1 1 45%;
  min-width: 300px;
  margin-bottom: 2em;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* всё внутри — к левому краю */
}

.right-content {
  flex: 1 1 45%;
  min-width: 300px;
  display: flex;
  justify-content: center; /* по центру по горизонтали */
  align-items: center; /* по центру по вертикали */
}
@font-face {
  font-family: 'Izmir';
  src: url('fonts/Izmir-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}

/* Или, если есть Google Fonts:
@import url('https://fonts.googleapis.com/css2?family=Izmir:wght@800&display=swap');
*/

.banner-title {
  font-family: 'Izmir', sans-serif;
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-align: left;
}

.banner-description {
  font-size: 1.45rem;
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.white-text {
  color: white;
}

.yellow-text {
  color: #FFD700;
}



.button-group {
  margin-top: 2em;
  display: flex;
  gap: 1.2em;
  flex-wrap: wrap;
  justify-content: flex-start; /* выравнивание влево */
  align-self: flex-start; /* если внутри flex-колонки */
}

.btn {
  font-family: 'Izmir', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 1em 2em;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.btn.primary {
  background-color: white;
  color: #005f99;
}

.btn.primary:hover {
  background-color: #f0f0f0;
}

.btn.secondary {
  background-color: #002f5f; /* приятный темно-синий */
  color: white;
}

.btn.secondary:hover {
  background-color: #001c3d;
}


.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

.question-info {
    font-size: 1.1em;
    font-weight: 500;
    color: #333;
    text-align: center;
}

.options label {
    display: block;
    padding: 8px 15px; /* Reduced padding to make rectangles less tall */
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 400;
    color: #333;
    cursor: pointer;
    margin-bottom: 15px; /* Reduced space between options */
    width: 95%; /* Измените ширину по вкусу */
    max-width: 700px; 
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Add margin-top to the options container to move it below the question */
.options {
    margin-top: 30px; /* Increased spacing between the question and options */
}

/* Hover effect */
.options label:hover {
    background-color: #e6f2ff;
    border-color: #3366cc;
}

/* Active effect */
.options label:active {
    background-color: #d0e5ff;
}

/* Hide default radio buttons */
.options input[type="radio"] {
    display: none;
}

/* Custom circular radio buttons */
.options label::before {
    flex: 0 0 30px;
    content: attr(data-letter); /* Use data attribute for A, B, C, D */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 2px solid #333;
    border-radius: 50%; /* Circle shape */
    font-size: 0.9em;
    font-weight: bold;
    color: #3b3b3b;
    background-color: white;
    margin-right: 12px; /* Adjusted spacing between circle and text */
    transition: background-color 0.3s ease, border-color 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

/* Style for the selected option */
.options input[type="radio"]:checked + label::before {
    background-color: #3366cc;
    color: white;
    border-color: #3366cc;
}

/* Align the radio button and text */
.options label {
    display: flex;
    align-items: center;
}


.question-header.styled-header {
    border-bottom: 2.2px solid transparent;
  border-image: repeating-linear-gradient(
    to right,
    black 0,
    black 24px,
    transparent 24px,
    transparent 28px
  ) 100% 1;
  border-bottom: 2px dashed #444;
  margin-bottom: 12px;
  background-color: #f0f0f0;
  padding: 3px 0; /* Убираем горизонтальный паддинг! */
}

.question-info-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 0; /* если вдруг есть */
  margin-left: 0;   /* если вдруг есть */
}

.question-number-box {
  background-color: black;
  color: white;
  font-weight: bold;
  padding: 4px 10px;
  font-size: 14px;
  border-radius: 2px;
  margin: 0; /* убираем отступы */
}

.mark-for-review {
  font-weight: 500;
  color: #555;
  font-size: 13.5px;
  margin: 0;
}
.save-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

.save-icon-svg {
  width: 20px;
  height: 20px;
}

.stats-box {
  background-color: white;
  color: #1a1a1a;
  padding: 2.5em 2em;
  border-radius: 16px;
  text-align: left; /* ⬅️ по левому краю */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 460px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1em;
}

.stats-box h2 {
  margin-bottom: 1.5em;
  font-size: 1.5em;
  color: #1a1a1a;
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5em;
}

.stat-item {
  background-color: #eff6fe;
  padding: 1em;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: scale(1.05);
}

.stat-item .label {
  font-size: 1em;
    font-weight: 550; 
  color: #5a5a5a;
  margin-bottom: 0.3em;
}

.stat-item .value {
  font-size: 1.7em;
  font-weight: 800;
  color: #005f99;
}

.button-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1em;
}

.banner-button:hover {
    background-color: #66c3ff;
    transform: scale(1.1);
}



.sample-test p {
    margin-bottom: 30px; 
}

.premium p {
    margin-bottom: 30px; 
}
.cta-button:hover, .sample-test-button:hover, .premium-button:hover {
    background-color: #66c3ff;
    transform: scale(1.1);
}

/* Test Sections */
.sample-test, .testimonials, .premium {
    text-align: center;
    padding: 3em 2em;
}




@keyframes explode {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    25% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.6;
    }
    75% {
        transform: scale(2);
        opacity: 0.4;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}



.why-choose {
  background: #fff;
  padding: 64px 0 48px 0;
  text-align: center;
}

.why-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a2a36;
  margin-bottom: 10px;
  font-family: 'Inter', Arial, sans-serif;
}

.why-subtitle {
  font-size: 1.25rem;
  color: #555;
  margin-bottom: 44px;
  font-family: 'Inter', Arial, sans-serif;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.why-features {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.why-card {
  /* background: #f5f8ff;  Удаляем общий фон */
  border-radius: 24px;
  /* box-shadow: 0 4px 24px 0 rgba(30, 60, 90, 0.08);  Убрана тень */
  padding: 40px 32px 32px 32px;
  min-width: 280px;
  max-width: 340px;
  flex: 1 1 300px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.15s;
}

.why-card.why-blue {
  background: #eef5ff; /* светло-голубой, светлее */
}
.why-card.why-purple {
  background: #f7f1ff; /* светло-сиреневый, светлее */
}
.why-card.why-green {
  background: #eafcf4; /* светло-зеленый, светлее */
}

.why-card:hover {
  transform: translateY(-6px) scale(1.03);

}

.why-card.why-blue:hover {
  background: linear-gradient(135deg, #e3edff 60%, #c7e0ff 100%);
}
.why-card.why-purple:hover {
  background: linear-gradient(135deg, #f0e6ff 60%, #e0d1ff 100%);
}
.why-card.why-green:hover {
  background: linear-gradient(135deg, #d9faea 60%, #b8f5d7 100%);
}

.why-icon {
  font-size: 2.8rem;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.why-blue .why-icon {
  background: #eaf1ff;
  color: #2563eb;
}
.why-purple .why-icon {
  background: #f3eaff;
  color: #a259f7;
}
.why-green .why-icon {
  background: #eafff3;
  color: #22c55e;
}

.why-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a2a36;
}

.why-card p {
  font-size: 1.05rem;
  color: #7a8593;
  margin: 0;
}

@media (max-width: 900px) {
  .why-features {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }
  .why-card {
    max-width: 95vw;
    min-width: unset;
    width: 100%;
    box-sizing: border-box;
    padding: 28px 10px 24px 10px;
  }
}

@media (max-width: 600px) {
  .why-features {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 0 6px;
  }
  .why-card {
    width: 100%;
    min-width: unset;
    max-width: 100%;
    margin: 0 0 12px 0;
    padding: 16px 8px 16px 8px;
    border-radius: 16px;
    font-size: 0.97rem;
    background: none;
    border: none;
    box-shadow: none;
    text-align: center;
    flex: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .why-card.why-blue { background: #eef5ff; }
  .why-card.why-purple { background: #f7f1ff; }
  .why-card.why-green { background: #eafcf4; }
  .why-card h3 {
    font-size: 1.08rem;
    margin-bottom: 7px;
    margin-top: 2px;
  }
  .why-card p {
    font-size: 0.97rem;
    margin-top: 0;
    margin-bottom: 0;
  }
  .why-icon {
    width: 44px;
    height: 44px;
    font-size: 2rem;
    margin-bottom: 10px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}


.footer {
  background-color: #1f2937;
  color: white;
  padding: 50px 20px 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 40px;
}

.footer-section {
  flex: 1 1 200px;
  min-width: 200px;
}

.footer-section h3 {
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: bold;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  text-decoration: none;
  color: #9ca3af;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: white;
}

.social-icons a img {
  width: 33px;             /* увеличим размер */
  margin-right: 15px;
  margin-top: 8px;         /* сместим вниз */
  filter: brightness(0.8);
  transition: filter 0.3s;
}


.social-icons a:hover img {
  filter: brightness(1);
}

.newsletter-form {
  display: flex;
  margin-top: 10px;
}

.newsletter-form input {
  padding: 10px;
  flex: 1;
  border: none;
  border-radius: 5px 0 0 5px;
  font-size: 14px;
}

.newsletter-form button {
  background: #0369a1;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-size: 16px;
}

.footer-bottom {
  border-top: 1px solid #374151;
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  color: #9ca3af;
  font-size: 14px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-links a {
  margin-left: 20px;
  text-decoration: none;
  color: #9ca3af;
}

.footer-links a:hover {
  color: white;
}

.how-it-works {
  background: #fff;
  padding: 60px 0 40px 0;
  text-align: center;
  margin-bottom: 40px;
}
.how-title {
  font-size: 2.7rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #16243a;
}
.how-subtitle {
  font-size: 1.5rem;
  color: #5a6473;
  margin-bottom: 50px;
}
.how-steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
}
.how-step {
  max-width: 320px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.how-circle {
  width: 80px;
  height: 80px;
  background: #005b94;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0,91,148,0.08);
}
.how-step h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #16243a;
}
.how-step p {
  font-size: 1.15rem;
  color: #5a6473;
  margin: 0 0 10px 0;
}
.how-arrow {
  display: flex;
  align-items: center;
  font-size: 2.5rem;
  color: #005b94;
  font-weight: 700;
  margin: 0 10px;
  user-select: none;
}
@media (max-width: 900px) {
  .how-steps {
    flex-direction: column;
    gap: 30px;
    align-items: center; /* Центрируем все шаги */
    padding: 0 20px; /* Добавляем отступы слева и справа */
  }
  .how-step {
    max-width: 100%;
    width: 100%;
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 400px) {
  .main-banner {
    flex-direction: column;
    padding: 1.2em 0.5em;
  }
  .banner-title {
    font-size: 2rem;
    line-height: 1.1;
  }
  .banner-description {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  .btn {
    font-size: 1rem;
    padding: 0.7em 1em;
  }

  .right-content {
    min-width: unset;
    width: 100%;
    padding: 0;
  }
  .left-content {
    min-width: unset;
    width: 100%;
    padding: 0;
  }
}
