/* products_styles.css 
 * Стили для страницы банковских продуктов
 * Версия: 1.0
 */
/* Сброс стилей и общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #f7f7f7;
    color: #333;
    line-height: 1.5;
}

/* Стили для баннера */
.pw-banner {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #4a6fa0, #6c5ce7);
    margin-bottom: 30px;
}

.pw-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.pw-banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.pw-banner-title {
    font-size: 36px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pw-banner-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    font-weight: 300;
}

/* Стили для таймера */
.pw-timer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pw-timer-label {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-right: 10px;
}

.pw-countdown {
    display: flex;
    align-items: center;
}

.countdown-time {
    background: #0084ff;
    color: white;
    font-size: 20px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 5px;
    min-width: 40px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.countdown-separator {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0 5px;
}

.pw-timer-hint {
    color: #fff;
    font-size: 16px;
    font-weight: 400;
    margin-left: 10px;
}

/* Стили для основного содержимого */
.pw-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.pw-main-description {
    text-align: center;
    margin-bottom: 30px;
}

.pw-main-description h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.pw-vitrina-title {
    font-size: 18px;
    color: #666;
    font-weight: 500;
}

/* Улучшенные стили для поиска */
.pw-search-container {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.pw-search {
    display: flex;
    width: 100%;
    position: relative;
}

.pw-search-input {
    flex: 1;
    padding: 14px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.pw-search-clear {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    color: #666;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: none;
    z-index: 5;
}

.pw-search-clear:hover {
    background: rgba(0, 0, 0, 0.2);
}

.pw-search-input:focus {
    border-color: #0084ff;
    box-shadow: 0 2px 8px rgba(0, 132, 255, 0.2);
}

.pw-search-button {
    background: #0084ff;
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 0 20px;
    cursor: pointer;
    transition: background 0.3s;
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pw-search-button:hover {
    background: #0066cc;
}

.pw-search-button svg {
    width: 20px;
    height: 20px;
}

/* Поисковые подсказки */
.pw-search-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.pw-search-suggestion {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.pw-search-suggestion:hover {
    background: #f9f9f9;
}

.pw-search-suggestion:last-child {
    border-bottom: none;
}

/* Стили для фильтров */
.pw-filters {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 25px;
    gap: 10px;
    justify-content: center;
}

.pw-filter-item {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.pw-filter-item:hover {
    background: #f5f5f5;
    color: #333;
}

.pw-filter-item.active {
    background: #0084ff;
    color: #fff;
    border-color: #0084ff;
}

/* УЛУЧШЕННЫЕ СТИЛИ ДЛЯ КАРТОЧЕК */
/* Контейнер для карточек в виде сетки (2 в ряд) */
.pw-projects-block {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px; /* Расстояние между карточками */
    margin-bottom: 40px;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

/* Стили для улучшенных карточек */
.pw-project {
    background: #fff;
    border-radius: 14px; /* Увеличиваем скругление */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); /* Более выраженная тень */
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid #eaeaea; /* Добавляем тонкую рамку */
    position: relative; /* Для позиционирования бэйджа */
}

.pw-project:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Стилизация плашки "Выберите подарок" */
.pw-choose-gift {
    background: #ff5722; /* Яркий цвет для привлечения внимания */
    color: white;
    text-align: center;
    padding: 8px 15px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 0 14px 0 14px; /* Скругление только для правого верхнего и левого нижнего углов */
    z-index: 2;
    animation: pulse 2s infinite;
}

/* Улучшенный заголовок карточки */
.pw-project-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fcfcfc; /* Светлый фон для шапки */
}

/* Улучшенная информация о проекте */
.pw-project-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Контейнер для логотипа */
.pwl-project-img {
    width: 80px; /* Увеличиваем размер */
    height: 80px; /* Увеличиваем размер */
    overflow: hidden;
    border-radius: 10px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #eee;
    padding: 5px;
}

.pwl-project-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Описание проекта */
.pw-project-description {
    flex: 1;
}

/* Название проекта */
.pwl-project-name {
    font-size: 20px; /* Увеличиваем размер */
    font-weight: 700; /* Делаем жирнее */
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Категория проекта */
.pwl-project-category {
    font-size: 13px;
    color: #0084ff;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 132, 255, 0.1);
    border-radius: 50px; /* Полностью круглые углы */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Содержимое карточки */
.pw-project-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

/* Стили для промокодов */
.pw-promocode-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Текст промокода */
.pw-promocode-text {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
    line-height: 1.5;
    flex: 1;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
}

/* Иконка для текста промокода */
.pw-promocode-text svg {
    margin-right: 12px;
    margin-top: 3px;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: #0084ff;
}

/* Блок нижних элементов */
.pw-block {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Блок копирования промокода */
.pw-copy-promocode {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f0f7ff, #e6f2ff);
    border: 1px solid #d0e4ff;
    border-radius: 10px;
    padding: 15px;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 132, 255, 0.05);
    transition: all 0.3s;
}

.pw-copy-promocode:hover {
    box-shadow: 0 4px 12px rgba(0, 132, 255, 0.1);
    transform: translateY(-2px);
}

/* Стиль для промокода */
.pw-promocode {
    font-size: 15px;
    color: #444;
}

/* Код промокода */
.pw-promocode-code {
    font-weight: 700;
    color: #0084ff;
    padding: 5px 10px;
    background: rgba(0, 132, 255, 0.1);
    border-radius: 6px;
    margin-left: 5px;
    font-size: 16px;
    letter-spacing: 0.5px;
    border: 1px dashed #0084ff;
}

/* Дата действия промокода */
.pw-date {
    font-size: 13px;
    color: #777;
    display: block;
    margin-top: 8px;
    font-style: italic;
}

/* Кнопка копирования */
.pw-copy-link {
    cursor: pointer;
    width: 36px;
    height: 36px;
    background: rgba(0, 132, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.pw-copy-link:hover {
    background: rgba(0, 132, 255, 0.3);
    transform: scale(1.1);
}

.pw-copy-link svg {
    width: 18px;
    height: 18px;
    fill: #0084ff;
}

/* Кнопка для перехода на сайт */
.pw-follow-link {
    display: block;
    text-align: center;
    padding: 14px;
    background: linear-gradient(135deg, #0084ff, #0066cc);
    color: white;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 132, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pw-follow-link:hover {
    background: linear-gradient(135deg, #0066cc, #004a99);
    box-shadow: 0 6px 15px rgba(0, 132, 255, 0.3);
    transform: translateY(-2px);
}

/* Стили для карточек с формами */
.pw-flex-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Лендинг проекта */
.pw-project-landing {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
    line-height: 1.5;
    flex: 1;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
}

.pw-project-landing svg {
    margin-right: 12px;
    margin-top: 3px;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: #0084ff;
}

/* Кнопка в нижней части лендинга */
.pw-follow-landing {
    margin-top: auto;
}

/* Сообщение "Ничего не найдено" */
.pw-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 30px;
    display: none;
}

.pw-no-results svg {
    width: 60px;
    height: 60px;
    fill: #ccc;
    margin-bottom: 15px;
}

.pw-no-results-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.pw-no-results-text {
    font-size: 15px;
    color: #666;
}

/* Улучшенные стили для модальных окон */
.pw-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.pw-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pw-modal-content {
    position: relative;
    background-color: #fff;
    margin: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.pw-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    z-index: 3;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pw-modal-body {
    padding: 30px;
}

.pw-modal-logo {
    text-align: center;
    margin-bottom: 20px;
}

.pw-modal-logo img {
    max-width: 200px;
    max-height: 80px;
    width: auto;
    height: auto;
}

.pw-modal-description {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.pw-modal-link {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #888;
}

.pw-modal-link a {
    color: #0084ff;
    text-decoration: none;
}

.pw-modal-link a:hover {
    text-decoration: underline;
}

/* Модальное окно успешной отправки */
.pw-success-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
}

.pw-success-modal.active {
    display: flex;
}

.pw-success-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.pw-success-icon {
    width: 60px;
    height: 60px;
    background: #ecf7ed;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.pw-success-icon svg {
    width: 30px;
    height: 30px;
    fill: #0d6832;
}

.pw-success-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.pw-success-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.pw-success-close {
    background: #0084ff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.pw-success-close:hover {
    background: #0066cc;
}

/* Стили для Contact Form 7 */
.pw-contact-form {
    margin-bottom: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #f0f0f0;
}

.wpcf7-form p {
    margin-bottom: 15px;
}

.wpcf7-form label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
    font-weight: 500;
}

.wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 15px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus {
    border-color: #0084ff;
    box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.1);
}

.wpcf7-form input[type="submit"] {
    width: 100%;
    padding: 14px;
    background: #0084ff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.wpcf7-form input[type="submit"]:hover {
    background: #0066cc;
}

/* Скрываем стандартные сообщения CF7 */
.wpcf7-response-output {
    display: none !important;
}

.wpcf7-spinner {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

/* Улучшенные стили для сообщений форм */
.pw-form-status {
    display: none;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

.pw-form-status.success {
    background: #edfaf1;
    color: #0d6832;
    border: 1px solid #c8e8d1;
}

.pw-form-status.error {
    background: #feecec;
    color: #b71c1c;
    border: 1px solid #f8d7d7;
}

.pw-form-status-icon {
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
}

.pw-form-status.success .pw-form-status-icon {
    fill: #2e7d32;
}

.pw-form-status.error .pw-form-status-icon {
    fill: #c62828;
}

.pw-form-action {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #0084ff;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.copy-notification {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 13px;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    align-items: center;
    max-width: 250px;
}

.copy-notification svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    fill: #4caf50;
}

/* Футер */
.site-footer {
    background: #f5f5f5;
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    margin-top: 50px;
    clear: both;
}

.privacy-policy {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.privacy-policy:hover {
    color: #0084ff;
    background: #fff;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #715BB9;
  color: white;
  padding: 15px 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  opacity: 0.95;
  display: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.cookie-text {
  font-size: 16px;
  line-height: 1.4;
}

.cookie-button {
  background-color: transparent;
  color: white;
  border: 1px solid white;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .cookie-content {
    justify-content: center;
    text-align: center;
  }
  
  .cookie-button {
    width: 100%;
    max-width: 200px;
  }
}

/* Эффект пульсации для плашки "Выберите подарок" */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Адаптивность */
@media (max-width: 992px) {
    .pw-projects-block {
        grid-template-columns: 1fr; /* На планшетах одна колонка */
        max-width: 600px;
    }

    .pw-banner {
        height: 250px;
    }
    
    .pw-banner-title {
        font-size: 28px;
    }
    
    .pw-banner-subtitle {
        font-size: 16px;
    }
    
    .pw-timer {
        flex-direction: column;
        padding: 8px 15px;
    }
    
    .pw-timer-label, .pw-timer-hint {
        margin: 5px 0;
    }
    
    .countdown-time {
        font-size: 18px;
        padding: 4px 8px;
        min-width: 35px;
    }
    
    .pw-main-description h1 {
        font-size: 24px;
    }
    
    .pw-vitrina-title {
        font-size: 16px;
    }
    
    .pw-modal-body {
        padding: 20px;
    }
    
    .pw-project-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pwl-project-img {
        margin-bottom: 10px;
    }
    
    .pw-copy-promocode {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pw-copy-link {
        margin-top: 10px;
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .pw-search-button {
        width: 50px;
    }
}