* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

:root {
  --bg-main: #fcfbff;
  --bg-soft: #f6f2ff;
  --bg-section: #f8f5ff;
  --text-main: #1f1830;
  --text-soft: #5a5270;
  --border: #e8e0f5;
  --blueberry: #3f2f8f;
  --blueberry-dark: #2e1a47;
  --purple: #5a2a83;
  --lavender: #b8a4e3;
  --pink-accent: #f4a6c1;
  --peach-accent: #f7b38c;
  --mint-accent: #a8e6cf;
  --shadow-soft: 0 8px 30px rgba(63, 47, 143, 0.08);
  --shadow-card: 0 10px 30px rgba(46, 26, 71, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text-main);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-main) 100%);
  line-height: 1.6;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--blueberry-dark);
}

.nav nav {
  display: flex;
  gap: 24px;
}

.nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--purple);
}

.hero {
  padding: 80px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3edff, #f9f3ff);
  color: var(--purple);
  border: 1px solid #eadffd;
  font-size: 14px;
  font-weight: 600;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--blueberry-dark);
}

.hero p {
  font-size: 18px;
  color: var(--text-soft);
  margin-bottom: 28px;
}

.hero-card {
  padding: 32px;
  background: linear-gradient(180deg, #ffffff, #f7f2ff);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.mock-device {
  height: 220px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--blueberry-dark), var(--blueberry), var(--purple));
  color: #fff;
  display: flex;
  align-items: center;      /* по вертикали */
  justify-content: center;  /* по горизонтали */
  gap: 8px;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.hero-actions,
.card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.section {
  padding: 70px 0;
}

.section-gray {
  background: linear-gradient(180deg, var(--bg-section), #fcfbff);
}

.section h2 {
  font-size: 36px;
  margin-bottom: 28px;
  color: var(--blueberry-dark);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cards.three {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(46, 26, 71, 0.12);
  border-color: #d9cdf3;
}

.card h3 {
  margin-bottom: 12px;
  font-size: 24px;
  color: var(--blueberry-dark);
}

.card p {
  color: var(--text-soft);
  margin-bottom: 18px;
}

.price-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.price {
  font-size: 28px;
  font-weight: 700;
  color: var(--purple);
}

.old-price {
  color: #9b90b4;
  text-decoration: line-through;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-dark {
  background: linear-gradient(135deg, var(--blueberry-dark), var(--purple));
  color: #fff;
  box-shadow: 0 8px 20px rgba(90, 42, 131, 0.18);
}

.btn-dark:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.btn-light {
  background: #f4efff;
  color: var(--purple);
  border: 1px solid #e5d8fb;
}

.btn-light:hover {
  background: #efe6ff;
}

.btn-outline {
  border: 1px solid #cab8ee;
  color: var(--blueberry-dark);
  background: transparent;
}

.btn-outline:hover {
  background: #f7f2ff;
  border-color: var(--lavender);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.spec-item {
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(63, 47, 143, 0.04);
}

.spec-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blueberry-dark);
}

.delivery-list {
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: var(--text-soft);
}

.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #ddd6ef;
  font-size: 16px;
  background: #fff;
  color: var(--text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--lavender);
  box-shadow: 0 0 0 4px rgba(184, 164, 227, 0.18);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: #7d7395;
  background: #fff;
}

.card-img {
  width: 100%;
  max-width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-bottom: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
}

.logo-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

/* ===== ОТЗЫВЫ ===== */

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-card {
  background: #fff;
  padding: 20px;
  border-radius: 14px;

  border: 2px solid #e8f5e9;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);

  transition: all 0.2s ease;
}

.review-card:hover {
  border-color: #4caf50;
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.2);
  transform: translateY(-2px);
}

.review-stars {
  color: gold;
  font-size: 20px;
  margin-bottom: 10px;
  letter-spacing: 3px;
}

.review-card p {
  margin-bottom: 10px;
  line-height: 1.5;
}

.review-author {
  color: #2e7d32;
  font-weight: 600;
}

/* ===== ЧИСТЫЕ ШАГИ СО СТРЕЛКАМИ ===== */

.steps-clean {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.step-card {
  text-align: center;
  padding: 20px;
  min-width: 220px;

  border: 2px solid #e8f5e9;
  border-radius: 14px;
  transition: all 0.2s ease;
}

.step-card:hover {
  border-color: #4caf50;
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.2);
  transform: translateY(-3px);
}

/* номер шага */
.step-number {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;

  border-radius: 50%;
  background: #4caf50;
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: bold;
}

/* стрелки */
.step-arrow {
  font-size: 30px;
  color: #4caf50;
  font-weight: bold;
}

/* немного выделим карточки */
.steps .card {
  text-align: center;
  border: 2px solid #e8f5e9;
  transition: all 0.2s ease;
}

.steps .card:hover {
  border-color: #4caf50;
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.2);
  transform: translateY(-3px);
}

.steps .card h3 {
  position: relative;
  padding-left: 40px;
}

.steps .card h3::before {
  content: attr(data-step);
}

section {
  scroll-margin-top: 60px;
}

@media (max-width: 768px) {
  .steps {
    flex-direction: column;
    align-items: stretch;
  }

  .step:not(:last-child)::after {
    content: "↓";
    right: 50%;
    top: auto;
    bottom: -20px;
    transform: translateX(50%);
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .contact-block,
  .cards,
  .spec-grid,
  .cards.three {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 38px;
  }

  .nav {
    flex-direction: column;
    gap: 12px;
  }

  .nav nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}
