/* =========================================================================
   БАЗОВІ ЗМІННІ ТА СТИЛІ
   ========================================================================= */
:root {
  /* Основні кольори */
  --black: #131010;
  --gray: #B2AFAF;
  --darkgray: #555; 
  --white: #FDF7F7;
  --bg: #FDF7F7;

  /* Брендові кольори */
  --pink: #FF4E99;
  --orange: #FF9F00;
  --lime: #C6DF2B;
  --blue: #009DFF;

  /* Для тестів */
  --red: #d50000; 
  --green: #00c853;
  --light-red: #ffe6e6;
  --light-green: #e6ffeb;

  /* Шрифт */
  --font-family: 'Rubik', sans-serif;
  --header-height: 140px;
}

* {
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

html, body {
  overflow-x: hidden; 
  width: 100%;
  margin: 0;
  padding: 0;
  overscroll-behavior-y: none;
}

body {
  background-color: var(--bg);
  font-family: var(--font-family);
  padding-top: var(--header-height); 
  color: var(--black);
}

/* =========================================================================
   КОЛЬОРОВІ КЛАСИ
   ========================================================================= */
.color-pink { color: var(--pink); }
.color-orange { color: var(--orange); }
.color-lime { color: var(--lime); }
.color-blue { color: var(--blue); }
.color-for-stik-1 { color: var(--orange); }
.color-for-stik-2 { color: var(--lime); }
.color-for-stik-3 { color: var(--gray); }

/* =========================================================================
   АНІМАЦІЇ
   ========================================================================= */
.step {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.step.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

@keyframes fireFlicker {
  0%, 100% { 
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.6));
  }
  50% { 
    transform: scale(1.05) rotate(-2deg);
    filter: drop-shadow(0 0 12px rgba(255, 107, 53, 0.8));
  }
}

/* =========================================================================
   HEADER ТА НАВІГАЦІЯ (ДЕСКТОП)
   ========================================================================= */
.header-main {
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  z-index: 1000;
  transition: transform 0.4s ease-in-out; 
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); 
}

.header-main.header-hidden {
  transform: translateY(-100%);
}

.header-container {
  max-width: 1500px; 
  margin: 0 auto; 
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.header-logo img {
  height: 130px; 
  display: block;
}

.main-menu {
  display: flex;
  gap: 60px; 
  margin: 0 auto;
}

.menu-link {
  color: var(--black);
  text-decoration: none;
  font-weight: 700; 
  font-size: 22px; 
  transition: color 0.3s ease, transform 0.3s ease;
}

.menu-link:nth-child(1):hover { color: var(--pink); transform: scale(1.1); }
.menu-link:nth-child(2):hover { color: var(--orange); transform: scale(1.1); }
.menu-link:nth-child(3):hover { color: var(--lime); transform: scale(1.1); }
.menu-link:nth-child(4):hover { color: var(--blue); transform: scale(1.1); }
.menu-link:nth-child(5):hover { color: var(--pink); transform: scale(1.1); }

.login-icon {
  margin-left: 24px; 
  font-size: 3rem;
  color: var(--black);
}

.custom-icon {
  width: 55px; 
  height: 35px; 
}

/* =========================================================================
   BURGER MENU (ДЕСКТОП - ПРИХОВАНО)
   ========================================================================= */
.burger-menu {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
}

.burger-bar {
  height: 5px;
  background-color: var(--black);
  border-radius: 10px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1001;
}

.mobile-menu a {
  color: var(--black); 
  text-decoration: none;
  font-size: 24px;
  margin: 20px 0;
}

.mobile-menu.open {
  display: flex;
}

.close-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  font-weight: bold;
  color: var(--black);
  cursor: pointer;
  z-index: 1002;
}

/* =========================================================================
   КНОПКИ (ДЕСКТОП)
   ========================================================================= */
.primary-button {
  background-color: var(--lime);
  color: var(--black);
  font-family: var(--font-family);
  padding: 20px 45px;
  font-size: 22px;
  box-shadow: 4px 4px 0 #1a1a2e;
  border: 2px solid var(--black);
  font-weight: 700;
  border-radius: 20px;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.primary-button:hover {
  opacity: 0.9;
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-green { background-color: var(--lime); color: var(--black); }
.btn-org { background-color: var(--orange); color: var(--black); }
.btn-pink { background-color: var(--pink); color: var(--black); }
.btn-blue { background-color: var(--blue); color: var(--black); }

.btn-nav {
  background-color: var(--lime);
  color: var(--black);
  border-radius: 30px;
  padding: 12px 25px;
}

/* =========================================================================
   ТЕСТИ - ОСНОВНА СЕКЦІЯ (ДЕСКТОП)
   ========================================================================= */
.full-width-bg-section {
    width: 100%;
    min-height: 400px;
    padding: 10px 0;
    background-image: url('https://res.cloudinary.com/djnlof65r/image/upload/v1761834139/fortest_hg04rw.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: var(--bg);
    text-align: center;
    box-sizing: border-box;
}

.section-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.test-section-exact {
    max-width: 1300px;
    width: 90%;
    border-radius: 25px;
    padding: 220px 50px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.header-content {
    margin-bottom: 40px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--black);
}

.progress-bar-container {
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}

#progress-bar,
.test-progress-bar-fill {
    height: 100%;
    background-color: var(--lime);
    transition: width 0.3s ease;
}

.question-title-exact {
    font-size: 2.5em;
    font-weight: 900;
    color: var(--black);
    line-height: 1.3;
}

/* =========================================================================
   КОД-БЛОКИ (ДЕСКТОП)
   ========================================================================= */
.code-example-block-exact {
    background-color: var(--bg);
    padding: 60px 40px;
    margin-bottom: 50px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    text-align: left;
    overflow-x: auto;
}

.code-example-block-exact pre {
    margin: 0;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.code-content-exact {
    font-size: 22px;
    color: var(--black);
    line-height: 1.8;
    overflow-wrap: break-word;
    word-break: break-word;
}

.tag-exact {
    color: var(--pink);
    font-weight: bold;
}

.pink-square {
    background-color: var(--pink);
}

.code-icons {
    position: absolute;
    top: 20px;
    right: 20px;
}

.icon-square {
    width: 25px;
    height: 25px;
    border-radius: 5px;
}

/* =========================================================================
   ВІДПОВІДІ (ДЕСКТОП)
   ========================================================================= */
.answers-grid-exact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 20px;
    margin-top: 30px;
}

.answer-option-exact {
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
    text-align: left;
    transition: transform 0.2s;
    outline: none;
    width: 100%;
}

.answer-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 70px 35px;
    background-color: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    border: 3px solid transparent;
    height: 100%;
}

.answer-option-exact:hover .answer-content:not(.disabled) {
    background-color: #f9f9ff;
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.option-text {
    font-size: 22px;
    font-weight: 700;
    font-family: var(--font-family);
    color: var(--black);
    text-align: left;
}

.icon-image-for-test {
    width: 60px;
    height: 60px;
    margin-left: 20px;
    margin-top: -100px;
    object-fit: contain;
}

.incorrect .answer-content {
    background-color: var(--light-red) !important;
    border-color: var(--red) !important;
    color: var(--red);
    transform: none !important;
    box-shadow: none !important;
}

.correct-clicked .answer-content {
    border-color: var(--green) !important;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5) !important;
    transform: none !important;
}

.disabled {
    pointer-events: none;
    opacity: 0.7;
    cursor: default;
}

.shake .answer-content {
    animation: shake 0.3s 4;
}

/* =========================================================================
   МОДАЛЬНЕ ВІКНО (ДЕСКТОП)
   ========================================================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    animation: fadeIn 0.5s;
}

.modal-content {
    background-color: var(--lime);
    margin: 15% auto;
    padding: 100px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 700px;
    position: relative;
    animation: slideIn 0.5s ease-out;
}

.modal-content h2 {
    color: var(--black);
    font-size: 2em;
    margin-bottom: 10px;
}

.modal-content p {
    font-size: 1.1em;
    color: var(--black);
}

.btn-modal-sec {
    padding: 20px 60px;
    margin-top: 15px;
    background-color: var(--lime);
    color: var(--black);
    font-family: var(--font-family);
    border-radius: 15px;
    border: 2px solid var(--black);
    cursor: pointer;
}

/* =========================================================================
   STREAK CONTAINER (ДЕСКТОП)
   ========================================================================= */
.streak-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 15px;
}

.streak-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 2px solid transparent;
}

.streak-icon-wrapper:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.streak-fire {
  font-size: 1.8em;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.6));
}

.streak-fire.active {
  color: var(--orange);
  animation: fireFlicker 2s ease-in-out infinite;
}

.streak-fire.inactive {
  color: #888;
  filter: drop-shadow(0 0 4px rgba(136, 136, 136, 0.3));
}

.streak-number {
  position: absolute;
  bottom: -5px;
  right: -5px;
  background: var(--lime);
  color: var(--black);
  font-size: 0.75em;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  min-width: 20px;
  text-align: center;
}

/* =========================================================================
   CALENDAR POPUP (ДЕСКТОП)
   ========================================================================= */
.streak-calendar-popup {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  padding: 20px;
  min-width: 320px;
  max-width: 360px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 9999;
  border: 2px solid #e0e0e0;
  pointer-events: none;
}

.streak-calendar-popup.show,
.streak-icon-wrapper:hover + .streak-calendar-popup,
.streak-calendar-popup:hover,
.streak-container:hover .streak-calendar-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.streak-calendar-popup::before {
  content: '';
  position: absolute;
  top: -10px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid white;
}

.calendar-header {
  margin-bottom: 15px;
}

.calendar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--black);
  margin-bottom: 12px;
}

.calendar-title i {
  color: var(--orange);
  font-size: 1.3em;
}

.calendar-stats {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 10px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 0.8em;
  color: var(--darkgray);
}

.stat-value {
  font-size: 1.1em;
  font-weight: bold;
  color: var(--black);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 15px 0;
}

.calendar-day {
  aspect-ratio: 1;
  border-radius: 6px;
  background: #e0e0e0;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #d0d0d0;
  min-height: 30px;
}

.calendar-day:hover {
  transform: scale(1.15);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.calendar-day.active {
  background: var(--orange) !important;
  border: 1px solid var(--orange);
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.4);
}

.calendar-day.today {
  background: var(--lime) !important;
  border: 3px solid var(--black);
  box-shadow: 0 0 15px rgba(198, 223, 43, 0.8);
  transform: scale(1.1);
}

.calendar-day.inactive {
  background: #f5f5f5 !important;
  border: 1px solid #e8e8e8;
}

.calendar-day::after {
  content: attr(data-date);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--white);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 100;
}

.calendar-day:hover::after {
  opacity: 1;
}

.calendar-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #eee;
  font-size: 0.85em;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* =========================================================================
   TOAST NOTIFICATION (ДЕСКТОП)
   ========================================================================= */
.streak-toast-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 15px 20px;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 10000;
  border-left: 4px solid var(--orange);
}

.streak-toast-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toast-text strong {
  font-size: 1em;
  color: var(--black);
}

.toast-text span {
  font-size: 0.9em;
  color: #666;
}

/* =========================================================================
   АДАПТАЦІЯ ДЛЯ ПЛАНШЕТІВ (768px - 1024px)
   ========================================================================= */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 30px;
    }
    
    .main-menu {
        gap: 40px;
    }
    
    .menu-link {
        font-size: 20px;
    }
    
    .test-section-exact {
        padding: 60px 40px;
    }
    
    .question-title-exact {
        font-size: 2.2em;
    }
}

/* =========================================================================
   АДАПТАЦІЯ ДЛЯ МОБІЛЬНИХ (до 768px)
   ========================================================================= */
@media (max-width: 768px) {
    /* === BODY === */
    body {
        padding-top: 100px;
    }
    
    /* === HEADER === */
    :root {
        --header-height: 100px;
    }
    
    .header-container {
        padding: 0 15px;
        height: 100px;
    }
    
    .header-logo img {
        height: 80px;
    }
    
    /* === NAVIGATION === */
    .main-menu {
        display: none;
    }
    
    .burger-menu {
        display: flex;
        margin-left: 0;
        margin-right: auto;
    }
    
    .login-icon {
        display: none;
    }
    
    .primary-button {
        display: none;
    }
    
    /* === ТЕСТОВА СЕКЦІЯ === */
    .full-width-bg-section {
        min-height: auto;
        padding: 20px 0;
    }
    
    .section-content-container {
        padding: 0 10px;
    }
    
    .test-section-exact {
        width: 95%;
        padding: 30px 20px;
        border-radius: 16px;
    }
    
    .header-content {
        margin-bottom: 25px;
    }
    
    .progress-info {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .progress-bar-container {
        height: 8px;
        margin-bottom: 15px;
    }
    
    .question-title-exact {
        font-size: 1.4em;
        line-height: 1.4;
        margin-bottom: 20px;
    }
    
    /* === КОД-БЛОКИ === */
    .code-example-block-exact {
        padding: 25px 20px;
        margin-bottom: 30px;
        border-radius: 14px;
    }
    
    .code-content-exact {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .code-icons {
        top: 12px;
        right: 12px;
    }
    
    .icon-square {
        width: 18px;
        height: 18px;
    }
    
    /* === ВІДПОВІДІ === */
    .answers-grid-exact {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 25px;
    }
    
    .answer-content {
        padding: 35px 20px;
        border-radius: 14px;
        border-width: 2px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        min-height: 100px;
    }
    
    .option-text {
        font-size: 16px;
        font-weight: 600;
        text-align: center;
    }
    
    .icon-image-for-test {
        width: 45px;
        height: 45px;
        margin: 0 0 10px 0;
    }
    
    .answer-option-exact:hover .answer-content:not(.disabled) {
        transform: none;
    }
    
    /* === МОДАЛЬНЕ ВІКНО === */
    .modal-content {
        width: 90%;
        max-width: 400px;
        margin: 30% auto;
        padding: 40px 25px;
        border-radius: 14px;
    }
    
    .modal-content h2 {
        font-size: 1.4em;
        margin-bottom: 12px;
    }
    
    .modal-content p {
        font-size: 1em;
        line-height: 1.5;
    }
    
    .btn-modal-sec {
        padding: 14px 35px;
        margin-top: 18px;
        font-size: 16px;
        border-radius: 12px;
    }
    
    /* === STREAK === */
    .streak-container {
        margin: 0 10px;
    }
    
    .streak-icon-wrapper {
        width: 45px;
        height: 45px;
    }
    
    .streak-fire {
        font-size: 1.6em;
    }
    
    .streak-number {
        font-size: 0.7em;
        padding: 2px 5px;
    }
    
    .streak-calendar-popup {
        right: -10px;
        min-width: 300px;
        max-width: 320px;
        padding: 18px;
    }
    
    .streak-calendar-popup::before {
        right: 25px;
    }
    
    .calendar-title {
        font-size: 1.1em;
        margin-bottom: 10px;
    }
    
    .calendar-stats {
        padding: 8px;
        gap: 10px;
    }
    
    .stat-label {
        font-size: 0.75em;
    }
    
    .stat-value {
        font-size: 1em;
    }
    
    .calendar-grid {
        gap: 4px;
        margin: 12px 0;
    }
    
    .calendar-day {
        min-height: 28px;
    }
    
    .calendar-legend {
        font-size: 0.8em;
        gap: 6px;
    }
    
    .legend-color {
        width: 14px;
        height: 14px;
    }
    
    /* === TOAST === */
    .streak-toast-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        padding: 12px 15px;
    }
    
    .toast-content {
        gap: 10px;
    }
    
    .toast-text strong {
        font-size: 0.95em;
    }
    
    .toast-text span {
        font-size: 0.85em;
    }
    
    /* === АНІМАЦІЇ === */
    .step {
        transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    }
}

/* =========================================================================
   АДАПТАЦІЯ ДЛЯ МАЛЕНЬКИХ ТЕЛЕФОНІВ (до 480px)
   ========================================================================= */
@media (max-width: 480px) {
    /* === HEADER === */
    body {
        padding-top: 90px;
    }
    
    :root {
        --header-height: 90px;
    }
    
    .header-container {
        padding: 0 12px;
        height: 90px;
        gap: 10px;
    }
    
    .header-logo img {
        height: 70px;
    }
    
    .burger-menu {
        width: 28px;
        height: 23px;
    }
    
    .burger-bar {
        height: 4px;
    }
    
    /* === ТЕСТИ === */
    .test-section-exact {
        padding: 25px 15px;
    }
    
    .question-title-exact {
        font-size: 1.2em;
    }
    
    .code-example-block-exact {
        padding: 20px 15px;
        margin-bottom: 25px;
    }
    
    .code-content-exact {
        font-size: 14px;
    }
    
    .code-icons {
        top: 10px;
        right: 10px;
    }
    
    .icon-square {
        width: 16px;
        height: 16px;
    }
    
    /* === ВІДПОВІДІ === */
    .answer-content {
        padding: 28px 18px;
        min-height: 90px;
    }
    
    .option-text {
        font-size: 15px;
    }
    
    .icon-image-for-test {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }
    
    /* === МОДАЛЬНЕ ВІКНО === */
    .modal-content {
        padding: 35px 20px;
    }
    
    .modal-content h2 {
        font-size: 1.3em;
    }
    
    .modal-content p {
        font-size: 0.95em;
    }
    
    .btn-modal-sec {
        padding: 13px 30px;
        font-size: 15px;
    }
    
    /* === STREAK === */
    .streak-icon-wrapper {
        width: 42px;
        height: 42px;
    }
    
    .streak-fire {
        font-size: 1.5em;
    }
    
    .streak-calendar-popup {
        min-width: 280px;
        padding: 15px;
    }
    
    .calendar-title {
        font-size: 1em;
    }
    
    .calendar-day {
        min-height: 26px;
    }
    
    .toast-text strong {
        font-size: 0.9em;
    }
    
    .toast-text span {
        font-size: 0.8em;
    }
}

/* =========================================================================
   АДАПТАЦІЯ ДЛЯ ДУЖЕ МАЛЕНЬКИХ ЕКРАНІВ (до 360px)
   ========================================================================= */
@media (max-width: 360px) {
    .header-logo img {
        height: 65px;
    }
    
    .test-section-exact {
        padding: 20px 12px;
    }
    
    .question-title-exact {
        font-size: 1.1em;
    }
    
    .code-example-block-exact {
        padding: 18px 12px;
    }
    
    .code-content-exact {
        font-size: 13px;
    }
    
    .answer-content {
        padding: 25px 15px;
        min-height: 85px;
    }
    
    .option-text {
        font-size: 14px;
    }
    
    .icon-image-for-test {
        width: 36px;
        height: 36px;
    }
    
    .modal-content {
        padding: 30px 18px;
    }
    
    .btn-modal-sec {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .streak-calendar-popup {
        min-width: 260px;
        padding: 12px;
    }
    
    .calendar-day {
        min-height: 24px;
    }
}

/* =========================================================================
   DROPDOWN NAVIGATION
   ========================================================================= */
.main-menu {
    display: flex;
    gap: 40px;
    margin: 0 auto;
    align-items: center;
}
.nav-dropdown {
    position: relative;
}
.dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dropdown-trigger i {
    font-size: 14px;
    transition: transform 0.3s ease;
}
.nav-dropdown:hover .dropdown-trigger i {
    transform: rotate(180deg);
}
/* Dropdown контент - БІЛЬШИЙ */
.dropdown-content {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 340px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}
/* Стрілочка зверху */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--white);
}
.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
/* Елементи dropdown - БІЛЬШІ */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--black);
    transition: all 0.2s ease;
}
.dropdown-item:hover {
    background: var(--gray-100, #f5f5f5);
}
.dropdown-item i {
    font-size: 26px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--gray-100, #f5f5f5);
    color: var(--black);
    transition: all 0.2s ease;
}
/* Кольори для іконок при hover */
.dropdown-item:hover i {
    background: var(--lime);
    color: var(--black);
}
.dropdown-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dropdown-title {
    display: block;
    font-weight: 600;
    font-size: 18px;
}
.dropdown-desc {
    display: block;
    font-size: 14px;
    color: var(--gray-500, #6c757d);
}
/* Header actions group */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Точка-розділювач */
.nav-dot {
    color: var(--gray-400, #adb5bd);
    font-size: 10px;
    user-select: none;
}

/* =========================================================================
   RESPONSIVE - ховаємо dropdown на мобільних
   ========================================================================= */
@media (max-width: 1024px) {
    .nav-dropdown .dropdown-content {
        display: none;
    }

    .dropdown-trigger i {
        display: none;
    }

    .nav-dot {
        display: none;
    }
}
