/* RESET I BAZA */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  color: #2d3748;
  line-height: 1.6;
}

/* HEADER */
.header {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
}

.header-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); 
}

.logo-mobile {
  display: none;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  gap: 10px;
  transition: opacity 0.3s ease;
}

.logo-link:hover {
  opacity: 0.9;
}

.logo-text {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 6px 15px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.search:hover {
  background: rgba(255, 255, 255, 0.25);
}

.search i {
  color: #e2e8f0;
  margin-right: 8px;
  font-size: 14px;
}

.search input {
  background: transparent;
  border: none;
  color: white;
  width: 180px;
  padding: 6px 0;
  font-size: 14px;
  outline: none;
}

.search input::placeholder {
  color: rgba(226, 232, 240, 0.7);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  z-index: 1000;
  margin-top: 8px;
  overflow: hidden;
  display: none; 
  border: 1px solid #e2e8f0;
}

.search-results.active {
  display: block;
}

.search-item {
  display: block;
  padding: 12px 15px;
  color: #2d3748;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s;
  text-align: left;
}

.search-item:last-child {
  border-bottom: none;
}

.search-item:hover {
  background: #f8fafc;
  color: #4f46e5;
}

.search-item strong {
  display: block;
  font-size: 14px;
}

.search-item span {
  font-size: 12px;
  color: #64748b;
}

.no-results {
  padding: 15px;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  z-index: 1000;
  margin-top: 8px;
  overflow: hidden;
  display: none;
  border: 1px solid #e2e8f0;
}

.search-results.active {
  display: block;
}

.search-item {
  display: flex;
  flex-direction: column; 
  gap: 4px;             
  padding: 12px 16px;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s;
  align-items: flex-start; 
}

.search-item:hover {
  background: #f8fafc;
}

.search-item strong {
  font-size: 15px;
  color: #1e293b;
  line-height: 1.2;
}

.search-item-author {
  font-size: 13px;
  color: #64748b;
  font-style: italic;
  margin-bottom: 4px; 
}

.search-badge {
  font-size: 10px;      
  padding: 2px 8px;     
  border-radius: 6px;   
  font-weight: 600;
  letter-spacing: 0.3px;
  width: fit-content;   
}

.search-badge.streszczenie {
  background: #e0e7ff;
  color: #4338ca;
}

.search-badge.opracowanie {
  background: #dcfce7;
  color: #15803d;
}

.search-badge.kurs {
  background: #ffedd5;
  color: #c2410c;       
}

.search-badge.quiz {
  background: #f3e8ff;
  color: #7e22ce;
}

.no-results {
  padding: 15px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

/* STRONA GŁÓWNA */
.layout {
  max-width: 1000px; 
  margin: 30px auto;
  padding: 0 20px;
  display: block;
}

.hero {
  text-align: center;
  padding: 40px 20px;
  margin-bottom: 40px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  border: 1px solid #f1f5f9;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 15px;
  color: #1e293b;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  font-size: 18px;
}

.emoji-wave {
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  color: initial;
  display: inline-block;
}

.section-title {
  margin-bottom: 30px;
  position: relative;
}

.section-title h2 {
  font-size: 24px;
  color: #1e293b;
  margin-bottom: 10px;
}

.title-underline {
  width: 60px;
  height: 4px;
  background: #6366f1;
  border-radius: 2px;
}

.lectures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.lecture-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.lecture-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.1);
  border-color: #c7d2fe;
}

.card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 13px;
}

.badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
}

.badge.streszczenie {
  background: #e0e7ff;
  color: #4f46e5;
}

.badge.opracowanie {
  background: #dcfce7;
  color: #166534;
}

.badge.quiz {
  background: #f3e8ff;
  color: #7e22ce;
}

.quizzes-section {
  margin-bottom: 50px;
}

.epoch {
  color: #94a3b8;
  font-weight: 500;
}

.card-title {
  margin: 0 0 8px 0;
  font-size: 20px;
  line-height: 1.4;
}

.card-title a {
  text-decoration: none;
  color: #2d3748;
  transition: color 0.2s;
}

.card-title a:hover {
  color: #4f46e5;
}

.card-author {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 12px;
  font-style: italic;
}

.card-desc {
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4f46e5;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: gap 0.3s ease;
}

.card-btn:hover {
  gap: 12px;
  color: #4338ca;
}

.about-section {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 16px;
  padding: 40px;
  color: white;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.about-section h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: white;
}

.about-section p {
  color: #cbd5e1;
  max-width: 700px;
  margin: 0 auto 25px auto;
  font-size: 16px;
  line-height: 1.7;
}

.contact-box {
  background: rgba(255,255,255,0.1);
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 15px 30px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.3s;
}

.contact-box:hover {
  background: rgba(255,255,255,0.15);
}

.contact-box i {
  font-size: 24px;
  color: #818cf8;
}

.contact-box a {
  color: white;
  font-weight: 600;
  text-decoration: none;
}

.contact-box p {
  margin: 0;
}

.home-layout {
  max-width: 900px; 
  padding: 0 40px; 
}

/* STRONA LEKTURY / ARTYKUŁU */
.content {
  background: white;
  padding: 0;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.08);
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.content-header {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  padding: 30px 40px;
  color: white;
  border-bottom: 4px solid #818cf8;
}

.content-header h1 {
  margin-bottom: 8px;
  color: white;
  font-size: 32px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.meta {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
  font-size: 15px;
  font-style: normal;
}

.content-body {
  padding: 30px;
}

.content h2 {
  margin-top: 10px;
  margin-bottom: 16px;
  padding-left: 15px;
  font-weight: 600;
  position: relative;
  font-size: 22px;
  color: #2d3748; 
}

.content h2:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(to bottom, #6366f1, #8b5cf6);
  border-radius: 2px;
}

.content h3 {
  font-size: 19px;
  color: #4338ca;
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  line-height: 1.4;
}

.content p,
.content li {
  margin-bottom: 15px;
  line-height: 1.7;
  font-size: 16px;
}

.content ul {
  padding-left: 24px;
  margin-bottom: 25px;
}

.content li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 8px;
}

.content li:before {
  content: '•';
  color: #6366f1;
  font-weight: bold;
  position: absolute;
  left: -12px;
}

.content ol {
  padding: 20px 20px 20px 40px;
  background-color: #f8fafc;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  margin-bottom: 25px;
}

.content ol li {
  list-style-type: decimal; 
  padding-left: 5px;
  margin-bottom: 12px;
}

.content ol li::marker {
  color: #6366f1;
  font-weight: 700;
}

.content ol li:before {
  content: none;
}

.content strong {
  font-weight: 600;
}

.see-also {
  margin-top: 50px;
  margin-bottom: 20px;
}

.see-also-title {
  font-size: 20px;
  color: #1e293b;
  margin-bottom: 20px;
  font-weight: 700;
  padding-left: 5px;
}

.see-also-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center; 
}

.see-also-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none !important;
  color: #2d3748 !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex: 1;
  min-width: 300px; 
  max-width: 480px; 
}

.see-also-card:hover {
  border-color: #6366f1;
  background-color: #fcfdff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.12);
  transform: translateY(-2px);
}

.see-also-icon {
  background: #f1f5f9; 
  color: #4f46e5;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.see-also-info {
  flex-grow: 1;
}

.see-also-info h4 {
  font-size: 17px;
  margin: 0 0 2px 0 !important;
  color: #1e293b;
  font-weight: 600;
}

.see-also-info p {
  font-size: 14px;
  color: #64748b;
  margin: 0 !important;
  line-height: 1.4;
}

.see-also-chevron {
  color: #cbd5e1;
  font-size: 16px;
  transition: transform 0.3s ease;
}

.see-also-card:hover .see-also-chevron {
  color: #6366f1;
  transform: translateX(4px);
}

/* STRONA MATURY */
.emoji-fix {
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: initial;
  color: initial;
  display: inline-block;
}

.matura-promo {
  background: white;
  border: 2px solid #e0e7ff;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.matura-promo:hover {
  border-color: #6366f1;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.1);
}

.promo-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  z-index: 2;
}

.promo-text h2 {
  font-size: 24px;
  color: #1e293b;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #4f46e5, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.promo-text p {
  color: #64748b;
  font-size: 16px;
  margin: 0;
  max-width: 550px;
}

.promo-btn {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.promo-btn i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.promo-btn:hover i {
  transform: translateX(4px);
}

.course-list {
  max-width: 850px;
  margin: 0 auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 10px;
}

.course-module-item {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none !important; 
  color: #2d3748 !important; 
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-module-item h3 {
  text-decoration: none !important;
  font-size: 17px;
  margin: 0 0 2px 0 !important;
  color: #1e293b;
  border: none !important;
  padding: 0 !important;
}

.course-module-item:hover {
  border-color: #6366f1;
  background-color: #fcfdff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.12);
  transform: translateY(-2px);
}

.module-number {
  background: #f1f5f9;
  color: #4f46e5;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.module-info {
  flex-grow: 1;
}

.module-info h3::before { display: none; }

.module-info p {
  font-size: 14px;
  color: #64748b;
  margin: 0 !important;
  line-height: 1.4;
  text-decoration: none !important; 
}

.module-chevron {
  color: #cbd5e1;
  font-size: 18px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.course-module-item:hover .module-chevron {
  color: #6366f1;
  transform: translateX(4px);
}

/* STRONA QUIZU */
.quiz-intro-card {
    background: #f8faff; 
    border: 2px dashed #c7d2fe; 
    border-radius: 20px;
    padding: 40px 20px;
    margin: 20px 0 40px 0;
    text-align: center;
}

.quiz-intro-card h2 {
    padding-left: 0 !important;
    margin-bottom: 10px;
}

.quiz-intro-card h2:before {
    display: none !important; 
}

.quiz-header-icon {
    background: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    color: #6366f1;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.quiz-intro-card p {
    color: #64748b;
    max-width: 500px;
    margin: 0 auto 25px auto !important;
}

.quiz-intro-card .promo-btn {
    margin: 0 auto !important;
    display: inline-flex !important;
}

.quiz-wrapper {
  text-align: center;
  padding: 20px 0;
}

.quiz-start-btn {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
  margin-top: 20px;
}

.quiz-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.question-text {
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 25px;
  text-align: left;
}

.answers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.answer-btn {
  background: white;
  border: 2px solid #e2e8f0;
  padding: 15px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s ease;
  text-align: left;
  display: flex;
  align-items: center;
}

.answer-btn:hover {
  border-color: #6366f1;
  background: #f8fafc;
}

.answer-btn.selected {
    border-color: #6366f1 !important; 
    background: #f8fafc;
    box-shadow: 0 0 0 1px #6366f1;
}

.answer-btn.selected {
    border-color: #6366f1 !important;
    background: #f8fafc;
    box-shadow: 0 0 0 1px #6366f1;
}

.quiz-nav-bottom {
    margin-top: 25px;
    display: flex;
    justify-content: center; 
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.back-btn {
    background: none;
    border: none;
    color: #94a3b8; 
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    padding: 10px 20px;
    border-radius: 8px;
}

.back-btn:hover {
    color: #4f46e5;
    background: #f8fafc;
}

.back-btn i {
    font-size: 12px;
}

/* WYNIKI QUIZU */
.detailed-results {
    text-align: left; 
    margin: 30px 0;
    border-top: 2px solid #e2e8f0;
    padding-top: 20px;
}

.detailed-results h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #1e293b;
}

.review-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.review-question {
    font-size: 15px;
    margin-bottom: 12px;
    color: #1e293b;
    line-height: 1.4;
}

.review-answers {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.review-answer-box {
    padding: 8px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    color: #64748b;
    position: relative;
}

.correct-choice {
    background: #dcfce7 !important;
    border-color: #22c55e !important;
    color: #166534 !important;
    font-weight: 600;
}

.wrong-choice {
    background: #fee2e2 !important;
    border-color: #ef4444 !important;
    color: #991b1b !important;
    font-weight: 600;
}

.correct-choice::after {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 12px;
}

.wrong-choice::after {
    content: '\f00d';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 12px;
}

.btn-secondary {
    background: #6366f1 !important; 
    opacity: 0.9;
}

.result-buttons {
    display: flex;
    flex-direction: row; 
    justify-content: center; 
    gap: 20px; 
    margin-top: 30px;
    width: 100%;
    flex-wrap: wrap; 
}

button.promo-btn {
    border: none;
    cursor: pointer;
    width: auto; 
    min-width: 320px; 
    position: relative;
    justify-content: center;
    padding: 14px 50px;
    font-family: inherit;
    display: flex;
    align-items: center;
}

button.promo-btn span {
    flex: none;
}

button.promo-btn i {
    position: absolute;
    right: 20px;
    font-size: 14px;
    transition: transform 0.3s ease;
}

button.promo-btn:hover i {
    transform: translateX(5px);
}

.result-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    flex-wrap: wrap;
}

button.promo-btn {
    width: auto;
    min-width: 220px;
}

/* FOOTER */
.footer {
  margin-top: 40px;
  padding: 30px 20px;
  text-align: center;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #cbd5e1;
  border-top: 4px solid #4f46e5;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 25px;
  width: 100%;
}

.footer .social {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.footer a.social-link {
  color: #a5b4fc;
}

.footer .social a {
  color: #a5b4fc;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
  font-size: 15px;
}

.footer .social a:hover {
  color: #ffffff;
}

.footer i {
  font-size: 18px;
}

.sub-footer {
  background: #0f172a;
  padding: 15px 20px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
  border-top: 1px solid #1e293b;
}

.sub-footer p {
  margin: 0;
}

.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #4f46e5; 
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.scroll-top-btn:hover {
  transform: translateY(-3px);
  background: #4338ca; 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  padding: 20px;
  transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.cookie-banner.show {
  bottom: 0;
}

.cookie-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cookie-text h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #2d3748;
}

.cookie-text p {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.5;
  margin: 0;
}

.cookie-text a {
  color: #4f46e5;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.cookie-text a:hover {
  border-bottom-color: #4f46e5;
}

.cookie-buttons {
  display: flex;
  gap: 15px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.cookie-btn.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

.cookie-btn.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(79, 70, 229, 0.3);
}

.cookie-btn.btn-outline {
  background: transparent;
  border-color: #cbd5e1;
  color: #64748b;
}

.cookie-btn.btn-outline:hover {
  border-color: #94a3b8;
  color: #475569;
  background: #f8fafc;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 900px) {
  .logo-desktop { display: none; }
  .logo-mobile { display: block; height: 32px; }
  .logo-text { font-size: 18px; }
  
  .header-container { padding: 10px 15px; }
  .search input { width: 140px; font-size: 13px; }
  
  .content-header { padding: 25px 30px; }
  .content-header h1 { font-size: 26px; }
  .content-body { padding: 20px 20px; }
  
  .layout { margin: 15px auto; padding: 0 5px; }
  
  .footer { margin-top: 20px; padding: 25px 15px; }
  .footer .social { gap: 20px; }
  
  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .cookie-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .cookie-buttons { width: 100%; justify-content: flex-end; }
  .cookie-btn { flex: 1; text-align: center; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 26px; }
  .lectures-grid { grid-template-columns: 1fr; }
  .about-section { padding: 30px 20px; }
  .contact-box { flex-direction: column; border-radius: 16px; gap: 10px; }
}

@media (max-width: 500px) {
  .footer-nav ul {
    gap: 15px;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 400px) {
  .search input { width: 90px; }
  .search { padding: 6px 10px; }
}

@media (min-width: 901px) {
  .header-container { max-width: 1000px; }
  .layout { max-width: 1000px; }
}

@media (max-width: 1024px) {
  .home-layout {
    padding: 0 60px;
  }
}

@media (max-width: 600px) {
  .home-layout {
    padding: 0 20px;
    max-width: 1000px;
  }
}

@media (max-width: 600px) {
  .answers-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
    .result-buttons {
        flex-direction: column; 
        align-items: center;
        gap: 15px;
    }

    button.promo-btn {
        width: 100%; 
        max-width: 350px;
    }
}

@media (max-width: 650px) {
    .result-buttons {
        flex-direction: column;
        align-items: center;
    }
    button.promo-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
  .see-also-card {
    flex: none;
    width: 100%; 
    max-width: 100%;
  }
}