:root {
  --brand: #8b2fc9;
  --brand-hover: #6f23a4;
  --text-main: #1a1918;
  --text-secondary: #4f4e4c;
  --text-muted-dark: #cfcfd3;
  --surface-soft: #f8f4ff;
  --border-soft: #e8e5ee;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  color: var(--text-main);
  background: #ffffff;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.text-sm {
  font-size: 16px !important;
}

.text-base {
  font-size: 18px !important;
}

.text-\[15px\] {
  font-size: 18px !important;
}

a,
button {
  transition: background-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(139, 47, 201, 0.35);
  outline-offset: 2px;
}

/* Контраст и аккуратность текста */
.text-\[\#6D6C6A\],
.text-\[\#4A4A50\] {
  color: var(--text-secondary) !important;
}

.text-\[\#9C9B99\] {
  color: var(--text-muted-dark) !important;
}

.text-white\/67 {
  color: rgba(255, 255, 255, 0.86) !important;
}

.text-white\/80 {
  color: rgba(255, 255, 255, 0.93) !important;
}

.text-\[\#666\] {
  color: #b4b4b9 !important;
}

.border-\[\#E5E4E1\],
.border-\[\#F0F0EE\],
.border-\[\#333333\],
.border-\[\#3D3C3A\] {
  border-color: var(--border-soft) !important;
}

.bg-\[\#8B2FC9\]:hover,
.hover\:bg-\[\#7a27b3\]:hover {
  background-color: var(--brand-hover) !important;
}

.rounded-xl,
.rounded-2xl {
  border-radius: 16px;
}

.shadow-\[0_2px_12px_rgba\(26\,25\,24\,0\.08\)\] {
  box-shadow: 0 8px 24px rgba(26, 25, 24, 0.08) !important;
}

.shadow-\[0_4px_20px_rgba\(0\,0\,0\,0\.04\)\] {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06) !important;
}

/* Больше "воздуха" на больших экранах */
@media (min-width: 1440px) {
  .px-\[120px\] {
    padding-left: 140px !important;
    padding-right: 140px !important;
  }
}

@media (min-width: 992px) {
  .hero-benefits {
    column-gap: 1.25rem !important;
    row-gap: 0.5rem !important;
  }
}

/* Планшеты */
@media (max-width: 1279px) {
  .h-20 {
    height: 72px !important;
  }

  .px-\[200px\] {
    padding-left: 80px !important;
    padding-right: 80px !important;
  }

  .px-\[120px\] {
    padding-left: 56px !important;
    padding-right: 56px !important;
  }

  .px-\[100px\] {
    padding-left: 48px !important;
    padding-right: 48px !important;
  }

  .px-\[60px\] {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }

  .h-\[640px\] {
    min-height: 560px !important;
    height: auto !important;
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  .text-\[52px\] {
    font-size: 44px !important;
    line-height: 1.18 !important;
  }

  .text-4xl {
    font-size: 2rem !important;
  }

  .w-\[960px\] {
    width: 100% !important;
  }

  .h-\[540px\] {
    height: clamp(280px, 48vw, 520px) !important;
  }

  .w-\[700px\],
  .w-\[760px\],
  .max-w-\[1200px\],
  .max-w-\[1000px\],
  .max-w-\[980px\],
  .max-w-\[900px\],
  .max-w-\[800px\] {
    width: 100% !important;
    max-width: 100% !important;
  }

  .w-\[560px\] {
    width: 46% !important;
  }
}

/* Мобильные */
@media (max-width: 991px) {
  .sticky {
    position: static !important;
  }

  header nav {
    gap: 12px !important;
  }

  header nav a {
    font-size: 16px !important;
  }

  .text-\[40px\],
  .text-\[52px\] {
    font-size: 34px !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
  }

  .text-xl {
    font-size: 1rem !important;
  }

  .text-lg {
    font-size: 1.05rem !important;
  }

  .grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .grid-cols-2 {
    grid-template-columns: 1fr !important;
  }

  .flex.gap-\[60px\] {
    gap: 36px !important;
    flex-direction: column !important;
  }

  .w-\[560px\] {
    width: 100% !important;
  }

  .h-\[480px\] {
    height: 360px !important;
  }

  .px-\[200px\],
  .px-\[120px\],
  .px-\[100px\] {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .py-20 {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  .gap-12 {
    gap: 2rem !important;
  }
}

@media (max-width: 767px) {
  .h-20 {
    height: auto !important;
  }

  header {
    flex-direction: column !important;
    justify-content: center !important;
    gap: 12px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  header nav {
    width: 100% !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 10px 14px !important;
  }

  header nav a:last-child {
    width: 100%;
    text-align: center;
  }

  .h-\[640px\] {
    min-height: 520px !important;
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  .px-\[120px\],
  .px-\[100px\],
  .px-\[60px\],
  .px-\[200px\] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .text-\[40px\],
  .text-\[52px\],
  .text-4xl {
    font-size: 28px !important;
    line-height: 1.22 !important;
  }

  .text-\[22px\] {
    font-size: 20px !important;
  }

  .text-\[48px\] {
    font-size: 40px !important;
  }

  .gap-8 {
    gap: 1.25rem !important;
  }

  .p-8,
  .p-7,
  .p-6 {
    padding: 18px !important;
  }

  .w-\[700px\] {
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  .w-\[700px\] .w-\[200px\] {
    width: 150px !important;
  }

  .py-\[14px\] {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .w-\[960px\] {
    border-radius: 14px !important;
  }

  .h-\[540px\] {
    height: 220px !important;
  }

  .hero-cta {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 360px !important;
    align-items: stretch !important;
  }

  .hero-cta a {
    width: 100% !important;
    text-align: center !important;
  }

  .w-20.h-20 {
    width: 62px !important;
    height: 62px !important;
  }

  .flex.items-center.justify-center.gap-12.w-full,
  .flex.items-center.gap-8 {
    flex-wrap: wrap !important;
    gap: 14px !important;
  }

  .trust-strip {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 10px !important;
    justify-items: start !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
  }

  .trust-strip-item {
    min-width: 0 !important;
  }

  footer .flex.justify-between.gap-10 {
    flex-direction: column !important;
    gap: 28px !important;
  }

  footer .w-\[300px\],
  footer p.w-\[280px\] {
    width: 100% !important;
  }

  footer .flex.items-center.justify-between {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
}

@media (max-width: 479px) {
  .grid-cols-4,
  .grid-cols-3,
  .grid-cols-2 {
    grid-template-columns: 1fr !important;
  }

  .text-\[40px\],
  .text-\[52px\],
  .text-4xl {
    font-size: 24px !important;
  }

  .text-base {
    font-size: 18px !important;
  }

  .text-\[15px\] {
    font-size: 18px !important;
  }

  .text-sm {
    font-size: 16px !important;
  }

  .px-12,
  .px-10,
  .px-8 {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .py-4,
  .py-3 {
    padding-top: 11px !important;
    padding-bottom: 11px !important;
  }

  .rounded-lg {
    border-radius: 12px !important;
  }
}

.hero-section {
  background: url(./assets/img/bg.jpg) no-repeat center center;
  background-size: cover;
}

.hero-title-shadow {
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.6);
}

.hero-text-shadow {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.card-image-wrap {
  overflow: hidden;
}

.card-image-wrap img {
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.print-section {
  overflow: hidden;
}

.print-section img {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}