/*
Theme Name: Couponer
Author: Maksym H
Version: 1.0
*/

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

html {
  height: 100%;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f9fafc;
  color: #0f172a;
  line-height: 1.5;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.site-header {
  background: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 6px 12px rgba(0, 0, 0, 0.02);
  position: relative;
  top: 0;
  z-index: 100;
  height: auto;
  min-height: 80px;
  padding: 16px 0;
  flex-shrink: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 16px 0;
  gap: 16px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  background: linear-gradient(135deg, #FF5E3A, #FF2E74);
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  color: white;
}

.logo-text {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #FF5E3A, #FF2E74);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: #1e293b;
  transition: 0.2s;
  font-size: 15px;
}

.nav-links a:hover {
  color: #FF5E3A;
}

.promo-nav-btn {
  background: #FF5E3A;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
  display: inline-block;
}

.promo-nav-btn:hover {
  background: #e04522;
  transform: scale(0.97);
}

main.container {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-block {
  background: linear-gradient(105deg, #fff6ef 0%, #ffffff 100%);
  border-radius: 32px;
  margin: 32px 0;
  padding: 40px 32px;
  text-align: center;
}

.hero-block h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 12px;
}

.hero-block h2 span {
  color: #FF5E3A;
}

.hero-block p {
  font-size: 18px;
  color: #334155;
  max-width: 700px;
  margin: 0 auto;
}

.section-fade {
  background: #ffffff;
  border-radius: 40px;
  padding: 48px 24px;
  margin: 48px 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
}

.section-sub {
  text-align: center;
  color: #475569;
  margin-bottom: 48px;
  font-size: 18px;
}

.testimonial-carousel {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track-container {
  overflow: hidden;
  border-radius: 28px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.testimonial-card {
  flex: 0 0 100%;
  padding: 0 16px;
}

.card-inner {
  background: #fef9f5;
  border-radius: 32px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.08);
}

.user-avatar {
  width: 70px;
  height: 70px;
  background: linear-gradient(145deg, #FF5E3A, #FF8A5C);
  border-radius: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  margin-bottom: 16px;
}

.user-name {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 6px;
}

.stars i {
  color: #fbbf24;
  margin: 8px 2px;
  font-size: 16px;
}

.review-text {
  margin-top: 20px;
  font-size: 16px;
  color: #2d3a4e;
  line-height: 1.5;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 60px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  font-size: 20px;
  z-index: 2;
  transition: 0.2s;
}

.carousel-btn:hover {
  background: #FF5E3A;
  color: white;
}

.btn-left {
  left: 0;
}

.btn-right {
  right: 0;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.dot {
  width: 10px;
  height: 10px;
  background: #cbd5e1;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
}

.dot.active {
  background: #FF5E3A;
  width: 28px;
}

.stores-section {
  background: #f8fafc;
  border-radius: 40px;
  padding: 48px 24px;
  margin: 40px 0;
}

.flex-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

.custom-select {
  padding: 10px 20px;
  border-radius: 44px;
  border: 1px solid #e2e8f0;
  background: white;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
}

.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 20px;
}

.store-card {
  background: white;
  border-radius: 28px;
  padding: 24px 20px;
  transition: 0.25s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.02);
  border: 1px solid #edf2f7;
  text-align: center;
  cursor: pointer;
}

.store-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 28px -12px rgba(0, 0, 0, 0.12);
}

.store-logo-placeholder {
  width: 80px;
  height: 80px;
  background: #f1f5f9;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 38px;
  color: #FF5E3A;
}

.store-name {
  font-weight: 800;
  font-size: 20px;
}

.cashback-badge {
  background: #FF5E3A10;
  color: #FF5E3A;
  font-weight: 700;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 40px;
  margin: 14px 0;
  font-size: 14px;
}

.promo-section {
  background: white;
  border-radius: 40px;
  padding: 48px 24px;
  margin: 40px 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.promo-card {
  background: #fefaf7;
  border-radius: 28px;
  padding: 22px;
  border-left: 5px solid #FF5E3A;
}

.promo-store {
  font-weight: 800;
  font-size: 18px;
}

.promo-code-box {
  background: white;
  font-family: monospace;
  padding: 10px 16px;
  border-radius: 60px;
  margin: 18px 0;
  font-weight: 700;
  display: inline-block;
  border: 1px dashed #FF5E3A;
}

.copy-btn {
  background: #FF5E3A;
  border: none;
  padding: 8px 22px;
  border-radius: 40px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 28px -12px rgba(0, 0, 0, 0.12);
}

.promo-discount {
  font-size: 32px;
  font-weight: 800;
  color: #FF5E3A;
  margin-bottom: 12px;
}

.promo-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
}

.promo-desc {
  color: #475569;
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.promo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.verified-badge {
  background: #e6f7e6;
  color: #2e7d32;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.get-code-btn {
  background: #FF5E3A;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.get-code-btn:hover {
  background: #e04522;
  transform: scale(0.98);
}

.faq-section {
  background: #f1f5f9;
  border-radius: 40px;
  padding: 48px 32px;
  margin: 48px 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.faq-item {
  background: white;
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.faq-question {
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 16px;
  color: #0f172a;
}

.faq-answer {
  color: #334155;
  line-height: 1.5;
}

.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 48px 0 24px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 14px;
}

.footer-col a:hover {
  color: #FF5E3A;
}

.copyright {
  text-align: center;
  border-top: 1px solid #1e293b;
  padding-top: 28px;
  font-size: 13px;
}

.breadcrumbs {
  margin: 24px 0 16px;
  font-size: 14px;
  color: #64748b;
}

.breadcrumbs a {
  color: #FF5E3A;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span {
  margin: 0 8px;
}

.store-header {
  background: linear-gradient(135deg, #fff6ef 0%, #ffffff 100%);
  border-radius: 32px;
  padding: 32px;
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}

.store-icon-large {
  width: 100px;
  height: 100px;
  background: linear-gradient(145deg, #FF5E3A, #FF8A5C);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
}

.store-icon-large img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 20px;
}

.store-info h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}

.store-rating {
  color: #fbbf24;
  margin: 8px 0;
  font-size: 16px;
}

.cashback-badge-large {
  background: #FF5E3A;
  color: white;
  display: inline-block;
  padding: 8px 20px;
  border-radius: 40px;
  font-weight: 700;
  margin-top: 12px;
  transition: 0.2s;
}

.cashback-badge-large:hover {
  background: #e04522;
  transform: scale(1.02);
}

.about-section {
  background: white;
  border-radius: 32px;
  padding: 32px;
  margin: 40px 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
}

.about-section h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 24px;
}

.about-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 28px 0 14px;
  color: #0f172a;
}

.about-section h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 22px 0 10px;
  color: #1e293b;
}

.about-section h4 {
  font-size: 17px;
  font-weight: 600;
  margin: 18px 0 8px;
}

.about-section p {
  margin-bottom: 16px;
}

.about-section ul,
.about-section ol {
  margin: 16px 0;
  padding-left: 24px;
}

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

.about-section a {
  color: #FF5E3A;
  text-decoration: underline;
  font-weight: 500;
}

.about-section a:hover {
  color: #e04522;
}

.about-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.about-section table td,
.about-section table th {
  border: 1px solid #e2e8f0;
  padding: 10px 16px;
}

.about-section table th {
  background: #f8fafc;
  font-weight: 600;
}

.about-section blockquote {
  border-left: 4px solid #FF5E3A;
  padding: 12px 20px;
  margin: 20px 0;
  background: #fef9f5;
  border-radius: 0 12px 12px 0;
  font-style: italic;
}

.about-section img {
  max-width: 100%;
  border-radius: 16px;
  margin: 16px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.about-card h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #FF5E3A;
}

.about-card h4 i {
  margin-right: 8px;
}

.about-card p {
  color: #475569;
  line-height: 1.6;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  background: white;
  max-width: 550px;
  width: 90%;
  border-radius: 40px;
  padding: 32px;
  position: relative;
  animation: slideUp 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 28px;
  cursor: pointer;
  color: #94a3b8;
  transition: 0.2s;
}

.close-modal:hover {
  color: #FF5E3A;
}

.modal-icon {
  background: linear-gradient(135deg, #FF5E3A, #FF2E74);
  width: 70px;
  height: 70px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.modal-icon i {
  font-size: 34px;
  color: white;
}

.modal h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.modal-sub {
  color: #FF5E3A;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 14px;
}

.promo-code-display {
  background: #f1f5f9;
  border-radius: 60px;
  padding: 16px 24px;
  text-align: center;
  margin: 20px 0;
  border: 2px dashed #FF5E3A;
}

.promo-code-display span {
  font-family: monospace;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #1e293b;
}

.copy-modal-btn {
  background: #FF5E3A;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 50px;
  color: white;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.2s;
}

.copy-modal-btn:hover {
  background: #e04522;
  transform: scale(0.98);
}

.modal-info {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #edf2f7;
}

.modal-info p {
  margin: 8px 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

.toast-msg {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  z-index: 1100;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.fa-3x {
  font-size: 1em !important;
}

button,
.copy-btn,
.get-code-btn,
.copy-modal-btn,
.mini-copy-button,
.promo-nav-btn,
.carousel-btn,
.copy-action-btn {
  font-family: 'Montserrat', sans-serif !important;
}

.copy-modal-btn {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700 !important;
  font-size: 16px !important;
}

.copy-modal-btn:hover {
  background: #e04522 !important;
  transform: scale(0.98) !important;
  cursor: pointer !important;
}

button:hover,
.copy-btn:hover,
.get-code-btn:hover,
.mini-copy-button:hover,
.promo-nav-btn:hover {
  transform: scale(0.97);
  transition: all 0.2s ease;
}

@media (max-width: 768px) {
  .header-inner {
    justify-content: center;
  }

  .nav-links {
    display: none;
  }

  .logo-text {
    font-size: 24px;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .hero-block h2 {
    font-size: 26px;
  }

  .carousel-btn {
    width: 34px;
    height: 34px;
  }

  .btn-left {
    left: -10px;
  }

  .btn-right {
    right: -10px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 24px;
    text-align: center;
  }

  .store-header {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .store-info h1 {
    font-size: 28px;
  }

  .promo-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .modal-content {
    padding: 24px;
    width: 95%;
  }

  .promo-code-display span {
    font-size: 20px;
  }

  .modal h2 {
    font-size: 22px;
  }

  .about-section {
    padding: 20px;
  }

  .about-section h1 {
    font-size: 26px;
  }

  .about-section h2 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .store-icon-large {
    width: 80px;
    height: 80px;
    font-size: 36px;
  }

  .cashback-badge-large {
    font-size: 14px;
    padding: 6px 16px;
  }

  .promo-discount {
    font-size: 26px;
  }

  .promo-title {
    font-size: 16px;
  }

  .about-section {
    padding: 20px;
  }
}