/* Refinement wave 1: additive layout and component treatment. */

/* Trust ribbon and proof cards */
.trust { padding-top: 96px; }
.trust .marquee { margin: 42px calc(50% - 50vw) 32px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.trust .client-track { gap: 0; margin: 0; animation: client-scroll 110s linear infinite; }
.trust .marquee-group { display: flex; flex: none; gap: 40px; padding-right: 40px; }
.trust .marquee-group img { flex: none; width: 160px; height: 76px; padding: 8px; border: 0; border-radius: 0; filter: grayscale(1); object-fit: contain; background: transparent; }
.trust .marquee:hover .client-track, .trust .marquee:focus-within .client-track { animation-play-state: paused; }
.stats { gap: 20px; }
.stats > div { padding: 24px 18px; border: 1px solid #e5e7eb; border-radius: 16px; background: #f4f5f6; text-align: center; }
.stats b { color: #2563eb; font-size: clamp(38px, 4vw, 40px); line-height: 1.1; }
.stats span { margin-top: 10px; }

/* Integrations */
.integrations { width: 100%; overflow: hidden; background: #fff; }
.integrations > .container { width: min(1440px, calc(100% - 40px)); }
.integrations h2 { max-width: none; white-space: nowrap; font-size: clamp(30px, 3.2vw, 40px); }
.integration-ribbon { display: grid; gap: 12px; overflow: hidden; margin: 38px calc(50% - 50vw) 0; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.integration-track { display: flex; width: max-content; gap: 0; animation: integration-scroll 48s linear infinite; }
.integration-track .pill-list { min-width: 100vw; }
.integration-track:nth-child(2) { animation-direction: reverse; }
.pill-list { display: flex; flex: none; flex-wrap: nowrap; justify-content: space-around; gap: 24px; width: max-content; padding-right: 24px; margin: 0; }
.integration-ribbon:hover .integration-track, .integration-ribbon:focus-within .integration-track { animation-play-state: paused; }
.trust .marquee.is-paused .client-track, .integration-ribbon.is-paused .integration-track { animation-play-state: paused; }
.marquee[role="button"], .integration-ribbon[role="button"] { cursor: pointer; }
.pill-list span { position: relative; flex: 0 0 auto; padding: 12px 18px 12px 30px; border-color: #d8e3f2; border-radius: 999px; box-shadow: 0 5px 14px #235a9a16; }
.pill-list span::before { position: absolute; top: 50%; left: 14px; width: 7px; height: 7px; border-radius: 50%; content: ""; background: var(--blue); transform: translateY(-50%); }
@keyframes integration-scroll { to { transform: translateX(-50%); } }

/* Features */
#features { background: #f4f6f8; }
#features > .container { text-align: center; }
#features > .container > h2 { max-width: 1180px; margin-right: auto; margin-left: auto; font-size: 48px; line-height: 1.25; }
#features h2 { color: var(--ink); }
.feature-grid { gap: 24px; margin-top: 56px; text-align: left; }
.feature-grid article { display: flex; min-height: 320px; flex-direction: column; padding: 28px; border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; box-shadow: 0 12px 30px #163b6810; }
.feature-grid h3 { display: flex; align-items: center; gap: 16px; }
.feature-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #edf6ff, #c7e2ff); }
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: #2563eb; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.feature-grid p { margin-top: 20px; }
.feature-grid p:not(.feature-benefit) { margin-bottom: 24px; }
.feature-grid p.feature-benefit { min-height: 65px; margin-top: auto; padding-top: 16px; border-top: 1px solid #e2e8f0; color: #2563eb; font-weight: 600; }

/* Process */
.process-section { padding: 104px 0; background: #1558ed; background-image: radial-gradient(circle at 78% 38%, #6fa7ff7a, transparent 46%), radial-gradient(circle at 14% 82%, #0b3aa8a8, transparent 52%); box-shadow: inset 0 0 100px #7fb5ff55; }
.process-layout { width: min(1280px, calc(100% - 40px)); min-height: 500px; grid-template-columns: 1.15fr 1fr; gap: 64px; }
.process-lead h2 { max-width: 590px; font-size: 60px; line-height: 1.15; font-weight: 800; }
.process-lead .button { margin-top: 20px; }
.section-badge { display: inline-block; margin: 0 0 20px; padding: 7px 14px; border: 1px solid #fff; border-radius: 999px; color: #1558ed; background: #fff; font-size: 13px; font-weight: 700; }
.process-grid { position: relative; gap: 24px; padding: 40px 32px; border: 1px solid #ffffff42; border-radius: 26px; background: #ffffff14; }
.process-grid::before { position: absolute; top: 58px; bottom: 58px; left: 51px; width: 2px; content: ""; background: #a9d0ff88; }
.process-grid article { position: relative; display: block; padding: 18px 10px 18px 62px; border: 0; border-radius: 0; background: transparent; }
.process-grid article > svg { position: absolute; top: 22px; left: 0; width: 42px; height: 42px; padding: 8px; border: 3px solid #b9d9ff; border-radius: 50%; fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; background: #3678dc; box-shadow: 0 0 0 7px #ffffff12; }
.process-grid b { display: block; margin-bottom: 6px; }
.process-grid p { margin: 0; }
.accent-blue { color: #2563eb; }
.accent-light { color: #b8d8ff; }
.desktop-break { display: block; }

@media (prefers-reduced-motion: reduce) {
  .trust .client-track, .integration-track { animation: none; }
  .trust .marquee-group[aria-hidden="true"] { display: none; }
  .trust .client-track { width: 100%; }
  .trust .marquee-group { width: 100%; padding: 0 16px; flex-wrap: wrap; justify-content: center; gap: 20px; }
  .trust .marquee-group img { flex: 0 1 140px; }
  .trust .marquee, .integration-ribbon { overflow: visible; mask-image: none; }
  .integration-track { width: 100%; flex-wrap: wrap; justify-content: center; }
  .integration-track .pill-list[aria-hidden="true"] { display: none; }
  .integration-track .pill-list { min-width: 0; width: 100%; padding: 0 16px; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 1100px) {
  .integrations h2 { white-space: normal; }
  .feature-grid { gap: 24px; }
  .process-layout { gap: 34px; }
  #features > .container > h2 { font-size: 40px; }
}

@media (max-width: 800px) {
  .desktop-break { display: none; }
  #features > .container > h2 { font-size: 32px; }
  .process-layout { grid-template-columns: 1fr; }
  .process-lead h2 { font-size: 40px; }
}

@media (max-width: 700px) {
  .trust { padding-top: 72px; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { padding: 20px; }
  .feature-grid { grid-template-columns: 1fr; gap: 20px; }
  .feature-grid article { min-height: 0; }
  .process-section { padding: 80px 0; }
  .process-layout { grid-template-columns: 1fr; }
  .process-grid { padding: 24px 18px; }
  .process-grid::before { left: 39px; }
}

@media (max-width: 380px) {
  .container { width: min(100% - 28px, 1180px); }
  .process-lead h2 { font-size: 40px; }
}

/* Pricing wave 2 */
.pricing { background: #edf5ff; }
.pricing > .container > h2 { margin-left: auto; margin-right: auto; color: var(--ink); text-align: center; }
.plans { align-items: stretch; }
.plan { display: flex; flex-direction: column; min-width: 0; }
.plan.featured { position: relative; z-index: 1; margin-top: -12px; padding-top: 40px; box-shadow: 0 22px 52px #174f9140; }
.plan .popular { background: #2f80ed; box-shadow: 0 8px 18px #2f80ed35; }
.plan .subscription, .plan .units, .plan .total-units { margin: 8px 0; padding: 9px 12px; border-radius: 10px; background: #eef6ff; }
.plan .subscription { color: #185da9; }
.plan .units { color: #126b9c; background: #e7f8fa; }
.plan .total-units { color: #164e87; background: #dcecff; font-weight: 700; }
.bonus-wrap[hidden] { display: none; }
.bonus-value { color: #2563eb; font-weight: 600; }
.plan-footer { order: 2; display: flex; flex-direction: column; margin-top: auto; padding-top: 24px; }
.plan-footer .total { min-height: 1.35em; }
.plan-footer .average, .plan-footer .discount, .plan-footer .unit-price { min-height: 3em; }
.plan-footer .button { min-height: 60px; margin-top: 18px; padding: 16px 12px; font-size: 16px; }
.plan ul { padding-left: 22px; }
.plan li::marker { color: #2f80ed; }
.plan[data-card="0"] .button { background: #dcecff; color: #1457a0; }
.plan[data-card="1"] .button { background: #2f80ed; color: #fff; }
.plan[data-card="2"] .button { background: #12345b; color: #fff; }
.plans.chats-active .plan[data-card="0"] .button { background: #dcecff; color: #1457a0; }
.plans.chats-active .plan[data-card="1"] .button { background: #2f80ed; color: #fff; }
.plans.chats-active .plan[data-card="2"] .button { background: #12345b; color: #fff; }

/* Comparison and trial */
.comparison { overflow: hidden; gap: 0; border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; box-shadow: 0 14px 36px #163b6815; }
.comparison > div { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 0; align-items: center; border-bottom: 1px solid #e8edf4; background: #fff; }
.comparison > div:last-child { border-bottom: 0; }
.comparison > div > * { padding: 14px 18px; }
.comparison > div > :first-child { text-align: left; }
.comparison > div > :not(:first-child) { text-align: center; }
.comparison > div:first-child > :nth-child(2) { color: #2563eb; }
.comparison > div:not(:first-child) > :nth-child(2) { justify-self: center; margin: 7px; padding: 7px 14px; border-radius: 8px; background: #eaf3ff; color: #2563eb; font-weight: 600; }
.comparison > div:not(:first-child) > :nth-child(3) { color: #697786; }
.trial-section { background: #fff; color: var(--ink); }
.trial-section h2 { color: var(--ink); }
.trial-section .hero-subtitle { color: var(--muted); }
.trial-section .steps { margin-bottom: 48px; }
.trial-section .steps span { padding: 0; border: 0; color: var(--ink); }
.trial-section .steps > span { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.trial-section .steps .step-number { display: inline-grid; width: 48px; height: 48px; place-items: center; border-radius: 12px; background: #eaf2ff; color: #2563eb; font-weight: 800; }
.trial-section .button { background: #2563eb; color: #fff; box-shadow: 0 14px 30px #2563eb40; }

@media (max-width: 700px) {
  .plan.featured { margin-top: 0; padding-top: 28px; }
  .comparison > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .comparison > div > * { padding: 12px 6px; }
  .comparison > div:not(:first-child) > :nth-child(2) { margin: 5px 2px; padding: 6px; }
  .trial-section .steps { align-items: stretch; gap: 14px; }
}

@media (max-width: 340px) {
  .plan .subscription, .plan .units, .plan .total-units { overflow-wrap: anywhere; }
}

/* Refinement wave 3: proof, editorial and closing sections. */
.hero.section-blue {
  background: url("/landing-assets/neirosovetnik-prodazh/visual-20260909/assets/sky-original.svg") center 65% / cover no-repeat;
}
.hero.section-blue::before {
  background: radial-gradient(ellipse 52% 48% at 50% 28%, #0a3b76db 0%, #1559a5ab 43%, #1f69b82e 70%, transparent 100%);
}
.hero-content h1 { max-width: 1100px; font-size: clamp(52px, 6vw, 75px); }
.hero-subtitle { color: #fff; }
.hero .hero-subtitle { position: relative; }
.hero .hero-subtitle::before { position: absolute; z-index: -1; inset: -36px -48px; border-radius: 50%; content: ""; background: #103e86f2; filter: blur(24px); }
.hero-shot { border-color: #ffffffa8; background: #ffffff38; box-shadow: 0 24px 64px #0c3f7833, inset 0 1px 0 #fff; }

.results { background: #fff; }
.results .section-badge, #faq .section-badge {
  border-color: #cddff4;
  color: #2168bc;
  background: #edf6ff;
}
.results-grid {
  gap: 18px;
  padding: 20px;
  border: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 46px #163b6824;
}
.results-grid div { padding: 28px 20px; border: 0; border-radius: 18px; background: #f2f5f8; }
.results-grid b { color: #2875ed; font-size: 48px; line-height: 1; }

.reviews-section { background: #f3f5f7; }
.reviews-grid { align-items: start; gap: 24px; }
.review { min-height: 0; border: 0; border-radius: 20px; box-shadow: 0 10px 26px #163b6812; }
.review:nth-child(2), .review:nth-child(5) { margin-top: 28px; }
.review:nth-child(3), .review:nth-child(6) { margin-top: 12px; }

.screens-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 16px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 46px #163b6820;
}
.screens-grid .image-button, .screens-grid .image-button:last-child {
  width: 100%;
  margin-top: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  box-shadow: none;
}
.screens-grid .image-button img { aspect-ratio: auto; object-fit: contain; }

#blog h2 {
  max-width: 700px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(34px, 3.3vw, 38px);
  text-align: center;
}
.blog-grid article {
  padding: 16px;
  border: 0;
  background: #f5f8fc;
  box-shadow: 0 10px 24px #163b680d;
}
.blog-grid article > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  margin-bottom: 20px;
  border-radius: 15px;
  background: #e7f1fb;
  object-fit: cover;
}
.blog-grid article > :not(img) { margin-right: 8px; margin-left: 8px; }
.blog-grid article p { color: #526176; }
.blog-grid article > span, .blog-grid article > a { color: #1d58b0; }
.blog-grid article > a { display: inline-block; margin-top: 18px; margin-bottom: 8px; }

#faq .narrow { text-align: center; }
#faq details {
  margin-top: 12px;
  padding: 0;
  border: 1px solid #d9e3ee;
  border-radius: 16px;
  background: #fff;
  text-align: left;
}
#faq summary {
  display: block;
  position: relative;
  padding: 20px 54px 20px 22px;
  list-style: none;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  position: absolute;
  top: 50%;
  right: 25px;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
#faq details[open] { border-color: #9fc5f4; }
#faq details[open] summary { color: #2875ed; }
#faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
#faq details p { margin: 0; padding: 0 22px 20px; }

.final-contact {
  padding: 160px 0 144px;
  color: #123c76;
  background: linear-gradient(to bottom, #fff 0%, #ffffffb3 17%, #ffffff12 38%, #ffffff12 66%, #ffffffb3 84%, #fff 100%), url("/landing-assets/neirosovetnik-prodazh/visual-20260909/assets/sky-original.svg") center / cover no-repeat;
}
.final-contact h2 { max-width: 880px; font-size: 48px; line-height: 1.25; }
.final-contact p { color: #102d53; font-size: 16px; }
.final-contact .button-light { color: #1764c0; background: #fff; box-shadow: 0 14px 30px #174f9133; }

@media (max-width: 800px) {
  .hero.section-blue { background-position: center 60%; }
  .hero.section-blue::before { background: radial-gradient(ellipse 84% 43% at 50% 23%, #0a3b76dd 0%, #1559a59c 58%, transparent 100%); }
  .hero-content h1 { max-width: 680px; font-size: 44px; }
  .hero .hero-subtitle::before { right: 0; left: 0; border-radius: 24px; }
  .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review:nth-child(2), .review:nth-child(5), .review:nth-child(3), .review:nth-child(6) { margin-top: 0; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-grid article:last-child { grid-column: 1 / -1; max-width: calc(50% - 9px); }
  .final-contact { padding: 120px 0 112px; }
  .final-contact h2 { font-size: clamp(38px, 6vw, 48px); }
}

@media (min-width: 801px) and (max-width: 1100px) {
  .plans { gap: 12px; }
  .plan { padding: 22px 16px; }
  .plan.featured { padding-top: 34px; }
  .plan .total { font-size: 28px; white-space: nowrap; }
  .plan-footer .average, .plan-footer .discount, .plan-footer .unit-price { min-height: 4.5em; }
  .plan-footer .button { min-height: 80px; }
}

@media (max-width: 480px) {
  .hero-shot { border-radius: 20px; }
  .results-grid, .reviews-grid, .screens-grid, .blog-grid { grid-template-columns: 1fr; }
  .results-grid { padding: 12px; gap: 12px; }
  .results-grid div { padding: 24px 18px; }
  .results-grid b { font-size: 44px; }
  .screens-grid { padding: 10px; gap: 10px; border-radius: 20px; }
  .screens-grid .image-button { border-radius: 12px; }
  .blog-grid article:last-child { grid-column: auto; max-width: none; }
  #faq summary { padding: 18px 50px 18px 18px; font-size: 17px; }
  #faq details p { padding: 0 18px 18px; }
  .final-contact { padding: 96px 0 88px; }
  .final-contact h2 { font-size: 36px; }
}

@media (max-width: 390px) {
  .hero-subtitle { font-size: 16px; }
  .results-grid b { font-size: 40px; }
  #blog h2 { font-size: 32px; }
}

@media (max-width: 320px) {
  .results-grid div { padding: 20px 14px; }
  .final-contact h2 { font-size: 32px; }
}
