/* Brutalist premium minimal CSS — grok.com spirit with modern subtle animations
   White buttons, red used sparingly, expensive-feeling 400-600ms ease-outs.
*/

*, *::before, *::after { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
body { margin: 0; background: #000000; color: #FFFFFF; line-height: 1.5; -webkit-font-smoothing: antialiased; }

.max-w-screen-2xl { max-width: 1536px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.h-16 { height: 4rem; }

.fixed { position: fixed; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-50 { z-index: 50; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

.hidden { display: none; }
.md\:flex { display: flex; } /* simplified; real build handles media */

.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.font-black { font-weight: 900; }
.tracking-tighter { letter-spacing: -0.04em; }

.text-6xl { font-size: 3.75rem; line-height: 1; }
.md\:text-7xl { font-size: 4.5rem; line-height: 1; }

.text-5xl { font-size: 3rem; line-height: 1; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }

.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }

.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }

.tracking-wide { letter-spacing: 0.025em; }
.tracking-widest { letter-spacing: 0.1em; }

.bg-black { background-color: #000000; }
.text-white { color: #FFFFFF; }
.text-white\/90 { color: rgba(255,255,255,0.9); }
.text-white\/80 { color: rgba(255,255,255,0.8); }
.text-white\/70 { color: rgba(255,255,255,0.7); }
.text-white\/60 { color: rgba(255,255,255,0.6); }
.text-white\/50 { color: rgba(255,255,255,0.5); }
.text-white\/40 { color: rgba(255,255,255,0.4); }
.text-white\/20 { color: rgba(255,255,255,0.2); }
.text-white\/10 { color: rgba(255,255,255,0.1); }

.border-white\/10 { border-color: rgba(255,255,255,0.1); }
.border-white\/20 { border-color: rgba(255,255,255,0.2); }

.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }

.bg-white\/10 { background-color: rgba(255,255,255,0.1); }
.bg-white\/5 { background-color: rgba(255,255,255,0.05); }

.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-9 { padding: 2.25rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.px-14 { padding-left: 3.5rem; padding-right: 3.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }

.gap-2 { gap: 0.5rem; }
.gap-6 { gap: 1.5rem; }
.gap-x-9 { column-gap: 2.25rem; }

.gap-px { gap: 1px; }

.grid { display: grid; }
.md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.flex-col { flex-direction: column; }
.md\:flex-row { flex-direction: row; }

.items-baseline { align-items: baseline; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }

.w-full { width: 100%; }
.w-10 { width: 2.5rem; }
.shrink-0 { flex-shrink: 0; }

.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-md { max-width: 28rem; }

.min-h-\[92vh\] { min-height: 92vh; }

.pt-24 { padding-top: 6rem; }
.md\:pt-28 { padding-top: 7rem; }

.section { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 768px) {
  .section { padding-top: 7rem; padding-bottom: 7rem; }
}

.relative { position: relative; }
.absolute { position: absolute; }
.-top-3 { top: -0.75rem; }
.right-9 { right: 2.25rem; }

.rounded-none { border-radius: 0; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

.z-\[100\] { z-index: 100; }

.bg-black\/90 { background-color: rgba(0, 0, 0, 0.9); }

.overflow-hidden { overflow: hidden; } /* body when modal */

.cursor-pointer { cursor: pointer; }

.list-none { list-style: none; }

.uppercase { text-transform: uppercase; }

.transition-colors { transition: color 0.1s ease; }

/* Minimal hover, no strong red on main elements */
a:hover { opacity: 0.8; }
.hover\:underline:hover { text-decoration: underline; }

/* === PRIMARY WHITE BUTTONS (expensive, minimal, no red) === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #FFFFFF;
  color: #000000 !important;
  font-weight: 700;
  padding: 1rem 2rem;
  font-size: 1rem;
  line-height: 1;
  border: none;
  border-radius: 0;
  text-decoration: none !important;
  transition: transform 200ms cubic-bezier(0.23, 1.0, 0.32, 1),
              background-color 200ms ease-out,
              box-shadow 200ms ease-out,
              color 200ms ease-out;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  background-color: #f3f4f6;
  transform: scale(1.03);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.12), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  text-decoration: none !important;
}

.btn:active {
  transform: scale(0.985);
}

/* Smaller copy variant */
.btn.text-xs,
.btn.inline-block.text-xs {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Very light red only for accents like the "ВЫГОДНО" badge if needed. No red for instruction numbers. */
.text-red-accent {
  color: #FF0000;
}

/* FAQ details */
details summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.125rem;
}
details summary::-webkit-details-marker { display: none; }
details[open] summary { color: #FFFFFF; }

/* Header specific */
header {
  backdrop-filter: blur(8px);
  background: rgba(0,0,0,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* === SUPER STRONG WHITE BUTTONS (override everything red/old) === */
.btn,
a.btn,
button.btn {
  background-color: #FFFFFF !important;
  color: #000000 !important;
  border: none !important;
  text-decoration: none !important;
}

.btn:hover,
a.btn:hover,
button.btn:hover {
  background-color: #f3f4f6 !important;
  color: #000000 !important;
  text-decoration: none !important;
}

/* Hero: left edge with small offset, vertically centered in the tall hero block.
   Powerful but not ridiculous size. */
.hero-title {
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 0.9;
  font-size: 2.75rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 5rem;
  }
}

@media (min-width: 1280px) {
  .hero-title {
    font-size: 5.5rem;
  }
}

/* The text+button block stays on the left with reasonable width */
.hero-content {
  max-width: 620px;
}

/* Code samples */
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: rgba(255,255,255,0.06);
  padding: 0.1em 0.35em;
  border-radius: 2px;
}

/* Simple responsive helpers used */
@media (max-width: 767px) {
  .md\:text-7xl { font-size: 3.75rem; }
  .md\:grid-cols-3 { grid-template-columns: 1fr; }
  .md\:flex-row { flex-direction: column; }
}

/* Generous air */
h1, h2 { margin: 0; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding-left: 1.25rem; }
li { margin-bottom: 0.25rem; }

/* === Remove advantages section entirely on mobile (user request: убрать с мобильной версии) === */
@media (max-width: 767px) {
  #advantages {
    display: none !important;
  }
}

/* Improve 2-col on medium/small laptop windows (when user shrinks) */
@media (min-width: 640px) and (max-width: 1023px) {
  #advantages .advantage-card {
    padding: 1.25rem; /* reduce from p-8 */
  }

  #advantages .advantage-card > div:first-child {
    font-size: 2rem; /* smaller than 3rem */
    margin-bottom: 0.5rem;
  }

  #advantages .advantage-card h3 {
    font-size: 1.25rem;
  }

  #advantages .advantage-card p {
    font-size: 0.8rem;
  }
}

/* === Scroll & entrance animations (lightweight) === */
.opacity-0 { opacity: 0; }
.translate-y-8 { transform: translateY(2rem); }
.translate-y-4 { transform: translateY(1rem); }

.opacity-100 { opacity: 1; }
.translate-y-0 { transform: translateY(0); }

/* Modal content animation base */
#modal > div {
  transition: transform 500ms cubic-bezier(0.23, 1.0, 0.32, 1), opacity 400ms ease-out;
  transform: scale(0.96);
  opacity: 0;
}

#modal.flex > div {
  transform: scale(1);
  opacity: 1;
}

/* Button hover shadow is premium but subtle */
.btn {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Header links already clean; extra safety */
header a {
  text-decoration: none !important;
}

/* === Better mobile for Howto steps (no red numbers, readable on phones) === */
@media (max-width: 639px) {
  #howto .flex.gap-6 {
    gap: 0.75rem;
  }

  #howto .font-black.text-4xl {
    font-size: 1.25rem !important; /* smaller neutral numbers */
    width: 1.5rem;
    color: #ccc !important; /* ensure neutral, no red */
  }

  #howto h2 {
    font-size: 2rem;
  }
}

/* General mobile improvements for perfect smartphone adaptation */
@media (max-width: 639px) {
  .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero-content {
    max-width: 100%;
  }

  #tariffs .bg-black {
    padding: 1.25rem;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }
}
