/* makro-karta.css */
:root {
  --makro-karta-banner-mobile: url('/images/banners/makro-karta/480x600px.png');
  --makro-karta-banner-tablet: url('/images/banners/makro-karta/600x768px.png');
  --makro-karta-banner-desktop: url('/images/banners/makro-karta/1920x800px.png');
  --makro-karta-banner-large: url('/images/banners/makro-karta/2560x800px.png');
}

.makro-karta-stage {
  position: relative;
  background-color: var(--background-color);
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.makro-karta-stage.animate {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 1.5s ease-out forwards;
}

.makro-karta-stage .container {
  max-width: 1400px;
  margin: 0 auto;
}

.banner {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 950px;
  background-image: var(--makro-karta-banner-desktop);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.banner-content {
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 2rem;
}

.banner-main-heading {
  max-width: 800px;
  margin: 2rem auto;
  text-align: center;
  font-family: 'Press Start 2P', sans-serif;
  font-size: var(--font-size-3xl);
  color: var(--accent-color);
  position: relative;
  z-index: 2;
  letter-spacing: 1px;
}

.makro-karta-stage .section-heading {
  max-width: 800px;
  margin: 1.5rem auto 1.5rem;
  text-align: center;
  font-size: var(--font-size-lg);
  color: var(--accent-color);
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.9), rgba(35, 35, 40, 0.9) 50%, rgba(10, 10, 15, 0.9));
  padding: 1rem 2rem;
  border-radius: 8px;
}

.makro-karta-stage .section-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  margin: 0.5rem auto 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.8;
}

.makro-karta-stage .section-heading:hover::after {
  transform: scaleX(1.2);
  opacity: 1;
}

.bonus-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  perspective: 1000px;
  margin-top: 2rem;
}

.card {
  width: 280px;
  position: relative;
  text-align: center;
  cursor: pointer;
  transition: transform 0.6s ease, box-shadow 0.4s ease, outline-color 0.3s ease;
  text-decoration: none;
  opacity: 0;
  animation: rotate360 3s forwards;
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.9), rgba(35, 35, 40, 0.9) 50%, rgba(10, 10, 15, 0.9));
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  background-color: rgba(255, 255, 255, 0.05);
}

.card:nth-child(1) {
  animation-delay: 0s;
}

.card:nth-child(2) {
  animation-delay: 3s;
}

.card:nth-child(3) {
  animation-delay: 6s;
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 0 15px var(--accent-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--accent-color);
}

.card h3 {
  margin-top: 0.8rem;
  color: var(--accent-color);
  font-family: 'Press Start 2P', sans-serif;
  font-size: var(--font-size-lg);
  text-decoration: none;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.sub-heading {
  font-size: var(--font-size-xl);
  color: var(--accent-color);
  margin: 4rem auto 2rem;
  font-family: 'Press Start 2P', sans-serif;
  text-align: center;
}

.steps-section {
  padding: 4rem 2rem;
  background-color: var(--background-color);
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
  animation: fadeInUp 1.5s ease-out forwards;
}

.steps-section .container {
  max-width: 1400px;
  margin: 0 auto;
}

.steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 0 1rem;
}

.step {
  flex: 1 1 300px;
  max-width: 400px;
}

.step img {
  width: 100%;
  max-height: 100px;
  margin-bottom: 1.5rem;
}

.step h3 {
  font-size: var(--font-size-lg);
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.step p {
  font-size: var(--font-size-md);
  color: var(--text-color);
  margin: 0;
  flex-grow: 1;
}

.steps-note {
  margin-top: 3rem;
  font-size: var(--font-size-md);
  color: var(--text-color);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.steps-note a {
  color: var(--accent-color);
  text-decoration: underline;
}

.steps-note a:hover {
  color: var(--accent-color-hover);
}

.options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 2rem;
  width: 100%;
}

.option {
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.85), rgba(35, 35, 40, 0.85) 50%, rgba(10, 10, 15, 0.85));
  padding: 2rem 1.5rem;
  border-radius: 8px;
  width: 80%;
  max-width: 500px;
  transition: transform 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  box-shadow: 0 0 20px var(--accent-color);
  outline: 2px solid var(--accent-color);
}

.option h2 {
  font-size: var(--font-size-lg);
  color: var(--accent-color);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 1rem;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  overflow: hidden;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  padding: 1.5rem;
}

.option.active .info {
  display: flex;
  max-height: 500px;
  opacity: 1;
}

@keyframes gentleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes enhancedGlow {
  0%, 100% {
    box-shadow: 0 0 20px var(--accent-color);
  }
  50% {
    box-shadow: 0 0 35px var(--accent-color);
  }
}

.highlight-target {
  animation: 
    gentleFloat 1.5s ease-in-out 2,
    enhancedGlow 1.5s ease-in-out 2;
  position: relative;
  z-index: 10;
}

.highlight-target::after {
  display: none;
}

.info h3 {
  font-size: var(--font-size-md);
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.info p {
  font-size: var(--font-size-sm);
  color: var(--text-color);
  margin-bottom: 1rem;
}

.benefits {
  list-style: disc inside;
  margin-bottom: 1rem;
}

.benefits li {
  font-size: var(--font-size-sm);
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.faq-section {
  padding: 3rem 1rem;
  background-color: var(--background-color);
  text-align: left;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
  animation: fadeInUp 1.5s ease-out forwards;
}

.faq-section a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.faq-section a:hover {
  color: var(--accent-color-hover);
  text-decoration: none;
}

.faq-section .container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-heading {
  font-size: var(--font-size-xl);
  color: var(--accent-color);
  text-align: center;
  margin-bottom: 2rem;
  font-family: 'Press Start 2P', sans-serif;
}

.faq-item, .faq-item.active {
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: relative;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(3px);
}

.faq-item:hover {
  background-color: rgba(35, 35, 40, 1);
}

.question {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.question h3 {
  font-size: var(--font-size-lg);
  color: var(--primary-color);
  margin: 0;
  transition: color 0.3s ease;
  padding-right: 2rem;
  flex: 1;
  box-sizing: border-box;
}

.faq-item.active .question h3 {
  color: var(--accent-color);
}

.toggle-icon {
  font-size: var(--font-size-lg);
  color: var(--accent-color);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.answer {
  margin-top: 1rem;
  font-size: var(--font-size-md);
  color: var(--text-color);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.faq-item.active .answer {
  max-height: 500px;
  opacity: 1;
}

.faq-item.active .toggle-icon {
  transform: rotate(180deg);
}

.modal {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow: auto;
}

.modal.show {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: rgba(0, 0, 0, 0.8);
  padding: 3rem 2.5rem 2rem;
  border: 2px solid var(--accent-color);
  width: 80%;
  max-width: 900px;
  border-radius: 10px;
  position: relative;
  color: var(--text-color);
  box-shadow: 0 0 15px var(--accent-color);
  overflow: auto;
  max-height: 90vh;
  opacity: 0;
  transform: translateY(-20px);
  animation: modalFadeIn 0.5s ease forwards;
}

.modal-content h2 {
  font-size: var(--font-size-lg);
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
  font-family: 'Press Start 2P', sans-serif;
  text-align: center;
}

.modal-header {
  position: absolute;
  top: 10px;
  right: 10px;
}

.close-modal {
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.close-modal::before,
.close-modal::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 3px;
  background-color: var(--text-color);
  transition: background-color 0.3s ease;
  top: 50%;
  left: 50%;
  transform-origin: center;
}

.close-modal::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-modal::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.close-modal:hover::before,
.close-modal:hover::after {
  background-color: var(--accent-color);
}

.modal-body {
  margin-top: 1rem;
  text-align: center;
  padding-top: 1.5rem;
}

.modal-body h3 {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  font-family: 'Press Start 2P', sans-serif;
  font-size: var(--font-size-sm);
}

.modal-body p {
  color: var(--text-color);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-body .benefits-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.modal-body .benefits-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body .benefits-list li i {
  margin-right: 0.5rem;
  color: var(--accent-color);
}

.modal-card-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem auto;
  border-radius: 8px;
  box-shadow: 0 0 20px var(--accent-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal-card-image:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px var(--accent-color);
}

body.modal-open {
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 2560px) {
  .banner {
      background-image: var(--makro-karta-banner-large);
  }
}

@media (min-width: 1200px) and (max-width: 2559px) {
  .banner {
      background-image: var(--makro-karta-banner-desktop);
  }

  .steps-section .container {
      max-width: 1400px;
  }

  .step {
      flex: 1 1 calc(33.333% - 2rem);
      max-width: 400px;
  }
}

@media (max-width: 1200px) {
  .makro-karta-stage .container {
      max-width: 1200px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .step {
      flex: 1 1 calc(50% - 2rem);
      max-width: 450px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .banner {
      background-image: var(--makro-karta-banner-tablet);
      height: 1000px;
  }

  .bonus-cards {
      flex-direction: column;
      align-items: center;
      gap: 2rem;
  }

  .card {
      width: 280px;
      max-width: 100%;
  }

  .step {
      flex: 1 1 calc(50% - 2rem);
      max-width: 300px;
  }

  .step img {
      max-width: 150px;
  }

  .step h3 {
      font-size: var(--font-size-md);
  }

  .step p {
      font-size: var(--font-size-sm);
  }

  .steps-note {
      font-size: var(--font-size-sm);
  }
}

@media (max-width: 768px) {
  .banner {
      background-image: var(--makro-karta-banner-tablet);
      height: 1000px;
  }

  .bonus-cards {
      flex-direction: column;
      align-items: center;
      gap: 2rem;
  }

  .card {
      width: 280px;
      max-width: 100%;
  }

  .makro-karta-stage .section-heading {
      font-size: var(--font-size-lg);
      margin: 1.5rem auto 2rem;
      padding: 0.8rem 1.5rem;
  }

  .makro-karta-stage .section-heading::after {
      width: 40px;
  }

  .sub-heading {
      font-size: var(--font-size-lg);
      margin: 1.5rem auto 2rem;
      padding: 0.8rem 1.5rem;
  }

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

  .banner-main-heading {
      font-size: var(--font-size-2xl);
  }

  .section-heading {
      font-size: var(--font-size-md);
      padding: 0.8rem 1rem;
  }

  .step {
      flex: 1 1 100%;
      max-width: 100%;
  }

  .step img {
      max-width: 180px;
  }

  .steps-note {
      font-size: var(--font-size-sm);
  }

  .options {
      padding: 0 1rem;
  }

  .options .option {
      width: 100%;
      max-width: 100%;
  }

  .faq-heading {
      font-size: var(--font-size-lg);
  }

  .question h3 {
      font-size: var(--font-size-md);
      padding-right: 1.5rem;
  }

  .toggle-icon {
      font-size: var(--font-size-lg);
  }

  .answer {
      font-size: var(--font-size-sm);
  }

  .modal-content {
      padding: 2rem 1.5rem 1rem;
  }

  .modal-content h2 {
      font-size: var(--font-size-md);
  }

  .modal-body h3 {
      font-size: var(--font-size-xs);
  }

  .modal-body p,
  .modal-body .benefits-list li,
  .modal-body .benefits-list li i {
      font-size: var(--font-size-xs);
  }

  .modal-card-image {
      max-width: 150px;
  }
}

@media (max-width: 767px) {
  .options .option {
      width: 100%;
      max-width: 100%;
  }
}

@media (max-width: 480px) {
  .banner {
      background-image: var(--makro-karta-banner-mobile);
      height: 1300px;
      padding-top: 2rem;
      padding-bottom: 2rem;
  }

  .banner-main-heading {
      font-size: var(--font-size-xl);
      margin-top: 3rem;
  }

  .makro-karta-stage .section-heading {
      font-size: var(--font-size-md);
      margin: 1.5rem auto 2.5rem;
      padding: 0.6rem 1rem;
  }

  .makro-karta-stage .section-heading::after {
      width: 30px;
  }

  .sub-heading {
      font-size: var(--font-size-md);
      margin: 1.2rem auto 1.8rem;
      padding: 0.6rem 1rem;
  }

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

  .section-heading {
      font-size: var(--font-size-sm);
      padding: 0.6rem 0.8rem;
  }

  .bonus-cards {
      gap: 2rem;
      margin-top: 3rem;
  }

  .card {
      width: 90%;
      max-width: 350px;
      margin-bottom: 1rem;
  }

  .options {
      padding: 0;
      width: 100%;
  }

  .options .option {
      width: 100%;
      max-width: 100%;
      margin-left: auto;
      margin-right: auto;
  }

  .faq-heading {
      font-size: var(--font-size-md);
  }

  .answer {
      font-size: var(--font-size-xs);
  }

  .question h3 {
      font-size: var(--font-size-sm);
      padding-right: 1rem;
  }

  .toggle-icon {
      font-size: var(--font-size-md);
      margin-left: 0.5rem;
  }

  .steps-section {
      padding: 3rem 1rem;
  }

  .step {
      padding: 1.5rem 1rem;
  }

  .step img {
      max-width: 150px;
      margin-bottom: 1rem;
  }
}

@media (max-width: 375px) {
  .banner {
      height: 1400px;
      padding-top: 2.5rem;
  }

  .banner-main-heading {
      font-size: var(--font-size-lg);
      margin-top: 2rem;
      margin-bottom: 2rem;
  }

  .section-heading {
      font-size: var(--font-size-xs);
  }

  .bonus-cards {
      margin-top: 3.5rem;
      gap: 3rem;
  }

  .card {
      margin-bottom: 1.5rem;
  }

  .options .option {
      width: 100%;
      max-width: 100%;
      padding: 1.5rem 1rem;
  }
}
