/* Landing composition follows the supplied reference: editorial introduction,
   an interface poster, then three full-viewport illustrated scenes. */

.header { height: 64px; }
.header-inner { width: min(1200px, calc(100% - 64px)); gap: 24px; }
.header .nav { margin-left: 16px; gap: 30px; }
.header-actions { gap: 12px; }
.header-actions .btn { min-height: 38px; padding: 9px 18px; }
.header.hero-header { background: transparent; border-color: transparent; backdrop-filter: blur(8px); }
.hero-header .header-login { color: #d6d7db; background: #ffffff05; border-color: #ffffff20; }
.hero-header .header-login:hover { background: #ffffff12; }
.hero-header .header-register { color: #fff; }
.header.hero-header .nav a.active,
.header.hero-header .nav a:hover { color: #fff; }
.page-main { padding-top: 64px; }
.auth-art::before { background: linear-gradient(180deg, #09090c59, #09090c1a 40%, #09090cd9), url('/assets/hero-scene.jpg') center / cover; filter: brightness(.8); }

.home-page .hero {
  height: 100svh;
  min-height: 680px;
  max-height: none;
  background: #101012;
}
.home-page .hero::after { background: radial-gradient(ellipse at 50% 49%, #0000003d 0%, #0000000a 65%, transparent 85%); }
.home-page .hero-landscape {
  background: url('/assets/hero-scene.jpg') center center / cover no-repeat;
  filter: none;
  transform: none;
}
.home-page .hero-content { padding: 0; max-width: 1000px; }
.home-page .hero-description { margin-top: 32px; max-width: 720px; color: #d6d7db; }
.home-page .hero-buttons { margin-top: 32px; gap: 16px; }
.home-page .hero .btn { min-width: 154px; padding: 13px 20px; height: 46px; }
.home-page .hero .btn-secondary { min-width: 180px; }

.showcase-intro { padding: 92px 24px 75px; text-align: center; background: var(--bg); }
.intro-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.intro-topics > span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid var(--border); border-radius: 100px; color: var(--muted); font-size: 13px; line-height: 1.2; }
.intro-topics .icon { width: 13px; height: 13px; }
.showcase-title { margin: 42px auto 0; max-width: 1000px; }
.showcase-title > span { color: var(--accent); position: relative; white-space: nowrap; }
.showcase-title > span::after { content: ''; position: absolute; left: -2%; width: 104%; bottom: -9px; height: 18px; background: url('/assets/brush-underline.svg') center / 100% 100% no-repeat; pointer-events: none; }
.showcase-intro > p { margin: 35px auto 0; max-width: 620px; color: #868791; }

.home-faq { display: grid; grid-template-columns: minmax(0, 427px) minmax(0, 520px); justify-content: center; align-items: start; gap: 73px; width: min(1220px, calc(100% - 64px)); margin: 0 auto; padding: 15px 0 150px; }
.home-faq .intro-topics { justify-content: flex-start; margin-bottom: 32px; }
.home-faq h2 { margin-bottom: 28px; }
.home-faq-copy > p { font-size: 16px; line-height: 1.45; color: #868791; margin-bottom: 30px; }
.home-faq .faq-list { border-top: 0; }
.home-faq .faq-item summary { padding: 21px 0; }
.home-faq .faq-item summary::after { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface2); color: var(--text); border-radius: 50%; font-size: 16px; }
.home-faq .faq-item p { font-size: 14px; line-height: 1.55; }
.home-faq-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.home-faq-actions .btn { padding: 13px 17px; }
.interface-poster { position: relative; overflow: hidden; min-height: 586px; border-radius: 12px; background: #151d20; color: #fff; }
.interface-poster > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 47% 40%; }
.interface-poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, #070d07b8 76%, #070d07e8 100%); }
.interface-poster-copy { position: absolute; z-index: 1; bottom: 40px; left: 30px; right: 25px; }
.interface-poster-copy h3 { font-size: 30px; line-height: 1.1; font-weight: 500; letter-spacing: -.04em; color: #fff; }
.interface-poster-copy h3 span { color: #e85f05; }
.interface-poster-copy .btn { margin-top: 22px; min-height: 37px; padding: 9px 22px; font-size: 13px; background: #d6500029; color: #f08c45; backdrop-filter: blur(16px); }
.interface-poster-copy .btn:hover { background: #d65000; color: #fff; }

.scene-section { position: relative; isolation: isolate; width: 100%; min-height: 800px; height: 100svh; display: flex; flex-direction: column; padding: 150px 350px; overflow: hidden; color: #fff; background: #0f0f11; }
.scene-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.scene-section::after { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(0deg, #00000012, transparent 50%); }
.scene-inner { display: flex; width: 100%; flex: 1; align-items: flex-end; justify-content: space-between; gap: 60px; }
.scene-copy { flex: 0 1 550px; max-width: 550px; min-width: 0; }
.scene-eyebrow { display: inline-flex; align-items: center; justify-content: center; padding: 9px 14px; border-radius: 100px; background: #d6500026; backdrop-filter: blur(32px); color: #e6600c; font-size: 13px; line-height: 1.1; font-weight: 650; }
.scene-title { margin: 17px 0 26px; color: #f4f4f4; }
.scene-description { margin: 0; color: #d6d7db; text-wrap: pretty; }
.scene-feature-list { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; list-style: none; padding: 0; margin: 30px 0 0; font-size: 13px; font-weight: 550; }
.scene-feature-list li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.scene-feature-list li + li::before { content: '·'; padding-right: 2px; }
.scene-feature-list .icon { width: 14px; height: 14px; }
.scene-details { flex: 0 0 190px; text-align: right; }
.scene-meta { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.scene-meta > div { display: flex; flex-direction: column; gap: 8px; }
.scene-meta dt { color: #a7a8ae; font-size: 14px; line-height: 1.1; font-weight: 400; }
.scene-meta dd { margin: 0; color: #dedee3; font-size: 14px; line-height: 1.4; font-weight: 550; }
.scene-button { margin-top: 42px; min-height: 48px; padding: 14px 24px; box-shadow: 0 10px 50px #d6500024; }
.scene-button:hover { box-shadow: 0 10px 50px #d6500050; }
.scene-performance { align-items: center; justify-content: center; padding: 40px 20px; }
.scene-performance .scene-image { object-position: center; }
.scene-performance::after { background: radial-gradient(ellipse at 50% 50%, #00000066 0%, #00000026 72%, #0000000a 100%); }
.scene-center { width: 100%; max-width: 1220px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.scene-center .scene-title { width: 100%; margin: 23px 0 25px; }
.scene-center .scene-description { max-width: 800px; font-size: 18px; padding: 0 15px; }
.scene-center .scene-meta { flex-direction: row; justify-content: center; gap: 40px; margin-top: 40px; }
.scene-center .scene-meta > div { align-items: center; gap: 10px; }
.scene-center .scene-meta dd { font-size: 16px; }
.scene-center .scene-button { margin-top: 49px; min-width: 200px; }
.scene-functional { height: 110svh; min-height: 880px; }
.scene-functional .scene-image { object-position: center; }
.scene-functional .scene-copy { text-align: right; max-width: 560px; }
.scene-functional .scene-details { text-align: left; flex-basis: 225px; }
.scene-functional .scene-feature-list { justify-content: flex-end; }

.home-details { max-width: 760px; width: calc(100% - 48px); margin: 0 auto; padding: 110px 0 50px; text-align: center; }
.home-details .showcase-title { margin-top: 0; font-size: 56px; }
.home-details > p { margin-top: 24px; font-size: 16px; color: #868791; }
.home-details .faq-list { margin-top: 42px; text-align: left; }
.home-details .faq-item p { font-size: 14px; line-height: 1.6; }
.home-details > .text-link { margin-top: 30px; }
.home-cta { padding: 90px 0 110px; }
.home-cta-mark { width: 90px; height: 90px; margin: 0 auto 30px; }
[data-theme=light] .home-cta-mark { filter: brightness(0); }
.home-cta h2 { font-size: 60px; font-weight: 700; }
.home-cta p { font-size: 16px; margin-top: 22px; }
.home-cta .btn { margin-top: 30px; }

@media (max-width: 1400px) {
  .scene-section:not(.scene-performance) { padding: 100px 120px; }
}

@media (max-width: 1200px) {
  .header .nav { gap: 18px; margin-left: 4px; }
  .header-register { display: none; }
  .home-faq { gap: 45px; }
  .scene-functional .scene-details { flex-basis: 200px; }
  .scene-inner { gap: 45px; }
}

@media (max-width: 992px) {
  .scene-section:not(.scene-performance) { padding: 80px 40px; }
  .scene-inner { gap: 35px; }
  .scene-copy { flex-basis: 500px; }
  .scene-details { flex-basis: 160px; }
  .scene-functional .scene-details { flex-basis: 160px; }
  .scene-feature-list { gap: 9px; font-size: 12px; }
  .home-faq { gap: 30px; width: calc(100% - 48px); }
  .home-faq-actions { gap: 8px; }
  .home-faq-actions .btn { padding-inline: 14px; }
  .interface-poster { min-height: 610px; }
  .interface-poster-copy { left: 22px; right: 18px; }
}

@media (max-width: 900px) {
  .header .nav { display: none; }
  .header .menu-toggle { display: flex; border: 0; }
  .header-inner { width: calc(100% - 40px); }
  .mobile-nav.open { display: flex; position: fixed; inset: 64px 0 0; z-index: 49; background: var(--bg); padding: 35px 24px; flex-direction: column; gap: 25px; font-size: 22px; }
  .mobile-nav a.active { color: var(--accent); }
}

@media (max-width: 760px) {
  .header, .header-inner { height: 64px; }
  .header-inner { width: calc(100% - 36px); gap: 12px; }
  .header-actions { gap: 7px; }
  .header-actions .btn { min-height: 35px; padding: 8px 13px; }
  .page-main { padding-top: 64px; }
  .home-page .hero { min-height: 650px; }
  .home-page .hero-landscape { background-position: 24% center; }
  .home-page .hero-content { width: calc(100% - 36px); padding: 40px 0 0; }
  .home-page .hero-description { margin-top: 26px; max-width: 440px; }
  .home-page .hero-description br { display: none; }
  .home-page .hero-buttons { margin-top: 27px; gap: 12px; }
  .home-page .hero .btn { height: 46px; min-width: 156px; padding-inline: 17px; }
  .home-page .hero .btn-secondary { min-width: 180px; }
  .showcase-intro { padding: 70px 18px 55px; }
  .showcase-title { margin-top: 32px; }
  .showcase-title > span { display: inline-block; white-space: nowrap; padding-bottom: 5px; }
  .showcase-title > span::after { display: block; height: 14px; bottom: -4px; }
  .showcase-intro > p { margin-top: 23px; }
  .intro-topics { gap: 7px; }
  .intro-topics > span { font-size: 11px; padding: 7px 9px; }
  .home-faq { grid-template-columns: 1fr; gap: 42px; width: calc(100% - 36px); padding: 10px 0 65px; }
  .home-faq-copy { max-width: 560px; margin: 0 auto; width: 100%; }
  .home-faq .intro-topics { margin-bottom: 25px; }
  .home-faq h2 { margin-bottom: 21px; }
  .home-faq-copy > p { font-size: 15px; margin-bottom: 20px; }
  .home-faq-copy > p br { display: none; }
  .home-faq-actions { gap: 10px; }
  .home-faq-actions .btn { padding-inline: 17px; }
  .interface-poster { width: 100%; max-width: 560px; min-height: 490px; margin: 0 auto; }
  .interface-poster-copy { left: 25px; right: 22px; bottom: 30px; }
  .interface-poster-copy h3 { font-size: 29px; }
  .scene-section, .scene-functional { min-height: 780px; height: 100svh; }
  .scene-section:not(.scene-performance) { padding: 90px 24px 55px; }
  .scene-image { object-position: 50% top; }
  .scene-inner { flex-direction: column; justify-content: flex-end; align-items: center; gap: 25px; text-align: center; }
  .scene-copy { flex: 0 1 auto; max-width: 520px; width: 100%; }
  .scene-details { flex: 0 1 auto; width: 100%; text-align: center; }
  .scene-title { margin: 17px 0 20px; }
  .scene-description { font-size: 15px; }
  .scene-eyebrow { font-size: 12px; padding: 8px 12px; }
  .scene-feature-list { justify-content: center; gap: 8px; font-size: 11px; margin-top: 23px; }
  .scene-feature-list li { gap: 5px; }
  .scene-feature-list .icon { width: 12px; height: 12px; }
  .scene-details .scene-meta { flex-direction: row; justify-content: center; gap: 30px; }
  .scene-meta dt { font-size: 12px; }
  .scene-meta dd { font-size: 13px; }
  .scene-button { margin-top: 26px; min-height: 46px; }
  .scene-visuals .scene-image { object-position: 51% top; }
  .scene-visuals::after { background: linear-gradient(0deg, #090909c4, #09090906 75%); }
  .scene-performance { padding: 40px 22px; }
  .scene-performance .scene-image { object-position: 28% center; }
  .scene-center .scene-title { margin: 22px 0; }
  .scene-center .scene-description { font-size: 15px; padding: 0; max-width: 520px; }
  .scene-center .scene-meta { margin-top: 30px; gap: 30px; }
  .scene-center .scene-meta dd { font-size: 14px; }
  .scene-center .scene-button { margin-top: 34px; }
  .scene-functional .scene-image { object-position: 25% top; }
  .scene-functional .scene-inner { flex-direction: column-reverse; }
  .scene-functional .scene-copy { text-align: center; }
  .scene-functional .scene-details { text-align: center; flex-basis: auto; }
  .scene-functional .scene-feature-list { justify-content: center; }
  .scene-functional::after { background: linear-gradient(0deg, #090909d9, #0909094d 60%, #09090900 90%); }
  .home-details { padding-top: 65px; width: calc(100% - 36px); }
  .home-details .showcase-title { font-size: 38px; }
  .home-details > p { font-size: 15px; }
  .home-cta { padding: 45px 0 75px; }
  .home-cta-mark { width: 70px; height: 70px; margin-bottom: 25px; }
  .home-cta h2 { font-size: 40px; }
  .home-cta p { font-size: 15px; max-width: 340px; margin-inline: auto; }
}

@media (max-width: 420px) {
  .home-page .hero-buttons { flex-direction: column; align-items: center; }
  .home-page .hero .btn { width: 190px; }
  .showcase-intro > p br { display: none; }
  .scene-section:not(.scene-performance) { padding-inline: 18px; }
  .scene-meta { gap: 20px; }
  .scene-feature-list { gap: 7px; font-size: 10px; }
  .scene-feature-list li + li::before { padding-right: 0; }
  .scene-details .scene-meta { gap: 22px; }
  .interface-poster { min-height: 460px; }
  .interface-poster-copy { left: 22px; }
  .interface-poster-copy h3 { font-size: 27px; }
}



/* Three steps instead of a second list of questions: the same ruled rows, a large number on the left. */
.home-steps { margin: 42px 0 0; padding: 0; list-style: none; text-align: left; border-top: 1px solid var(--border); }
.home-steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.home-step-number { font-family: var(--font-display); font-size: 34px; line-height: 1; letter-spacing: -.05em; color: var(--accent); }
.home-steps h3 { font-family: var(--font-display); font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.home-steps p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.home-steps .text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
@media (max-width: 760px) {
  .home-steps li { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
  .home-step-number { font-size: 26px; }
  .home-steps .text-link { grid-column: 2; }
}


/* The living landing picture (hero-motion.js) lies exactly over the still one and fades in once it runs. */
.hero-motion, .hero-petals { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-motion { opacity: 0; transition: opacity 1.2s ease; }
.hero.is-moving .hero-motion { opacity: 1; }
.hero-petals { z-index: 1; }
@media (prefers-reduced-motion: reduce) { .hero-motion, .hero-petals { display: none; } }


/* Phones: the small picture, no blur behind glassy chips (it stutters while scrolling), and the brush under
   "твоего стиля" sits below the words instead of across them. */
@media (max-width: 760px) {
  .hero-landscape { background-image: url('/assets/hero-scene-960.jpg') !important; }
}
@media (max-width: 760px), (pointer: coarse) {
  html { scroll-behavior: auto; }
  .header, .header.hero-header, .scene-eyebrow, .illustrated-scene .scene-eyebrow, .hero .btn-secondary, .interface-poster-copy .btn { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .header:not(.hero-header) { background: color-mix(in srgb, var(--bg) 94%, transparent); }
  .scene-eyebrow, .illustrated-scene .scene-eyebrow { background: #28170fe6; }
  .hero .btn-secondary { background: #ffffff14; }
  .hero-glow { display: none; }
}
