

.faq {
  --faq-stop: #ff5a1f;                     
  --faq-dim: rgba(239, 235, 227, .78);     
  --faq-col: 52%;                          
  --faq-gap: clamp(40px, 5vw, 96px);       
  --faq-pad: clamp(10px, 1.7svh, 16px);    
  --faq-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --faq-paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .07 0 0 0 0 .06 0 0 0 0 .05 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  
  --faq-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1484 720'%3E%3Cpath fill='%231F2BD6' d='M 330 10 H 630 V 385 Q 630 452 628 495 Q 626 538 615.5 561.5 Q 605 585 581.5 595.5 Q 558 606 515.5 608 Q 473 610 405 610 H 235 Q 168 610 125 608 Q 82 606 58.5 595.5 Q 35 585 24.5 561.5 Q 14 538 12 495 Q 10 452 10 385 V 10 H 310 V 310 Q 325 310 327.5 307.5 Q 330 305 330 290 Z M 250 630 H 390 V 710 H 250 ZM 650 710 V 10 H 950 V 485 Q 950 552 948 595 Q 946 638 936 661.5 Q 926 685 902.5 695.5 Q 879 706 837 708 Q 795 710 728 710 ZM 970 610 V 310 H 1164 Q 1164 296 1161.5 293 Q 1159 290 1144 290 H 970 V 10 H 1209 Q 1286 10 1334.5 12.5 Q 1383 15 1409.5 26.5 Q 1436 38 1447.5 65 Q 1459 92 1461.5 140 Q 1464 188 1464 265 V 385 Q 1464 452 1462 495 Q 1460 538 1449.5 561.5 Q 1439 585 1415.5 595.5 Q 1392 606 1349.5 608 Q 1307 610 1239 610 Z'/%3E%3C/svg%3E");
  
  position: relative; isolation: isolate; overflow: clip;
  color: var(--bone);
  background: var(--floor);   
}

.faq::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .05) 0 18%, transparent 34%),
    radial-gradient(60% 55% at 14% -6%, rgba(255, 255, 255, .16), transparent 70%),
    linear-gradient(180deg, #2331e0 0%, var(--blue) 46%, var(--deep) 78%, var(--floor) 100%); }

.faq::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--faq-grain);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .28) 0, rgba(0, 0, 0, .28) 50%, #000 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .28) 0, rgba(0, 0, 0, .28) 50%, #000 100%); }


.faq-in { box-sizing: border-box; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(84px, 11svh, 120px) var(--m) clamp(48px, 7svh, 88px); scroll-snap-align: none; }

.faq-title { font: 400 var(--h2)/.98 var(--display); letter-spacing: -.012em; color: var(--bone);
  margin: 0 0 clamp(24px, 4.4svh, 56px); text-wrap: balance; }
.faq-title .w { display: inline-block; transform-origin: 0 100%; }


.faq-board { position: relative; }
.faq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.faq-item details { margin: 0; }
.faq-item summary { position: relative; list-style: none; cursor: pointer; display: flex; align-items: center; gap: clamp(12px, 1.1vw, 16px);
  box-sizing: border-box; width: fit-content; max-width: 100%; min-height: 52px; padding: var(--faq-pad) 28px var(--faq-pad) 20px;
  border-radius: 999px; color: var(--faq-dim); -webkit-tap-highlight-color: transparent;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-q { flex: 1 1 auto; min-width: 0; font: 400 clamp(20px, min(1.58vw, 3.3svh), 28px)/1.16 var(--display); letter-spacing: -.004em;
  text-wrap: balance; }
@media (hover: hover) {
  .faq-item summary:hover { color: var(--bone); background: rgba(239, 235, 227, .1); }
}

.faq-item details[open]:not(.faq-off) > summary { color: var(--blue);
  background: linear-gradient(180deg, #f6f3ee 0%, var(--bone) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 -3px 0 rgba(22, 32, 168, .12) inset,
    0 18px 36px -16px rgba(7, 10, 58, .6), 0 5px 12px -6px rgba(7, 10, 58, .35); }
.faq-item summary:focus-visible { outline: 3px solid var(--bone); outline-offset: 4px; }
.faq-item summary:focus:not(:focus-visible) { outline: none; }


.faq-dot { flex: none; width: 12px; height: 12px; border-radius: 2px; background: var(--faq-stop);
  opacity: 0; transform: rotate(45deg) scale(.4); transition: opacity .12s ease, transform .12s ease; }
.faq-item details[open]:not(.faq-off) .faq-dot { opacity: 1; transform: rotate(45deg) scale(1);
  transition: opacity .18s ease, transform .4s var(--pop); }


.faq-sign { display: none; }


.faq-a { box-sizing: border-box; position: absolute; z-index: 1; top: 0; bottom: 0; right: 0; left: calc(var(--faq-col) + var(--faq-gap));
  padding: clamp(26px, 4svh, 48px) clamp(28px, 2.8vw, 52px); border-radius: 6px; rotate: -1.4deg;
  color: var(--ink);
  background:
    var(--faq-paper-grain),
    radial-gradient(80% 70% at 14% 0%, rgba(255, 255, 255, .6), transparent 72%),
    linear-gradient(180deg, #f5f2ec 0%, var(--bone) 55%, #e9e4db 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset,
    0 46px 70px -34px rgba(5, 8, 60, .7), 0 14px 28px -14px rgba(5, 8, 60, .45); }
.faq-a p { margin: 0; font: 400 clamp(22px, min(2.2vw, 4.3svh), 36px)/1.38 var(--body); color: var(--ink); max-width: 18em; text-wrap: pretty; }

.faq-card-head, .faq-card-q, .faq-sig { display: none; }

.faq-add { display: inline; padding: .12em .5em; border: 2px dashed rgba(17, 17, 17, .45); border-radius: 12px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; line-height: 1.9; }

@media (min-width: 1024px) {
  .faq-list { width: var(--faq-col); }
  
  .faq-item details[open] > summary { cursor: default; }
  
  .faq-board::before { content: ""; position: absolute; z-index: 0; top: 0; bottom: 0; right: 0; left: calc(var(--faq-col) + var(--faq-gap));
    border-radius: 6px; rotate: 2.2deg; translate: 10px 6px; pointer-events: none;
    background: var(--faq-paper-grain), linear-gradient(180deg, #e8e3da 0%, #ddd7cc 100%);
    box-shadow: 0 40px 60px -32px rgba(5, 8, 60, .6), 0 10px 22px -12px rgba(5, 8, 60, .4); }

  
  .faq { --card-w: min(calc(100% - var(--faq-col) - var(--faq-gap)), 540px); }
  .faq-board { display: grid; min-height: var(--faq-h, clamp(380px, 50svh, 480px)); }
  .faq-list { align-content: space-between; }
  .faq-a.faq-card, .faq-board::before { top: 0; bottom: 0; left: auto; right: 0; width: var(--card-w); }
  .faq-a.faq-card { --cp: clamp(26px, 2.3vw, 38px);          
    --mw: clamp(50px, 3.7vw, 62px);                           
    display: flex; flex-direction: column; rotate: -1deg;
    padding: var(--cp); }
  .faq-card-head { display: flex; align-items: center; gap: 12px; height: 22px; }
  .faq-blk { flex: none; width: 44px; height: 22px; background: var(--blue); }
  .faq-rule { flex: 1 1 auto; height: 2px; background: var(--blue); }
  .faq-a .faq-card-q { display: block; margin: clamp(18px, 2.8svh, 28px) 0 clamp(10px, 1.6svh, 16px); max-width: 13.5em;
    font: 400 clamp(26px, min(2.3vw, 4.4svh), 38px)/1.02 var(--display); letter-spacing: -.01em; color: var(--blue); text-wrap: balance; }
  .faq-a.faq-card > p:not(.faq-card-q) { font-size: clamp(17px, min(1.32vw, 2.6svh), 21px); line-height: 1.45; max-width: 24em; }
  
  .faq-sig { display: block; flex: none; margin: auto 0 0 auto; padding-top: 20px; box-sizing: content-box; pointer-events: none;
    width: var(--mw); aspect-ratio: 1484 / 720; background: var(--faq-mark) no-repeat 0 100% / 100% auto; }
  
  .faq-card .faq-add { color: var(--blue); border-color: rgba(31, 43, 214, .55); background: rgba(31, 43, 214, .06); border-radius: 10px; }
}


@media (max-width: 1023px) {
  .faq-in { justify-content: flex-start; padding: 92px var(--m) 64px; }
  .faq-title { font-size: clamp(34px, 9.6vw, 64px); line-height: 1; margin-bottom: 22px; }
  .faq-list { gap: 8px; }
  .faq-dot { display: none; }
  
  .faq-item summary { width: 100%; min-height: 60px; padding: 8px 10px 8px 18px; gap: 12px; border-radius: 30px; color: var(--bone);
    box-shadow: inset 0 0 0 2px rgba(239, 235, 227, .45); }
  .faq-item details[open]:not(.faq-off) > summary { box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 -3px 0 rgba(22, 32, 168, .12) inset,
    0 16px 30px -16px rgba(7, 10, 58, .6), 0 4px 10px -5px rgba(7, 10, 58, .35); }
  
  .faq-q { font-size: clamp(15px, 4.1vw, 22px); line-height: 1.18; text-wrap: pretty; }
  
  .faq-sign { display: block; position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%;
    box-shadow: inset 0 0 0 2px var(--bone); transition: background-color .25s ease, box-shadow .25s ease; }
  .faq-sign::before, .faq-sign::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 3px; margin: -1.5px 0 0 -9px;
    border-radius: 2px; background: var(--bone); transition: transform .28s var(--heavy); }
  .faq-sign::after { transform: rotate(90deg); }
  .faq-item details[open]:not(.faq-off) .faq-sign { background: var(--blue); box-shadow: none; }
  .faq-item details[open]:not(.faq-off) .faq-sign::after { transform: rotate(0deg); }
  
  .faq-a { position: static; z-index: auto; padding: 0; overflow: hidden; rotate: none; border-radius: 0; background: none; box-shadow: none; color: var(--bone); }
  .faq-a p { padding: 14px 20px 12px; font: 400 clamp(16px, 4.3vw, 20px)/1.5 var(--body); color: var(--bone); max-width: 34em; }
  .faq-add { border-color: rgba(239, 235, 227, .72); }
  .faq-a.faq-card > p:not(.faq-card-q) { padding-top: 12px; }
}


@media (orientation: landscape) and (max-height: 560px) {
  .faq-in { padding: 70px max(var(--m), env(safe-area-inset-right)) 48px max(var(--m), env(safe-area-inset-left)); }
  .faq-title { font-size: clamp(30px, 12svh, 52px); margin-bottom: 16px; }
}


.faq[data-fx="pre"] .faq-title .w { opacity: 0; transform: translateY(.5em) scale(.96); }
.faq[data-fx="in"] .faq-title .w { transition: opacity .3s ease, transform .6s var(--pop); transition-delay: calc(var(--i, 0) * 50ms); }
.faq[data-fx="pre"] .faq-rise { opacity: 0; transform: translateY(18px); }

.faq[data-fx="in"] .faq-rise { --d: calc(120ms + var(--k, 0) * 35ms);
  transition: opacity .3s ease var(--d), transform .5s var(--pop) var(--d), background-color .25s ease, color .25s ease, box-shadow .25s ease; }
.faq.faq-now .faq-title .w, .faq.faq-now .faq-rise { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  .faq[data-fx] .faq-title .w, .faq[data-fx] .faq-rise { opacity: 1 !important; transform: none !important; transition: none !important; }
  .faq-item summary, .faq-dot, .faq-item details .faq-dot, .faq-sign, .faq-sign::before, .faq-sign::after { transition: none !important; }
}
