/**
 * styles.css
 * Стили для сайта Kredit-UA
 */

/* Общие настройки */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #ffffec;
    color: #333;
    line-height: 1.6;
}

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

h1 {
    font-size: 26px;
    text-align: center;
    margin: 10px;
    color: #222;
}

h2, h3 {
    
    color: #222;
}

#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #00c3ff, #7700ff);
  color: white;
  font-size: 20px;
  border: none;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(119, 0, 255, 0.6);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

#scrollTopBtn:hover {
  transform: scale(1.15) rotate(10deg);
  background: linear-gradient(135deg, #7700ff, #00c3ff);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.8), 0 0 30px rgba(119, 0, 255, 0.8);
}



/* Хедер */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.offerlogo {
    padding: 10px;
    width: 200px;
}

.freeloan {
    margin-top: 8px; 
    font-weight: 
    bold; color: #14AA57;
}


.offer-card.ads-block {
    display: block; /* чтобы реклама нормально растягивалась */
    padding: 10px 0; /* немного вертикальных отступов */
    max-width: 960px;
    width: 100%; /* занимает всю доступную ширину */
    margin: 0 auto 20px auto;
    box-sizing: border-box; /* чтобы padding не влиял на ширину */
}

/* Адаптация под мобильные устройства */
@media (max-width: 600px) {
    .offer-card.ads-block {
        padding: 8px 10px; /* чуть меньше паддингов по бокам */
        max-width: 100%; /* на мобилках ограничение по ширине снимается */
        height: auto; /* высота может подстраиваться */
    }
}


.ads-block {
max-height: 400px;
    max-width: 960px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .ads-block {
    width: 77%;
    max-height: 400px;
 }
}

.header-top {
    margin: auto;
    width: 950px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.header-top .logo img {
    height: 40px;
}

.telegram-link img {
    height: 36px;
    width: 36px;
}

.telegram-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f7fa;
  border: 1px solid #d1d9e6;
  border-radius: 8px;
  padding: 12px 20px;
  max-width: 920px;
  margin: 30px auto 60px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-family: Arial, sans-serif;
  color: #1a1a1a;
  text-decoration: none; /* убираем подчеркивание */
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.telegram-block:hover {
  background-color: #e0e7f1;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.telegram-block p {
  font-size: 17px;
  line-height: 1.3;
  margin: 0;
  padding-right: 15px;
  font-weight: 600;
}

.telegram-block img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.telegram-block:hover img {
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .telegram-block {
    flex-direction: column;
    text-align: center;
    max-width: 77%;
  }
  .telegram-block p {
    padding-right: 0;
    margin-bottom: 10px;
  }
}

.offerlinks {
    display: grid; 
    margin-top: 10px;
}

.offer-link {
    padding: 5px; 
    color: #0095ff; 
    font-size: 14px;
}

.prefooter {
    padding: 20px;
    max-width: 920px;
    margin: 0 auto;
    font-size: 14px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 28%);
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .prefooter {
    max-width: 77%;
 }
}

/* Меню */
.main-nav {
  background: #f9f9f9;
  padding: 10px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  margin: 0;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  padding: 10px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  color: #333;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav-button:hover {
  background: #e9f5ff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.nav-button.active {
box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
  background: linear-gradient(270deg, #ff6ec4, #7873f5, #4ade80);
  background-size: 600% 600%;
  animation: gradientShift 8s ease infinite;
  color: white;
  border: none;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.nav-button.telegram {
  background: #ea974d;
  color: #fff;
  border: none;
}

.nav-button.telegram:hover {
  background: #1a91c9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.nav-button img {
  width: 20px;
  height: 20px;
}

/* Основной контент */
.offers {
    padding: 20px;
    max-width: 960px;
    margin: 0 auto;
}

.offer-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 28%);
    margin-bottom: 20px;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.offer-card:hover {
box-shadow: 0 2px 8px rgb(255 106 0 / 84%);
}

.offer-logo {
    flex: 1 1 250px;
    margin-right: 20px;
    text-align: center;
}

.offer-info {
    margin-left: 20px;
    flex: 2 1 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-block .label {
    font-weight: bold;
}

.offer-actions {
    flex: 1 1 150px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: auto;
    text-align: center;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Основная кнопка */
.btn-primary {
  background-color: #14AA57;
  color: white;
  box-shadow: 0 4px 10px rgba(20, 170, 87, 0.2);
}

.btn-primary:hover {
  background-color: #0f8f48;
  box-shadow: 0 6px 12px rgba(20, 170, 87, 0.3);
  transform: translateY(-1px);
}

.btn-primary:active {
  background-color: #0d7d3e;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.15);
  transform: translateY(0);
}

/* Второстепенная кнопка */
.btn-secondary {
  background-color: #e0e0e0;
  color: #333;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
  background-color: #d5d5d5;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.btn-secondary:active {
  background-color: #c2c2c2;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.12);
  transform: translateY(0);
}


.offer-details {
    display: none;
    padding-top: 10px;
    width: 100%;
}

.offer-details.visible {
    display: block;
    border-top: 1px solid #ddd;
    margin-top: 10px;
    padding-top: 10px;
    font-size: 14px;
    color: #444;
}

/* Футер */
.site-footer {
    background-color: #b63535;
    color: white;
    text-align: center;
    padding: 20px 10px;
    font-size: 14px;
}

.site-footer .disclaimer {
    margin-top: 10px;
    font-size: 13px;
    opacity: 0.8;
}

.offer-details {
  display: none;
  margin-top: 10px;
  border-top: 1px solid #ccc;
  padding: 10px;
  font-size: 14px;
  color: #333;
  background: #f9f9f9;
  border-radius: 4px;
}

.offer-details.visible {
  display: block;
}

.darmowa {
    display: none;
    color: #00bb38;
}

.footer-menu {
        color: #8df9ff;
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease;
    text-shadow: 1px 1px 2px black;
}

.footer-menu:hover {
    color: #ffe88d;
    text-shadow: 1px 1px 2px #959595;
}

        table {
            width: 100%;
            border-collapse: collapse;
            margin: 25px 0;
            font-size: 18px;
            text-align: left;
        }
        th, td {
            padding: 6px;
            border-bottom: 1px solid #ddd;
        }
        th {
            background-color: #f2f2f2;
        }
        tr:hover {
            background-color: #f1f1f1;
            cursor: pointer;
        }
        .clickable {
            color: blue;
            text-decoration: underline;
        }
        
   .td1 {
    text-decoration: underline;
    color: #3b52e0;
    transition: color 0.3s ease, border-color 0.3s ease;
    text-shadow: 1px 1px 2px #00000030;
    border-bottom: 1px solid #ddd;
            }
            
    .list {
            padding: 20px;
    max-width: 920px;
    margin: 0 auto;
    font-size: 14px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 28%);
    margin-bottom: 20px;
    }        
        
 @media only screen and (max-width: 600px) {
            table {
                font-size: 13px;
            }
            


/* Адаптивность */
@media (max-width: 768px) {
    .offer-card {
            transition: .4s;
            border: 4px solid;
            border-image: linear-gradient(270deg, #db2b30, #ffffff, #db2b30);
            border-image-slice: 1;
            box-shadow: 0 0 15px rgb(255 53 0 / 50%);
            margin-top: 30px;
            flex-direction: column;
            text-align: center;
    }
    .offer-logo, .offer-info, .offer-actions {
        margin: 10px 0;
    }
    .main-nav ul {
        flex-direction: column;
    }
    
    .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    width: 90%;
}

.offer-logo {
    flex: 0;
    /* margin-right: 20px; */
    text-align: center;
}

.offer-info {
    flex: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.offer-actions {
    width: 100%;
            flex: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.offer-details {
    padding: 0;
}

.darmowa {
font-size: 18px;
            font-weight: 500;
            display: block;
            margin-bottom: 10px;
            margin-top: -10px;
}

}
