/* ============================================
   RESPONSIVE DESIGN - MOBILE & DESKTOP
   ============================================ */

/* ============================================
   BASE RESPONSIVE SETTINGS
   ============================================ */

:root {
  --mobile-padding: 20px;
  --tablet-padding: 30px;
  --desktop-padding: 40px;
  --mobile-font-size: 14px;
  --tablet-font-size: 16px;
  --desktop-font-size: 18px;
}

/* ============================================
   CONTAINER RESPONSIVE
   ============================================ */

.conteiner {
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding-left: var(--desktop-padding);
  padding-right: var(--desktop-padding);
  position: relative;
  z-index: 1;
}

@media (max-width: 1199px) {
  .conteiner {
    padding-left: var(--tablet-padding);
    padding-right: var(--tablet-padding);
  }
}

@media (max-width: 767px) {
  .conteiner {
    padding-left: var(--mobile-padding);
    padding-right: var(--mobile-padding);
  }
}

/* ============================================
   TYPOGRAPHY RESPONSIVE
   ============================================ */

.terms__title {
  font-size: 48px;
  line-height: 58px;
  text-align: center;
  margin-bottom: 20px;
}

@media (max-width: 1199px) {
  .terms__title {
    font-size: 40px;
    line-height: 50px;
  }
}

@media (max-width: 991px) {
  .terms__title {
    font-size: 36px;
    line-height: 44px;
  }
}

@media (max-width: 767px) {
  .terms__title {
    font-size: 28px;
    line-height: 34px;
    padding: 0 10px;
  }
  
  .terms__title img {
    max-width: 60px;
    height: auto;
  }
}

@media (max-width: 480px) {
  .terms__title {
    font-size: 24px;
    line-height: 30px;
  }
}

/* ============================================
   BRANDS SECTION RESPONSIVE
   ============================================ */

.brands {
  padding-top: 40px;
  padding-bottom: 40px;
}

.brands__list {
  margin-top: 60px;
}

@media (max-width: 1199px) {
  .brands__list {
    margin-top: 50px;
  }
}

@media (max-width: 767px) {
  .brands {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  
  .brands__list {
    margin-top: 30px;
  }
}

/* ============================================
   BRAND CARDS RESPONSIVE
   ============================================ */

.brands-item {
  position: relative;
  padding: 40px 60px;
  margin-bottom: 30px;
  border-radius: 40px;
  min-height: 400px;
}

@media (max-width: 1366px) {
  .brands-item {
    padding: 35px 50px;
  }
}

@media (max-width: 1199px) {
  .brands-item {
    padding: 30px 40px;
    min-height: 350px;
  }
  
  .brands-item .bandImg {
    max-width: 450px;
  }
}

@media (max-width: 991px) {
  .brands-item {
    padding: 25px 30px;
    min-height: 320px;
  }
  
  .brands-item__text {
    max-width: 100%;
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 100%;
    text-align: center;
  }
  
  .brands-item__bonus-block {
    width: 100%;
    padding: 16px 18px;
    border-radius: 11px;
    align-items: center;
  }
  
  .brands-item__row {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    border-radius: 0;
    text-align: center;
  }
  
  .brands-item__row .t16r {
    font-size: 18px;
    line-height: 1.3;
    text-align: center;
    width: 100%;
    margin-top: 0;
  }
  
  .brands-item__row .t17r {
    font-size: 24px;
    line-height: 1.2;
    text-align: center;
    width: 100%;
    margin-top: 6px;
  }
  
  .brands-item__row .t18r,
  .brands-item__row .t19r {
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    width: 100%;
  }
  
  .brands-item .btn {
    width: 100%;
    max-width: 270px;
    margin-top: 16px;
    align-self: center;
    flex-shrink: 0;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .brands-item {
    padding: 20px 15px;
  }
  
  .brands-item__top img {
    max-width: 100px;
  }
  
  .brands-item__row .t16r,
  .brands-item__row .t17r {
    font-size: 18px;
  }
}

/* ============================================
   BUTTONS RESPONSIVE
   ============================================ */

.btn {
  min-width: 200px;
  height: 50px;
  font-size: 16px;
  padding: 12px 30px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn__inner {
  font-size: inherit;
}

@media (max-width: 991px) {
  .btn {
    min-width: 180px;
    height: 48px;
    font-size: 15px;
    padding: 10px 25px;
  }
}

@media (max-width: 767px) {
  .btn {
    width: 100%;
    min-width: 100%;
    height: 50px;
    font-size: 16px;
    padding: 12px 20px;
    margin: 15px 0;
  }
  
  .brands-item .btn {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .btn {
    height: 48px;
    font-size: 15px;
  }
}

/* ============================================
   TEXT CONTENT RESPONSIVE
   ============================================ */

.text18 {
  font-size: 14px;
  line-height: 20px;
  padding: 20px;
  text-align: center;
  color: #666;
}

@media (max-width: 991px) {
  .text18 {
    font-size: 13px;
    line-height: 19px;
    padding: 15px;
  }
}

@media (max-width: 767px) {
  .text18 {
    font-size: 12px;
    line-height: 18px;
    padding: 15px 10px;
  }
}

/* ============================================
   IMAGES RESPONSIVE
   ============================================ */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.brands-item .bandImg img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 767px) {
  .brands-item .bandImg img {
    max-width: 100%;
  }
}

/* ============================================
   MODAL RESPONSIVE
   ============================================ */

.modal-content {
  max-width: 600px;
  padding: 40px;
}

@media (max-width: 991px) {
  .modal-content {
    max-width: 90%;
    padding: 30px;
  }
  
  .modal-title {
    font-size: 24px;
  }
}

@media (max-width: 767px) {
  .modal-content {
    max-width: 95%;
    padding: 20px;
    border-radius: 15px;
  }
  
  .modal-title {
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  .modal-body {
    font-size: 14px;
  }
  
  .modal-close {
    width: 35px;
    height: 35px;
    top: 15px;
    right: 15px;
  }
}

/* ============================================
   NOTIFICATION RESPONSIVE
   ============================================ */

.notification {
  max-width: 400px;
  padding: 20px 30px;
}

@media (max-width: 767px) {
  .notification {
    max-width: calc(100% - 40px);
    padding: 15px 20px;
    font-size: 14px;
    right: 20px;
    left: 20px;
  }
}

@media (max-width: 480px) {
  .notification {
    padding: 12px 15px;
    font-size: 13px;
  }
}

/* ============================================
   FLOATING ACTION BUTTON RESPONSIVE
   ============================================ */

.fab {
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
}

@media (max-width: 767px) {
  .fab {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  
  .fab svg {
    width: 20px;
    height: 20px;
  }
}

/* ============================================
   ANIMATIONS RESPONSIVE
   ============================================ */

@media (max-width: 767px) {
  /* Change animation to slide in from side on mobile */
  .brands-item {
    animation: slideInLeft 0.5s ease-out forwards;
    opacity: 0;
  }
  
  .brands-item:nth-child(1) {
    animation-delay: 0.1s;
  }
  
  .brands-item:nth-child(2) {
    animation-delay: 0.2s;
  }
  
  .brands-item:nth-child(3) {
    animation-delay: 0.3s;
  }
  
  .brands-item:nth-child(4) {
    animation-delay: 0.4s;
  }
  
  .brands-item:nth-child(5) {
    animation-delay: 0.5s;
  }
  
  .btn--secondary {
    animation: none; /* Disable pulse on mobile */
  }
  
  /* Reduce transform effects on mobile */
  .brands-item:hover {
    transform: translateY(-5px) scale(1.01);
  }
  
  /* Prevent image from overlapping text on mobile */
  .brands-item:hover .bandImg {
    transform: translateY(-20%) scale(1.02) rotate(2deg);
  }
}

/* ============================================
   TOUCH OPTIMIZATIONS
   ============================================ */

@media (hover: none) and (pointer: coarse) {
  /* Touch device optimizations */
  .btn {
    min-height: 44px; /* Apple's recommended touch target size */
  }
  
  .brands-item__top a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  
  /* Remove hover effects on touch devices */
  .brands-item:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
}

/* ============================================
   LANDSCAPE ORIENTATION
   ============================================ */

@media (max-width: 767px) and (orientation: landscape) {
  .brands-item {
    padding: 20px;
    min-height: auto;
  }
  
  .brands-item .bandImg {
    max-width: 300px;
  }
  
  .terms__title {
    font-size: 24px;
    line-height: 30px;
  }
}

/* ============================================
   TABLET SPECIFIC STYLES
   ============================================ */

@media (min-width: 768px) and (max-width: 1024px) {
  .brands-item {
    padding: 30px 35px;
  }
  
  .brands-item .bandImg {
    max-width: 400px;
  }
  
  .btn {
    min-width: 200px;
  }
}

/* ============================================
   LARGE DESKTOP OPTIMIZATIONS
   ============================================ */

@media (min-width: 1920px) {
  .conteiner {
    max-width: 1600px;
  }
  
  .brands-item {
    padding: 50px 80px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .btn,
  .fab,
  .modal-overlay,
  .notification-container {
    display: none !important;
  }
  
  .brands-item {
    page-break-inside: avoid;
    margin-bottom: 20px;
  }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   HIGH DPI DISPLAYS
   ============================================ */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .brands-item__top img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ============================================
   FIX FOR IOS SAFARI
   ============================================ */

@supports (-webkit-touch-callout: none) {
  .btn {
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
  }
  
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* ============================================
   FIX FOR ANDROID
   ============================================ */

@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .btn {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }
}


