/* Общие стили */
body {
  font-family: 'Play', sans-serif;
  margin: 0;
  background: #f9f9f9;
  color: #333;
  line-height: 1.5;
}

h1, h2, h3 { font-weight: 700; margin: 0 0 15px 0; }
p { margin: 0 0 15px 0; }
a { color: #f54f29; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Хедер с фоном-изображением */
header {
  background: url('https://partners.selectleasing.ru/aaq9.svg') no-repeat center center;
  background-size: cover; /* изображение покрывает весь блок */
  color: #fff;
  text-align: center;
  padding: 50px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Текст поверх изображения */
header h1 {
  position: relative;
  z-index: 1;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
  font-size: 2.5rem; /* увеличенный размер */
}

header p {
  position: relative;
  z-index: 1;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
  font-size: 1.2rem; /* увеличенный размер */
}


/* Кнопки хедера */
.header-buttons {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  position: relative;
  z-index: 1;
}
.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.95);
  color: #f54f29;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1em;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.header-btn:hover {
  background: #4d4747; /* темно-серый */
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  text-decoration: none;
}
.header-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


/* Секции */
section { padding: 20px 20px; max-width: 1000px; margin: 0 auto; }
section h2 { text-align: center; font-size: 2em; margin-bottom: 30px; }

/* Карточки */
.card, .benefit-card, .case-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.8s ease, transform 0.8s ease;
  opacity: 0;
  transform: translateY(30px);
}
.card.show, .benefit-card.show, .case-card.show { opacity: 1; transform: translateY(0); }
.card:hover, .benefit-card:hover, .case-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px; }

.card h3 { font-size: 1.2em; margin-bottom: 10px; }
.card ul { padding-left: 20px; font-weight: 500; color: #333; }
.card ul li { margin-bottom: 8px; display: flex; align-items: center; }
.highlight { color: #f54f29; font-weight: 700; }

/* Benefit Cards */
.benefit-card { text-align: center; }
.benefit-card div.icon { font-size: 2em; margin-bottom: 10px; }
.animated-icon { display: inline-block; font-size: 2.5em; color: #f54f29; animation: pulse 2s infinite; }

@keyframes pulse { 0% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1); opacity: 0.9; } }
.benefit-card:hover .animated-icon { animation: bounce 1.2s; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Workflow steps */
.step-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f54f29;
  color: #fff;
  font-weight: 700;
  font-size: 1.1em;
  margin-bottom: 10px;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  /* Benefit Cards и шаги */
  .benefit-card div.icon { font-size: 1.5em; }
  .animated-icon { font-size: 1.8em; }
  .step-icon { width: 32px; height: 32px; font-size: 0.95em; }

  /* Grid */
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 15px; }

  /* Кнопки хедера */
  .header-buttons { flex-direction: column; gap: 12px; align-items: center; padding: 0 10px; }
  .header-btn { width: 100%; max-width: 260px; justify-content: center; box-sizing: border-box; }

  /* Кейс-карусель — свайп */
  .cases-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cases-carousel { display: flex; gap: 12px; scroll-snap-type: x mandatory; }
  .case-card { flex: 0 0 80%; scroll-snap-align: start; min-width: 80%; }

  /* Карусель логотипов */
  .trust .carousel { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 0 10px; }
  .trust .carousel img { flex: 0 0 auto; scroll-snap-align: start; width: 100px; height: 60px; object-fit: contain; margin: 0; }
}

/* Карусель кейсов и доверие */
.cases-wrapper { overflow: hidden; width: 100%; }
.cases-carousel { display: flex; transition: transform 0.6s ease-in-out; }
.case-card { min-width: 280px; margin-right: 15px; display: flex; flex-direction: column; }
.case-card img { width: 100%; height: 180px; border-radius: 8px; object-fit: cover; margin-bottom: 10px; }
.case-card h3 { font-size: 1.1em; margin-bottom: 5px; }
.case-card p { font-size: 0.95em; color: #555; margin-bottom: 10px; }

.trust { text-align: center; max-width: 1000px; margin: 0 auto; overflow: hidden; }
.trust .carousel { display: flex; transition: transform 0.6s ease-in-out; gap: 20px; width: 100%; }
.trust .carousel img { width: 160px; height: 80px; object-fit: contain; margin: 0 10px; border-radius: 8px; filter: grayscale(100%); }

/* Footer */
footer { background: #1a1a1a; color: #ccc; text-align: center; padding: 40px 20px; font-size: 0.9em; }
footer a { color: #f54f29; }
footer a:hover { text-decoration: underline; }
footer .main-links { font-size: 1.2em; font-weight: 700; margin-bottom: 15px; display: block; }

/* Форма обратной связи */
form {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 450px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Play', sans-serif;
  box-sizing: border-box;
}

form textarea {
  min-height: 80px;
  resize: vertical;
  margin-top: 10px;
}

form button {
  background: #f54f29;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 20px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 15px;
}

form button:hover { background: #d83f1e; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.9em;
}

.consent input[type="checkbox"] { margin-top: 2px; }
.consent label { margin: 0; }

.privacy-note {
  font-size: 0.9em;
  margin-top: 10px;
}
.privacy-note a { color: #f54f29; }
.privacy-note a:hover { text-decoration: underline; }

/* Адаптив для формы на мобильных */
@media (max-width: 768px) {
  form { padding: 20px; width: 100%; }
}
