        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
  --primary-blue: #0D1B4B;     /* дълбоко синьо (фон/навигация) */
  --bright-yellow: #C08843;   /* златисто/карамел от логото (замества жълтото) */
  --orange: #D2662A;          /* оранжево от логото */
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --dark-gray: #2B2B2B;

  /* допълнителни (по желание) */
  --ink: #0B0604;
  --soft-cream: #E3CEAF;
  --steel-blue: #6686A5;
}

        body {
            font-family: 'Poppins', sans-serif;
            color: var(--dark-gray);
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* Math symbols background decoration */
        .math-bg {
            position: absolute;
            font-size: 120px;
            opacity: 0.03;
            font-weight: bold;
            color: var(--primary-blue);
            z-index: 0;
            pointer-events: none;
        }

        /* Sticky Navigation */
        nav {
            position: fixed;
            top: 0;
            width: 100%;
            background: linear-gradient(135deg, var(--primary-blue) 0%, #1a2b6d 100%);
            padding: 1rem 0;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            z-index: 1000;
            transition: all 0.3s ease;
        }

        nav.scrolled {
            padding: 0.5rem 0;
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 2rem;
        }

        /* Brand logo in navbar */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  letter-spacing: 1px;
}

.logo-img {
  width: 85px;
  height: 56px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  display: block;
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--bright-yellow);
  line-height: 1;
}

.logo-text span {
  color: var(--orange);
}

/* Smaller logo when nav is scrolled */
nav.scrolled .logo-img {
  width: 78px;
  height: 52px;
}
nav.scrolled .logo-text { font-size: 1.4rem; }

/* Footer logo */
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--bright-yellow);
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 56px;
  width: auto;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  padding: 8px 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

        .nav-links {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        .nav-links a {
            color: var(--white);
            text-decoration: none;
            font-weight: 600;
            font-size: 1rem;
            transition: all 0.3s ease;
            position: relative;
            padding: 0.5rem 0;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 3px;
            background: var(--bright-yellow);
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after,
        .nav-links a.active::after {
            width: 100%;
        }

        .nav-links a:hover {
            color: var(--bright-yellow);
        }

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: var(--white);
            font-size: 1.5rem;
            cursor: pointer;
        }

        /* Hero Popup Modal */
        .hero-popup {
            display: flex;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            padding: 10px;
            background: rgba(13, 27, 75, 0.95);
            z-index: 10000;
            justify-content: center;
            align-items: center;
            animation: fadeIn 0.5s ease;
        }

        .hero-popup.hidden {
            display: none;
        }

        .popup-content {
            background: linear-gradient(135deg, var(--primary-blue) 0%, #1a2b6d 100%);
            border: 5px solid var(--bright-yellow);
            border-radius: 20px;
            padding: 3rem;
            max-width: 700px;
            position: relative;
            box-shadow: none;
            animation: popupBounce 0.6s ease;
            text-align: center;
        }

        @keyframes popupBounce {
            0% { transform: scale(0.3); opacity: 0; }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); opacity: 1; }
        }

        .popup-close {
         position: absolute;
         top: -15px;
         right: -15px;
         background: var(--orange);
         color: var(--white);
         border: none;
         width: 50px;
         height: 50px;
         border-radius: 50%;
         font-size: 1.5rem;
         cursor: pointer;
         transition: none;
         box-shadow: none;
        }

        .popup-close:hover {
            transform: rotate(90deg) scale(1.1);
            background: #ff5520;
        }

        .popup-icon {
            font-size: 4rem;
            margin-bottom: 1rem;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        .popup-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);     /* БЯЛО */
  margin-bottom: 1rem;
  text-transform: none;
  line-height: 1.2;
  text-shadow: none;
}

            .popup-placeholder {
            background: rgba(255, 255, 255, 0.10);
            border: 2px dashed var(--bright-yellow);
            border-radius: 10px;
            padding: 1.5rem;
            margin-top: 1.5rem;
            color: var(--white);
            font-size: 1.2rem;
            font-weight: 700;
            line-height: 1.6;
            text-align: center;
            }

            .popup-placeholder strong {
            color: var(--white);
            font-weight: 800;
            }

        .popup-cta {
            display: inline-block;
            margin-top: 2rem;
            padding: 1rem 3rem;
            background: var(--orange);
            color: var(--white);
            text-decoration: none;
            font-weight: 700;
            font-size: 1.2rem;
            border-radius: 50px;
            transition: all 0.3s ease;
            box-shadow: none;
        }

        .popup-cta:hover {
            transform: translateY(-3px);
            box-shadow: none;
        }

        /* Hero Section */
        .hero {
            margin-top: 80px;
            min-height: 90vh;
            background: linear-gradient(135deg, var(--primary-blue) 0%, #1a2b6d 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            padding: 4rem 2rem;
        }

        .hero::before {
            content: '∑ π √ ∫ ∞ ÷ × + =';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 20rem;
            font-weight: bold;
            opacity: 0.03;
            white-space: nowrap;
            color: var(--bright-yellow);
        }

        .hero-content {
            max-width: 1000px;
            text-align: center;
            z-index: 1;
            animation: fadeInUp 1s ease;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .hero-badge {
            display: inline-block;
            background: var(--orange);
            color: var(--white);
            padding: 0.5rem 1.5rem;
            border-radius: 50px;
            font-weight: 600;
            margin-bottom: 2rem;
            font-size: 0.9rem;
            letter-spacing: 1px;
            animation: slideInDown 0.8s ease;
        }

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

        .hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 4.2rem;
  font-weight: 900;
  color: var(--bright-yellow);      /* чист цвят вместо градиент */
  margin-bottom: 1.5rem;
  line-height: 1.15;
  text-transform: none;             /* по-професионално от ALL CAPS */
  letter-spacing: 0.5px;
  text-shadow: none;                /* без “силует” */
  filter: none;                     /* без glow */
  animation: none;                  /* махаме glow анимацията */
}



        .hero h2 {
            font-size: 1.8rem;
            color: var(--white);
            margin-bottom: 2rem;
            font-weight: 300;
        }

        .hero h2 strong {
            color: var(--bright-yellow);
            font-weight: 700;
        }

        .cta-buttons {
            display: flex;
            gap: 1.5rem;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 2.5rem;
        }

        .btn {
            padding: 1.2rem 3rem;
            font-size: 1.1rem;
            font-weight: 700;
            text-decoration: none;
            border-radius: 50px;
            transition: all 0.3s ease;
            display: inline-block;
            cursor: pointer;
            border: none;
        }

        .btn-primary {
            background: var(--bright-yellow);
            color: var(--primary-blue);
            box-shadow: none;
        }

        .btn-primary:hover {
            transform: translateY(-5px);
            box-shadow: none;
        }

        .btn-secondary {
            background: transparent;
            color: var(--white);
            border: 3px solid var(--white);
        }

        .btn-secondary:hover {
            background: var(--white);
            color: var(--primary-blue);
            transform: translateY(-5px);
        }

        /* Container */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        /* Section Styles */
        section {
        padding: 5rem 0;
        position: relative;
        scroll-margin-top: 110px; /* offset за фиксирания navbar */
        }

        .section-header {
            text-align: center;
            margin-bottom: 4rem;
        }

        .section-header h1,
        .section-header h2 {
        font-family: 'Montserrat', sans-serif;
        font-size: 3rem;
        font-weight: 800;
        color: var(--primary-blue);
        margin-bottom: 1rem;
        position: relative;
        display: inline-block;
        }

        .section-header h1::after,
        .section-header h2::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 5px;
        background: linear-gradient(90deg, var(--orange), var(--bright-yellow));
        border-radius: 10px;
        }

        .section-header p {
            font-size: 1.2rem;
            color: var(--dark-gray);
            max-width: 700px;
            margin: 1.5rem auto 0;
        }

        /* Welcome Section */
        #home {
            background: var(--light-gray);
        }

        .welcome-content {
            background: var(--white);
            padding: 3rem;
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.1);
            line-height: 1.8;
        }

        .welcome-content h3 {
            font-family: 'Montserrat', sans-serif;
            font-size: 2.5rem;
            color: var(--primary-blue);
            margin-bottom: 1.5rem;
            font-weight: 800;
        }

        .welcome-content h4 {
            font-size: 1.8rem;
            color: var(--orange);
            margin: 2rem 0 1rem;
            font-weight: 700;
        }

        .welcome-content p {
            font-size: 1.1rem;
            margin-bottom: 1.5rem;
            color: var(--dark-gray);
        }

        .welcome-content ul {
            list-style: none;
            margin: 1.5rem 0;
        }

        .welcome-content ul li {
            padding: 0.8rem 0;
            padding-left: 2rem;
            position: relative;
            font-size: 1.05rem;
        }

        .welcome-content ul li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--orange);
            font-weight: bold;
            font-size: 1.3rem;
        }

        .highlight-box {
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 107, 53, 0.1));
            border-left: 5px solid var(--orange);
            padding: 2rem;
            margin: 2rem 0;
            border-radius: 10px;
        }

        .highlight-box p {
            margin-bottom: 0.5rem;
            font-weight: 600;
        }

        /* Why Choose Section */
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2.5rem;
            margin-top: 3rem;
        }

        .feature-card {
            background: var(--white);
            padding: 2.5rem;
            border-radius: 20px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(90deg, var(--orange), var(--bright-yellow));
        }

        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
        }

        .feature-icon {
            font-size: 3.5rem;
            margin-bottom: 1.5rem;
            background: linear-gradient(135deg, var(--orange), var(--bright-yellow));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .feature-card h3 {
            font-size: 1.5rem;
            color: var(--primary-blue);
            margin-bottom: 1rem;
            font-weight: 700;
        }

        .feature-card p {
            color: var(--dark-gray);
            font-size: 1rem;
        }

        .feature-number {
            font-size: 3rem;
            font-weight: 900;
            color: var(--bright-yellow);
            font-family: 'Montserrat', sans-serif;
        }

        /* Reviews Section */
       .reviews-grid {
        column-count: 2;
        column-gap: 2rem;
        margin-top: 3rem;
        }

        .review-card {
        display: inline-block;
        width: 100%;
        margin: 0 0 2rem;
        vertical-align: top;

        background: var(--white);
        padding: 2rem;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        position: relative;
        transition: all 0.3s ease;

        break-inside: avoid;
        -webkit-column-break-inside: avoid;
        page-break-inside: avoid;
        }

        .review-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        }



        .review-stars {
            color: var(--bright-yellow);
            font-size: 1.2rem;
            margin-bottom: 1rem;
        }

        .review-text {
            font-size: 1rem;
            color: var(--dark-gray);
            font-style: italic;
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }

        .review-author {
            font-weight: 700;
            color: var(--primary-blue);
            font-size: 1.1rem;
        }

        .review-role {
            color: var(--orange);
            font-size: 0.9rem;
        }

        /* Location Section */
        .location-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            align-items: center;
        }

        .location-info {
            background: var(--white);
            padding: 3rem;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        .location-info h3 {
            font-size: 2rem;
            color: var(--primary-blue);
            margin-bottom: 2rem;
            font-weight: 700;
        }

        .location-item {
            display: flex;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .location-item i {
            font-size: 1.5rem;
            color: var(--orange);
            margin-right: 1rem;
            width: 30px;
        }

        .location-item p {
            font-size: 1.1rem;
            color: var(--dark-gray);
        }

        .map-placeholder {
            background: linear-gradient(135deg, var(--primary-blue), #1a2b6d);
            border-radius: 20px;
            height: 400px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 1.2rem;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }

        /* Courses Page */
        .courses-container {
            margin-top: 3rem;
        }

        #courses,
        #nvo,
        #teacher,
        #sample-tasks,
        #contacts {
        padding-top: 7rem;
        }

        .course-section {
            margin-bottom: 5rem;
        }

        .courses-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 2.5rem;
            margin-top: 2rem;
        }

        .course-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 5px solid var(--orange);

    display: flex;
    flex-direction: column;
    height: 100%;
}

        .course-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
        }

        .course-header {
            background: linear-gradient(135deg, var(--primary-blue), #1a2b6d);
            padding: 2rem;
            text-align: center;
        }

        .course-header h3 {
            font-size: 1.8rem;
            color: var(--bright-yellow);
            margin-bottom: 0.5rem;
            font-weight: 700;
        }

        .course-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

        .course-body p {
            color: var(--dark-gray);
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }

        .course-body ul {
            margin: 0 0 2.2rem 1.4rem;
            padding: 0;
        }

        .course-body ul li {
            margin-bottom: 0.95rem;
            line-height: 1.8;
            color: var(--dark-gray);
        }

        .course-price {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--orange);
            margin-bottom: 1rem;
        }

        .course-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--orange);
    color: var(--white);
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

        .course-btn:hover {
            background: var(--primary-blue);
            transform: scale(1.05);
        }

        .calendar-section {
            background: var(--light-gray);
            padding: 3rem;
            border-radius: 20px;
            margin-top: 2rem;
        }

        .calendar-section h3 {
        font-size: 2rem;
        color: var(--primary-blue);
        margin-bottom: 2rem;
        font-weight: 800;
        text-align: center;
        }

        .schedule-wrap {
        margin-top: 0.5rem;
        }

        .calendar-placeholder {
            background: var(--white);
            padding: 3rem;
            border-radius: 15px;
            text-align: center;
            border: 3px dashed var(--orange);
            min-height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
        }

        .calendar-placeholder i {
            font-size: 4rem;
            color: var(--orange);
            margin-bottom: 1rem;
        }

        .calendar-placeholder p {
            font-size: 1.3rem;
            color: var(--primary-blue);
            font-weight: 600;
        }

        /* Teacher Page */
        .teacher-intro {
         margin: 0 auto 3rem;
         text-align: center;
         overflow: hidden;
         padding: 0;
         max-width: 450px;
         border-radius: 20px;
         background: transparent;
         }

        .teacher-intro h3 {
        font-family: 'Montserrat', sans-serif;
        font-size: 2rem;
        color: var(--bright-yellow);
        margin-bottom: 0.3rem;
        font-weight: 900;
        line-height: 1.1;
        }

        .teacher-intro p {
            font-size: 0.95rem;
            line-height: 1.35;
            margin: 0;
            color: var(--white);
        }

        .teacher-content {
            background: var(--white);
            padding: 3rem;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            margin-bottom: 3rem;
        }

        .teacher-content p {
            font-size: 1.1rem;
            line-height: 1.9;
            margin-bottom: 1.5rem;
            color: var(--dark-gray);
            text-align: justify;
        }

        .credentials-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2.5rem;
            margin-top: 3rem;
        }

        /* Teacher Books Section */
.books-section {
  margin: 3rem 0 3.5rem;
}

.books-section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.books-section-header h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  color: var(--primary-blue);
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.books-section-header p {
  font-size: 1.05rem;
  color: var(--dark-gray);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.7;
}

.books-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.book-item {
  flex: 0 0 calc((100% - 84px) / 4);
  max-width: 190px;
}

.book-cover-link {
  display: block;
  width: 100%;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.books-grid .book-item:first-child .book-cover {
  transform: scale(0.94);
  transform-origin: center center;
}

.book-cover-link:hover {
  transform: translateY(-6px);
}

.book-cover {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}

@media (max-width: 1100px) {
  .book-item {
    flex: 0 0 calc((100% - 56px) / 3);
    max-width: 190px;
  }
}

@media (max-width: 768px) {
  .book-item {
    flex: 0 0 calc((100% - 28px) / 2);
    max-width: 180px;
  }
}

@media (max-width: 520px) {
  .book-item {
    flex: 0 0 100%;
    max-width: 220px;
  }
}


        .credential-card {
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 107, 53, 0.1));
            padding: 2.5rem;
            border-radius: 20px;
            border-left: 5px solid var(--orange);
        }

        .credential-card h4 {
            font-size: 1.8rem;
            color: var(--primary-blue);
            margin-bottom: 1.5rem;
            font-weight: 700;
        }

        .credential-card ul {
            list-style: none;
        }

        .credential-card ul li {
            padding: 0.8rem 0;
            padding-left: 2rem;
            position: relative;
            font-size: 1.05rem;
            color: var(--dark-gray);
        }

        .credential-card ul li::before {
            content: '▸';
            position: absolute;
            left: 0;
            color: var(--orange);
            font-weight: bold;
            font-size: 1.2rem;
        }

        /* Contact Page */
        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            margin-top: 3rem;
        }

        .contact-info {
            background: var(--white);
            padding: 3rem;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        .contact-info h3 {
            font-size: 2rem;
            color: var(--primary-blue);
            margin-bottom: 2rem;
            font-weight: 700;
        }

        .contact-item {
            display: flex;
            align-items: center;
            margin-bottom: 2rem;
            padding: 1rem;
            background: var(--light-gray);
            border-radius: 10px;
            transition: all 0.3s ease;
        }

        .contact-item:hover {
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 107, 53, 0.1));
            transform: translateX(5px);
        }

        .contact-item i {
            font-size: 1.8rem;
            color: var(--orange);
            margin-right: 1.5rem;
            width: 40px;
        }

        .contact-item div p:first-child {
            font-weight: 600;
            color: var(--primary-blue);
            margin-bottom: 0.3rem;
        }

        .contact-item div p:last-child {
            color: var(--dark-gray);
        }

        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 2rem;
        }

        .social-btn {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 1.5rem;
            transition: all 0.3s ease;
            text-decoration: none;
        }

        .social-btn.instagram {
            background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        }

        .social-btn.facebook {
            background: #1877f2;
        }

        .social-btn:hover {
            transform: translateY(-5px) scale(1.1);
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }

        .contact-form {
            background: var(--white);
            padding: 3rem;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        .contact-form h3 {
            font-size: 2rem;
            color: var(--primary-blue);
            margin-bottom: 2rem;
            font-weight: 700;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--primary-blue);
            font-weight: 600;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 1rem;
            border: 2px solid var(--light-gray);
            border-radius: 10px;
            font-size: 1rem;
            font-family: 'Poppins', sans-serif;
            transition: all 0.3s ease;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--orange);
        }

        .form-group textarea {
            resize: vertical;
            min-height: 150px;
        }

        .submit-btn {
            width: 100%;
            padding: 1.2rem;
            background: linear-gradient(135deg, var(--orange), var(--bright-yellow));
            color: var(--white);
            border: none;
            border-radius: 10px;
            font-size: 1.1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .submit-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
        }

        .american-college-banner {
            background: linear-gradient(135deg, var(--primary-blue), #1a2b6d);
            padding: 2rem;
            text-align: center;
            border-radius: 15px;
            margin-bottom: 3rem;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }

        .american-college-banner h3 {
            font-family: 'Montserrat', sans-serif;
            font-size: 2.5rem;
            color: var(--bright-yellow);
            font-weight: 900;
            text-transform: uppercase;
        }

        /* NVO Page */
        .nvo-content {
            background: var(--white);
            padding: 3rem;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        .nvo-content h3 {
            font-size: 2.2rem;
            color: var(--primary-blue);
            margin-bottom: 1.5rem;
            font-weight: 700;
        }

        .nvo-content p {
            font-size: 1.1rem;
            line-height: 1.8;
            margin-bottom: 1.5rem;
            color: var(--dark-gray);
        }

        .nvo-content ul {
            list-style: none;
            margin: 1.5rem 0;
        }

        .nvo-content ul li {
            padding: 1rem 0;
            padding-left: 2.5rem;
            position: relative;
            font-size: 1.1rem;
            color: var(--dark-gray);
        }

        .nvo-content ul li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--orange);
            font-weight: bold;
            font-size: 1.5rem;
        }

        .grades-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .grade-badge {
  background: linear-gradient(135deg, var(--orange), var(--bright-yellow));
  color: var(--white);
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: none;
  transition: none;
}

        .grade-badge:hover {
  transform: none;
  box-shadow: none;
}

        /* Floating AI Chat Button */
        .chat-bubble {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--orange), var(--bright-yellow));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  z-index: 9999;
  transition: none;
  animation: none;
}



        .chat-bubble:hover {
  transform: none;
  box-shadow: none;
}

        .chat-bubble i {
            font-size: 2rem;
            color: var(--white);
        }

        .chat-window {
            position: fixed;
            bottom: 120px;
            right: 30px;
            width: 380px;
            max-height: 600px;
            background: var(--white);
            border-radius: 20px;
            box-shadow: 0 10px 50px rgba(0,0,0,0.3);
            z-index: 9998;
            display: none;
            flex-direction: column;
            overflow: hidden;
        }

        .chat-window.active {
            display: flex;
            animation: slideUp 0.3s ease;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .chat-header {
            background: linear-gradient(135deg, var(--primary-blue), #1a2b6d);
            padding: 1.5rem;
            color: var(--white);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .chat-header h4 {
            font-size: 1.3rem;
            font-weight: 700;
        }

        .chat-close {
            background: none;
            border: none;
            color: var(--white);
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .chat-close:hover {
            transform: rotate(90deg);
        }

        .chat-body {
            padding: 2rem;
            overflow-y: auto;
            flex: 1;
        }

        .chat-body .form-group {
            margin-bottom: 1.2rem;
        }

        .chat-body label {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--primary-blue);
            font-weight: 600;
            font-size: 0.95rem;
        }

        .chat-body input,
        .chat-body textarea {
            width: 100%;
            padding: 0.8rem;
            border: 2px solid var(--light-gray);
            border-radius: 8px;
            font-size: 0.95rem;
            font-family: 'Poppins', sans-serif;
            transition: all 0.3s ease;
        }

        .chat-body input:focus,
        .chat-body textarea:focus {
            outline: none;
            border-color: var(--orange);
        }

        .chat-body textarea {
            resize: vertical;
            min-height: 100px;
        }

        .chat-submit {
            width: 100%;
            padding: 1rem;
            background: linear-gradient(135deg, var(--orange), var(--bright-yellow));
            color: var(--white);
            border: none;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .chat-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
        }

        /* Footer wrap – spacing from content */
.footer-wrap{
  width: 100%;
  padding: 0 10px;
  margin-top: 120px;
}

/* Footer container */
footer{
  width: 100%;
  background: linear-gradient(135deg, var(--primary-blue), #1a2b6d);
  color: var(--white);
  border-radius: 28px;
  padding: 2.8rem 0 1.4rem;
  box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}

/* Inner content – center everything properly */
.footer-content{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

/* Logo row */
.footer-logo{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.footer-logo-img{
  height: 54px;
  width: auto;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  padding: 8px 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

.footer-logo span{
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--bright-yellow);
  line-height: 1;
}

/* Subtitle text */
.footer-text{
  max-width: 820px;
  margin: 0.3rem auto 1.8rem;
  font-size: 1.05rem;
  opacity: 0.95;
  line-height: 1.6;
}

/* Links row */
.footer-links{
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 0 auto 2rem;
  padding: 0;
}

.footer-links a{
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  opacity: 0.95;
  transition: 0.25s ease;
}

.footer-links a:hover{
  color: var(--bright-yellow);
  opacity: 1;
}

/* Bottom line */
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.2rem;
  margin-top: 1.2rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Sample Tasks Section */
.tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  align-items: start;
}

.task-card {
  background: var(--white);
  border: 1px solid rgba(13, 27, 75, 0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: none;
  transition: none;
  height: auto;
  align-self: start;
}

.task-image-wrap {
  background: #f7f7f7;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.task-image {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  border-radius: 14px;
  display: block;
}

.task-image-clickable {
  cursor: zoom-in;
}

.task-card-body {
  padding: 1rem 1.2rem 1.2rem;
}

.task-card-body h3 {
  font-size: 1.2rem;
  color: var(--primary-blue);
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.task-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--orange), var(--bright-yellow));
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: none;
  box-shadow: none;
}

.task-btn:hover {
  transform: none;
  box-shadow: none;
}

.task-answer {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(13, 27, 75, 0.04);
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  color: var(--dark-gray);
  font-size: 1rem;
  line-height: 1.6;
}

.task-answer.show {
  display: block;
}

.task-image-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 55, 0.92);
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.task-image-modal.hidden {
  display: none;
}

.task-image-modal-content {
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: none;
  background: white;
}

.task-image-modal-close {
  position: absolute;
  top: 24px;
  right: 30px;
  font-size: 2.4rem;
  line-height: 1;
  color: white;
  cursor: pointer;
  font-weight: 700;
}

        /* Responsive */
        @media (max-width: 768px) {
            .mobile-menu-btn {
                display: block;
            }

            .nav-links {
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background: var(--primary-blue);
                flex-direction: column;
                gap: 0;
                padding: 1rem 0;
                display: none;
            }

            .nav-links.active {
                display: flex;
            }

            .nav-links li {
                width: 100%;
                text-align: center;
                padding: 1rem 0;
            }

            .hero h1 {
                font-size: 2.5rem;
            }

            .hero h2 {
                font-size: 1.2rem;
            }

            .popup-content {
                padding: 2rem;
                margin: 1rem;
            }

            .popup-content h2 {
                font-size: 1.8rem;
            }

            .section-header h1,
            .section-header h2 {
                font-size: 2rem;
            }

            .contact-grid,
            .location-content {
                grid-template-columns: 1fr;
            }

            .chat-window {
                width: calc(100% - 40px);
                right: 20px;
                left: 20px;
            }

            .cta-buttons {
                flex-direction: column;
            }

            .features-grid,
            .courses-grid {
                grid-template-columns: 1fr;
            }

            }

        /* Utilities */
        .text-center {
            text-align: center;
        }

        .mb-2 {
            margin-bottom: 2rem;
        }

        .mt-3 {
            margin-top: 3rem;
        }

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

        .hidden {
            display: none;
        }
        /* Cookie Banner */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9990;
  background: rgba(255,255,255,0.96);
  border: 2px solid rgba(192,136,67,0.35);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
  padding: 1.2rem 1.2rem;
  display: none;
}

.cookie-banner.show { display: block; }

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.2rem;
  align-items: center;
}

.cookie-text h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.cookie-text p {
  margin: 0;
  color: var(--dark-gray);
  font-size: 0.98rem;
  line-height: 1.55;
}

.cookie-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-btn {
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Poppins', sans-serif;
}

.cookie-accept {
  background: linear-gradient(135deg, var(--orange), var(--bright-yellow));
  color: white;
  box-shadow: 0 8px 22px rgba(210,102,42,0.25);
}

.cookie-accept:hover { transform: translateY(-2px); }

.cookie-decline {
  background: transparent;
  border: 2px solid rgba(13,27,75,0.25);
  color: var(--primary-blue);
}

.cookie-decline:hover {
  background: rgba(13,27,75,0.06);
  transform: translateY(-2px);
}

.cookie-link {
  color: var(--primary-blue);
  font-weight: 700;
  text-decoration: underline;
}
/* Cookie settings button (FAB) */
.cookie-fab{
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;

  display: none; /* показва се само когато има избор */
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, var(--orange), var(--bright-yellow));
  color: #fff;
  font-size: 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);

  z-index: 9996; /* под popup (10000), над сайта */
}
.cookie-fab.show{ display: flex; }
.cookie-fab:hover{ transform: translateY(-2px); }

.cookie-banner{ right: 110px; }
@media (max-width: 768px){ .cookie-banner{ right: 20px; } }

@media (max-width: 768px) {
  .cookie-inner { grid-template-columns: 1fr; }
  .cookie-actions { justify-content: flex-start; }
}
/* Schedule */
.schedule-wrap {
  background: var(--white);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border: 2px dashed rgba(210,102,42,0.55);
  overflow-x: auto;
}

.schedule-head {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.schedule-pill {
  display: block;
  flex: 1 1 280px;
  background: linear-gradient(135deg, rgba(210,102,42,0.12), rgba(192,136,67,0.12));
  border: 1px solid rgba(210,102,42,0.22);
  color: var(--primary-blue);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: center;
}

.schedule-pill strong {
  white-space: nowrap;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
}

.schedule-table th,
.schedule-table td {
  padding: 0.9rem 0.8rem;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-size: 1rem;
  line-height: 1.5;
}

.schedule-table th {
  background: linear-gradient(135deg, var(--primary-blue), #1a2b6d);
  color: var(--white);
  font-weight: 800;
}

.schedule-table th:nth-child(2),
.schedule-table th:nth-child(3),
.schedule-table td:nth-child(2),
.schedule-table td:nth-child(3) {
  white-space: nowrap;
}

.schedule-table tr:hover td {
  background: rgba(13,27,75,0.04);
}
/* Dropdown nav */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 320px;
  background: rgba(13, 27, 75, 0.98);
  border: 1px solid rgba(192,136,67,0.35);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
  padding: 0.7rem;
  display: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  transition: 0.25s ease;
}

.dropdown-menu a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--bright-yellow);
}

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

.dropdown-toggle i {
  font-size: 0.9rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    display: none;
    margin: 0.6rem 1rem 0.4rem;
    min-width: auto;
    border-radius: 12px;
  }

  .dropdown.open .dropdown-menu {
    display: block !important;
  }

  .dropdown:hover .dropdown-menu {
    display: none;
  }
}
.map-embed{
  border-radius: 16px;
  overflow: hidden;
  height: 320px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  background: var(--white);
  margin-top: 1rem;
}
.map-embed iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.teacher-photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  background: transparent;
}

@media (max-width: 768px) {
  .teacher-photo {
    height: auto;
    object-position: center;
  }
}
.teacher-intro-content {
  background: linear-gradient(135deg, var(--primary-blue), #1a2b6d);
  padding: 1rem 1.2rem 1.1rem;
}
/* Popup subtitle text */
.popup-content p{
  color: var(--white);
  font-weight: 700;   /* да е по-четимо */
  opacity: 0.95;
}

/* ===== REVIEWS MODAL - FINAL CLEAN VERSION ===== */

#reviewsModal {
  padding: 12px;
  align-items: center;
  justify-content: center;
}

#reviewsModal .reviews-popup-content {
  width: min(92vw, 760px);
  max-height: 86vh;
  padding: 1.25rem 1.25rem 1.1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 4px solid var(--bright-yellow);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, #1a2b6d 100%);
  position: relative;
  text-align: center;
}

#reviewsModal .popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  z-index: 5;
}

#reviewsModal .popup-icon {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
}

#reviewsModal h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.15;
  margin-bottom: 0.85rem;
  color: var(--white);
  padding: 0 2.2rem;
}

#reviewsModal .reviews-box {
  flex: 1;
  overflow-y: auto;
  max-height: calc(86vh - 210px);
  padding: 0.95rem 1rem;
  margin-top: 0.2rem;
  border: 2px dashed var(--bright-yellow);
  border-radius: 16px;
  background: rgba(255,255,255,0.12);
  text-align: left;
}

#reviewsModal .reviews-box::-webkit-scrollbar {
  width: 8px;
}

#reviewsModal .reviews-box::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
}

#reviewsModal .reviews-box::-webkit-scrollbar-thumb {
  background: rgba(192,136,67,0.95);
  border-radius: 999px;
}

#reviewsModal .reviews-item {
  padding: 0.8rem 0;
}

#reviewsModal .reviews-item + .reviews-item {
  border-top: 1px solid rgba(255,255,255,0.16);
}

#reviewsModal .reviews-name {
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.2rem;
}

#reviewsModal .reviews-meta {
  color: #E3CEAF;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.45rem;
}

#reviewsModal .reviews-quote {
  color: var(--white);
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 600;
}

#reviewsModal .reviews-quote::before {
  content: "“";
  color: var(--bright-yellow);
  font-weight: 900;
}

#reviewsModal .reviews-quote::after {
  content: "”";
  color: var(--bright-yellow);
  font-weight: 900;
}

#reviewsModal .reviews-placeholder {
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 600;
}

#reviewsModal .popup-cta {
  margin-top: 0.85rem;
  align-self: center;
  padding: 0.85rem 1.7rem;
  font-size: 0.98rem;
}

@media (max-width: 768px) {
  #reviewsModal {
    padding: 10px;
  }

  #reviewsModal .reviews-popup-content {
    width: 94vw;
    max-height: calc(100vh - 20px);
    padding: 1rem 0.85rem 0.9rem;
    border-width: 3px;
    border-radius: 20px;
  }

  #reviewsModal .popup-close {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }

  #reviewsModal .popup-icon {
    font-size: 1.9rem;
    margin-bottom: 0.15rem;
  }

  #reviewsModal h2 {
    font-size: 1.3rem;
    line-height: 1.12;
    margin-bottom: 0.65rem;
    padding: 0 2rem;
  }

  #reviewsModal .reviews-box {
    max-height: calc(100vh - 220px);
    padding: 0.8rem 0.8rem;
    border-radius: 14px;
  }

  #reviewsModal .reviews-name {
    font-size: 0.92rem;
  }

  #reviewsModal .reviews-meta {
    font-size: 0.76rem;
    margin-bottom: 0.3rem;
  }

  #reviewsModal .reviews-quote,
  #reviewsModal .reviews-placeholder {
    font-size: 0.78rem;
    line-height: 1.42;
  }

  #reviewsModal .popup-cta {
    margin-top: 0.7rem;
    padding: 0.75rem 1.35rem;
    font-size: 0.92rem;
  }
}

.schedule-table tbody tr td:first-child {
  font-weight: 800 !important;
  white-space: nowrap;
}

.nowrap {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .reviews-grid {
    column-count: 1;
    column-gap: 0;
  }

  .review-card {
    margin-bottom: 1.5rem;
  }
}

.mobile-only-break {
  display: none;
}

.mobile-last-line {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .mobile-only-break {
    display: block;
  }
}

/* ===== FINAL MOBILE FIXES - PHONE ONLY ===== */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }

  body {
    -webkit-text-size-adjust: 100%;
  }

  .container {
    padding: 0 1rem;
  }

  /* 1) INITIAL POPUP */
  #heroPopup {
  justify-content: center;
  align-items: center;
  padding:
    calc(env(safe-area-inset-top, 0px) + 12px)
    12px
    12px;
}

  #heroPopup .popup-content {
  width: 100%;
  max-width: 430px;
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 24px);
  overflow-y: auto;

  padding: 2.7rem 1rem 1.15rem;
  border-width: 3px;
  border-radius: 18px;
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

 #heroPopup .popup-close {
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#heroPopup .popup-icon {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 1.7rem;
  line-height: 1;
  margin: 0 auto 0.55rem;
}

#heroPopup .popup-content h2 {
  font-size: 1.42rem;
  line-height: 1.14;
  margin: 0 auto 0.7rem;
  padding: 0 0.55rem;
  text-align: center;
}

  #heroPopup .popup-placeholder {
    padding: 0.9rem 0.8rem;
    margin-top: 0.8rem;
    font-size: 1rem;
    line-height: 1.45;
  }

  #heroPopup .popup-cta {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    font-size: 1rem;
  }

  /* 2) AK SCHEDULE - NO HORIZONTAL SCROLL */
  .calendar-section {
    padding: 1rem 0.75rem !important;
  }

  .schedule-wrap {
    padding: 0.75rem 0.55rem !important;
    overflow-x: hidden !important;
  }

  .schedule-head {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    align-items: stretch;
  }

  .schedule-pill {
    width: 100%;
    font-size: 0.86rem !important;
    line-height: 1.35;
    padding: 0.7rem 0.75rem !important;
    text-align: center;
  }

  .schedule-pill strong {
    white-space: nowrap;
  }

  .schedule-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 0.7rem 0.2rem !important;
    font-size: 0.8rem !important;
    line-height: 1.25 !important;
    text-align: center;
    vertical-align: middle;
  }

  .schedule-table th:first-child,
  .schedule-table td:first-child {
    width: 29% !important;
    white-space: nowrap !important;
    font-weight: 800 !important;
  }

  .schedule-table th:nth-child(2),
  .schedule-table th:nth-child(3),
  .schedule-table td:nth-child(2),
  .schedule-table td:nth-child(3) {
    width: 35.5% !important;
    white-space: normal !important;
  }

  /* 3) FOOTER BRAND ON ONE ROW */
  footer {
    padding: 2rem 0 1.2rem;
  }

  .footer-content {
    padding: 0 1rem;
  }

  .footer-logo {
    gap: 0.55rem;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
  }

  .footer-logo-img {
    height: 42px;
    padding: 6px 8px;
    flex: 0 0 auto;
  }

  .footer-logo span {
    white-space: nowrap;
    font-size: clamp(1.35rem, 6vw, 1.75rem);
    line-height: 1;
  }

  /* 4) TEACHER PAGE TEXT - REMOVE UGLY JUSTIFY SPACING */
  .teacher-content {
    padding: 1.4rem 1.2rem;
  }

  .teacher-content p {
    text-align: left !important;
    word-spacing: normal;
    letter-spacing: normal;
    hyphens: none;
    line-height: 1.7;
    font-size: 1.02rem;
  }

  /* 5) CONTACTS PAGE - FIT ENTIRE SCREEN */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 1.2rem !important;
  }

  .contact-grid > * {
    min-width: 0;
  }

  .contact-info,
  .contact-form {
    padding: 1.35rem 1rem !important;
    overflow: hidden;
  }

  .contact-info h3,
  .contact-form h3 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .contact-item {
    padding: 0.9rem;
    align-items: flex-start;
  }

  .social-links {
    flex-wrap: wrap;
  }

  .map-embed {
    width: 100%;
    max-width: 100%;
    height: 280px !important;
    overflow: hidden;
  }

  .map-embed iframe {
    width: 100% !important;
    height: 100% !important;
    display: block;
    border: 0;
  }
}

@media (max-width: 768px) {
  .welcome-content {
    padding: 1.5rem 1rem !important;
  }

  .welcome-content h3 {
    font-size: 1.55rem !important;
    line-height: 1.18 !important;
    word-break: normal;
    overflow-wrap: normal;
  }

  .welcome-content h4 {
    font-size: 1.45rem !important;
    line-height: 1.22 !important;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
  }

  .brand-lock {
    display: block;
    white-space: nowrap;
  }
}

.popup-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.popup-review-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    background: #FFFFFF;
    color: #0D1B4B;
    border: 2px solid #FFFFFF;
    transition: all 0.3s ease;
}

.popup-review-btn:hover {
    background: #FFFFFF;
    color: #0D1B4B;
    border-color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: none;
}

.popup-review-btn:active {
    transform: translateY(0);
}
/* =========================
   HERO POPUP - DESKTOP FINAL FIX
   Телефонът не се пипа
========================= */
@media (min-width: 769px) {
  #heroPopup {
    padding: 16px;
    overflow: hidden;
    align-items: center;
    justify-content: center;
  }

  #heroPopup .popup-content {
    width: min(760px, calc(100vw - 32px));
    max-width: 760px;
    max-height: calc(100vh - 32px);
    padding: 18px 26px 22px;
    border-width: 4px;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  #heroPopup .popup-icon {
    font-size: 2rem;
    margin-bottom: 0.35rem;
    line-height: 1;
  }

  #heroPopup .popup-content h2 {
    font-size: clamp(1.95rem, 2.45vw, 3rem);
    line-height: 1.08;
    margin: 0 0 0.6rem;
    padding: 0 1.2rem;
  }

  #heroPopup .popup-content p {
    font-size: 0.95rem;
    line-height: 1.35;
    margin: 0 0 0.85rem;
  }

  #heroPopup .popup-placeholder {
    margin-top: 0.7rem;
    margin-bottom: 0;
    padding: 1rem 1.15rem;
    font-size: 1rem;
    line-height: 1.4;
  }

  #heroPopup .popup-buttons {
    margin-top: 1rem;
    gap: 12px;
  }

  /* Махаме излишния top margin само вътре в блока с бутоните */
  #heroPopup .popup-buttons .popup-cta {
    margin-top: 0;
  }

  /* Бутонът за review НЕ се уголемява на desktop */
  #heroPopup .popup-buttons .popup-review-btn {
    margin-top: 0;
  }

  #heroPopup .popup-close {
    top: 12px;
    right: 12px;
    width: 46px;
    height: 46px;
    font-size: 1.25rem;
  }
}

.contact-review-wrap {
    margin-top: 1.4rem;
    display: flex;
    justify-content: center;
}

.contact-review-btn {
    background: var(--orange);
    color: var(--white);
    border: 2px solid var(--orange);
    transition: all 0.3s ease;
}

.contact-review-btn:hover {
    background: #b85722;
    color: var(--white);
    border-color: #b85722;
    transform: translateY(-3px);
}

.contact-review-btn:active {
    transform: translateY(0);
}

.cta-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
}

/* ===== NEW CONTENT / SEO BLOCKS ===== */

.home-seo-intro {
  background: var(--light-gray);
  padding: 1.2rem 0 0;
}

.home-seo-intro p {
  background: var(--white);
  padding: 1.2rem 1.4rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--dark-gray);
}

.home-seo-intro a {
  color: var(--primary-blue);
  font-weight: 700;
  text-decoration: underline;
}

.course-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 2rem;
  font-weight: 800;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.course-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--bright-yellow));
  border-radius: 10px;
}

.course-section > p {
  max-width: 950px;
  margin: 0 auto 1.4rem;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--dark-gray);
  text-align: center;
}

@media (max-width: 768px) {
  .footer-content {
    padding: 0 1rem;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: nowrap;
  }

  .footer-logo-img {
    height: 42px;
    width: auto;
    flex: 0 0 auto;
  }

  .footer-logo span {
    font-size: 1.5rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .footer-text {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0.6rem auto 1.4rem;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
  }

  .footer-links a {
    font-size: 1.1rem;
  }

  .footer-bottom {
    margin-top: 1.4rem;
    padding-top: 1rem;
  }
}