/* TOS */
/* по утверждённому фрейму TOS1: колонка 796 px, заголовок 75.5 px, тексты 20–22.6 px */
.tos { position: relative; max-width: calc(796px + 2 * var(--gutter)); }
.tos__head { padding-left: 4px; }
.tos__head .kicker { font-size: clamp(20px, 2.3vw, 27.4px); margin: 0; line-height: 1; }
.tos__title { font-size: clamp(44px, 6.3vw, 75.5px); }
.tos__h { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; }
.tos__h .sparkle { width: .8em; height: .8em; color: #5a69c6; filter: drop-shadow(0 0 6px rgba(120,130,230,.6)); }
.tos__group { margin: 26px 0 0 25px; font-size: clamp(26px, 3.3vw, 39.8px); }
.tos__disclaimer { padding: clamp(20px, 3vw, 30px); background: linear-gradient(160deg, rgba(40,32,60,.16), rgba(24,15,38,.08)); }
.tos__disclaimer { padding: 40px 33px 20px 25px; }
.tos__disclaimer p { margin: 0; font-family: var(--f-display); font-weight: 300; font-size: clamp(15px, 1.7vw, 20px); line-height: 1.5; color: #fff; }

.tos__list { display: grid; gap: 17px; margin-top: 24px; }
.tos__item { border-radius: 19.8px; background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(118,72,137,.16)); }
.tos__item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 26px; cursor: pointer; list-style: none; font-family: var(--f-display); font-weight: 500; font-size: clamp(18px, 2vw, 22px); }
.tos__item summary::-webkit-details-marker { display: none; }
.tos__item summary span { display: inline-flex; align-items: center; gap: 10px; }
.tos__item summary .sparkle { width: 16px; height: 16px; color: #5a69c6; filter: drop-shadow(0 0 6px rgba(120,130,230,.6)); }
.tos__item summary i { position: relative; width: 18px; height: 18px; flex: none; }
.tos__item summary i::before, .tos__item summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--text-2); border-radius: 2px; transition: transform .3s var(--ease); }
.tos__item summary i::after { transform: rotate(90deg); }
.tos__item[open]:not(.is-closing) summary i::after { transform: rotate(0); }
.tos__item ul { list-style: none; margin: 0; padding: 0 26px 24px; display: grid; gap: 10px; }
.tos__item li { display: flex; gap: 10px; font-family: var(--f-display); font-weight: 400; font-size: clamp(16px, 1.9vw, 22.6px); line-height: 1.5; color: #d1d1d1; }
.tos__item li .sparkle { width: 14px; height: 14px; margin-top: .3em; color: #fff; }
.tos__note { display: flex; align-items: center; gap: 10px; margin: 20px 0 0 26px; font-family: var(--f-display); font-weight: 500; font-size: clamp(16px, 1.9vw, 22px); line-height: 1.4; color: #fff; }
.tos__note .sparkle { flex: none; width: 14px; height: 14px; color: #5a69c6; filter: drop-shadow(0 0 6px rgba(120,130,230,.6)); }

/* схема этапов */
.process { margin-top: 18px; padding: clamp(18px, 3vw, 30px); border-radius: 26px; background: linear-gradient(170deg, rgba(20,22,32,.8), rgba(60,40,85,.45)); }
.process__head { display: flex; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin-bottom: 20px; }
.process__head .tos__h { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 6px; }
.process__hint { display: flex; align-items: center; gap: 7px; align-self: end; width: 250px; margin: 0; font-size: 12.5px; line-height: 1.3; color: var(--text-2); }
.process__hint .sparkle { flex: none; width: 11px; height: 11px; color: var(--accent); }

/* — переписка — */
.pchat { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; align-items: start; }
.pchat__window { display: flex; flex-direction: column; height: 560px; border-radius: 26px; overflow: hidden; background: #0e0916; border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.pchat__top { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: rgba(255,255,255,.04); border-bottom: 1px solid var(--line); }
.pchat__top b { display: block; font-family: var(--f-display); font-size: 17px; letter-spacing: .04em; font-weight: 500; }
.pchat__top small { display: block; font-size: 12px; color: var(--accent); }
.pchat__avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #c467ff, #2a0f4d); color: #fff; box-shadow: 0 0 0 2px rgba(233,139,255,.5); }
.pchat__avatar svg { width: 20px; height: 20px; }
.pchat__ctrl { margin-left: auto; display: flex; gap: 6px; }
.pchat__ctrl .icon-btn { width: 36px; height: 36px; }
.pchat__ctrl .icon-btn svg { width: 16px; height: 16px; }
.pchat__feed { flex: 1; overflow-y: auto; padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain;
  background: radial-gradient(80% 50% at 80% 0%, rgba(196,60,200,.16), transparent), radial-gradient(60% 40% at 0% 100%, rgba(107,63,240,.14), transparent); }
/* своя тонкая полоса прокрутки: системная белая торчала на скруглённых углах окна */
.pchat__feed { scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: rgba(233,139,255,.45) transparent; }
@supports selector(::-webkit-scrollbar) {
  .pchat__feed { scrollbar-width: auto; scrollbar-color: auto; }
  .pchat__feed::-webkit-scrollbar { width: 8px; }
  .pchat__feed::-webkit-scrollbar-track { background: transparent; margin-block: 8px 18px; }
  .pchat__feed::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 8px; background: rgba(233,139,255,.42) padding-box; }
  .pchat__feed::-webkit-scrollbar-thumb:hover { background-color: rgba(233,139,255,.7); }
  .pchat__feed::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
}
.pmsg { display: flex; animation: msg-in .35s var(--ease); }
.pmsg--client { justify-content: flex-end; }
.pmsg__bubble { max-width: min(78%, 440px); padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; }
.pmsg__bubble p { margin: 0; }
.pmsg--artist .pmsg__bubble { background: rgba(255,255,255,.08); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.pmsg--client .pmsg__bubble { background: linear-gradient(135deg, #b85cff, #e98bff); color: #22062b; border-bottom-right-radius: 6px; font-weight: 600; }
.pmsg__stage { display: block; margin-bottom: 4px; font-family: var(--f-display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.pmsg__img { display: block; width: 100%; margin-top: 10px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: #18101f; cursor: zoom-in; text-align: left; } /* фон тёмный, как у подписи: белый просвечивал каймой на скруглённых углах */
.pmsg__img img { display: block; width: 100%; max-height: 260px; object-fit: cover; object-position: top; background: #fff; }
.pmsg__img span { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #18101f; color: var(--text); font-family: var(--f-display); font-size: 13px; }
.pmsg__img .sparkle { width: 11px; height: 11px; color: var(--accent); }
.pmsg--typing .pmsg__bubble { display: inline-flex; gap: 4px; padding: 14px 16px; }
.pmsg--typing i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .5; animation: dot 1s infinite; }
.pmsg--typing i:nth-child(2) { animation-delay: .15s; }
.pmsg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.pchat__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; position: relative; }
.pchat__step { display: grid; grid-template-columns: 26px 52px 1fr; align-items: center; gap: 10px; width: 100%; height: 100%; padding: 8px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0,0,0,.25); color: inherit; font: inherit; text-align: left; cursor: pointer; opacity: .55; transition: opacity .4s, border-color .4s, background .4s, box-shadow .4s; }
.pchat__step.is-done { opacity: .85; }
.pchat__step:hover, .pchat__step:focus-visible { opacity: 1; border-color: rgba(233,139,255,.55); background: rgba(233,139,255,.06); }
.pchat__step.is-current { opacity: 1; border-color: var(--accent); background: rgba(233,139,255,.1); box-shadow: 0 0 24px -8px rgba(233,139,255,.6); }
.pchat__step img { transition: transform .5s var(--ease); }
.pchat__step:hover img, .pchat__step.is-current img { transform: scale(1.07); }
.pmsg.is-target .pmsg__bubble { animation: pmsg-target 1.3s var(--ease); }
@keyframes pmsg-target { 35% { box-shadow: 0 0 0 2px rgba(233,139,255,.75), 0 0 30px -4px rgba(233,139,255,.7); } }
@media (prefers-reduced-motion: reduce) { .pmsg.is-target .pmsg__bubble { animation: none; } .pchat__step img { transition: none; } }
.pchat__num { font-family: var(--f-display); font-size: 14px; color: var(--accent); text-align: center; }
.pchat__thumb { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: #fff; }
.pchat__thumb img, .pchat__thumb .ph { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.pchat__label { font-family: var(--f-display); font-size: 15px; line-height: 1.25; }

.tos__foot { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 60px; padding-inline: 20px; }
.tos__up { font-family: var(--f-display); text-transform: uppercase; letter-spacing: .1em; color: #24315c; }

@media (max-width: 760px) {
  .pchat { grid-template-columns: 1fr; }
  .pchat__steps { grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); overflow-x: auto; order: -1; padding-bottom: 4px; }
  .pchat__step { grid-template-columns: 20px 40px 1fr; }
  .pchat__thumb { width: 40px; height: 40px; }
  .pchat__window { height: 480px; }
  .process__hint { width: auto; }
  .tos__foot { padding-inline: 0; }
}
