/* Раздел и вкладки */
.guide-section {
  position: relative;
  padding: 76px 0 70px;
  background: #141615;
  overflow: clip;
}
.guide-anchor {
  position: absolute;
  top: 0;
  left: 0;
}
.guide-intro {
  text-align: center;
  margin-bottom: 34px;
}
.guide-intro h2 {
  font-size: 45px;
  letter-spacing: -2px;
}
.guide-intro > p {
  color: #b3b7ac;
  font-size: 16px;
  line-height: 1.7;
  margin: 19px auto 0;
  max-width: 690px;
}
.guide-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 850px;
  margin: 0 auto 35px;
}
.guide-tabs button {
  border: 1px solid #44463d;
  border-radius: 10px;
  background: #1d201c;
  color: #bbc0b1;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  line-height: 1.5;
  transition: background .2s, border-color .2s, color .2s;
  font-size: 16px;
}
.guide-tabs button > span {
  width: 24px;
  height: 24px;
  border: 1px solid #555b4b;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
}
.guide-tabs button[aria-selected=true] {
  color: #f4d99f;
  background: #eac06912;
  border-color: #a58c54;
}
.guide-tabs button[aria-selected=true] > span {
  background: var(--gold);
  border-color: var(--gold);
  color: #2a2313;
}
.guide-tabs button:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.guide-stack {
  position: relative;
  padding-top: 16px;
  margin-inline: 16px;
  isolation: isolate;
}
.guide-stack::before,
.guide-stack::after {
  content: '';
  position: absolute;
  border: 1px solid #464939;
  border-radius: 23px;
  background: #20251e;
  z-index: -1;
  top: 0;
  bottom: 30px;
  left: 22px;
  right: 22px;
}
.guide-stack::after {
  top: 8px;
  left: 10px;
  right: 10px;
  bottom: 15px;
  background: #1c201b;
  border-color: #515543;
}
.guide-panel {
  display: grid;
  grid-template-columns: 1fr .92fr;
  border: 1px solid #4a4e3e;
  background: #1b1e1a;
  border-radius: 22px;
  min-height: 518px;
  overflow: hidden;
}
@media (max-width: 1100px) {
  .guide-tabs {
    max-width: 770px;
  }
  .guide-panel {
    grid-template-columns: 1.08fr .92fr;
  }
}
@media (max-width: 800px) {
  .guide-section {
    padding: 60px 0;
  }
  .guide-stack {
    margin-inline: 0;
  }
  .guide-panel {
    grid-template-columns: 1fr 1fr;
  }
  .guide-tabs {
    gap: 8px;
  }
  .guide-tabs button {
    padding: 12px 9px;
    gap: 7px;
  }
  .guide-tabs button > span {
    width: 22px;
    height: 22px;
  }
  .guide-intro h2 {
    font-size: 39px;
  }
  .guide-intro > p {
    font-size: 14px;
  }
}
@media (max-width: 600px) {
  .guide-section {
    padding: 52px 0 48px;
  }
  .guide-intro {
    margin-bottom: 24px;
    text-align: left;
  }
  .guide-intro h2 {
    font-size: 32px;
    letter-spacing: -1.5px;
  }
  .guide-intro > p {
    font-size: 14px;
    margin-top: 17px;
  }
  .guide-tabs {
    gap: 6px;
    margin-bottom: 22px;
  }
  .guide-tabs button {
    flex-direction: column;
    line-height: 1.5;
    gap: 7px;
    padding: 11px 7px;
    min-height: 81px;
    justify-content: flex-start;
    font-size: 14px;
  }
  .guide-tabs button > span {
    width: 23px;
    height: 23px;
    font-size: 10px;
  }
  .guide-stack {
    padding-top: 12px;
  }
  .guide-stack::before {
    left: 16px;
    right: 16px;
    top: 0;
    bottom: 25px;
    border-radius: 18px;
  }
  .guide-stack::after {
    left: 7px;
    right: 7px;
    top: 6px;
    border-radius: 18px;
  }
  .guide-panel {
    display: flex;
    flex-direction: column;
    border-radius: 17px;
  }
}
@media (max-width: 360px) {
  .guide-tabs button {
    padding-inline: 4px;
    font-size: 13px;
  }
}

/* Описание шага */
.guide-copy {
  padding: 39px 43px 32px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.guide-step-label {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 19px;
}
.guide-copy h3 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -1.2px;
  line-height: 1.2;
  margin: 0 0 16px;
}
.guide-copy > p {
  color: #b9beb0;
  font-size: 16px;
  line-height: 1.75;
  min-height: 84px;
  margin-bottom: 22px;
}
.guide-points {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}
.guide-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid #353c2e;
  border-radius: 10px;
  background: #22271f;
  color: #b0b8a4;
  transition: background .2s, color .2s, border-color .2s;
  font-size: 14px;
  line-height: 1.5;
}
.guide-point > span:first-child {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1px solid #535c45;
  display: grid;
  place-items: center;
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 1px;
}
.guide-point > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.guide-point strong {
  display: block;
  font-weight: 600;
  font-size: 16px;
}
.guide-point small {
  display: none;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 400;
  margin-top: 6px;
  color: #c1c6b6;
}
.guide-point svg {
  width: 17px;
  height: 17px;
  margin-top: 4px;
  color: #a4ad93;
  transition: transform .2s;
}
.guide-point[aria-pressed=true] {
  background: #323124;
  border-color: #88754a;
  color: #f5daa1;
}
.guide-point[aria-pressed=true] > span:first-child {
  background: var(--gold);
  color: #2d2513;
  border-color: var(--gold);
}
.guide-point[aria-pressed=true] small {
  display: block;
  min-height: 41px;
}
.guide-point[aria-pressed=true] svg {
  color: var(--gold);
  transform: rotate(90deg);
}
.guide-point:hover {
  border-color: #b39b62;
}
.guide-points .guide-point {
  position: relative;
  padding-bottom: 22px;
}
.guide-point .guide-progress {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 3px;
  border-radius: 3px;
  background: #52583e;
  overflow: hidden;
  pointer-events: none;
}
.guide-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
}
.guide-point[aria-pressed=true] .guide-progress {
  background: #78633d;
}
@media (max-width: 1100px) {
  .guide-copy {
    padding: 32px 30px 28px;
  }
  .guide-copy h3 {
    font-size: 29px;
  }
  .guide-copy > p {
    font-size: 15px;
  }
}
@media (max-width: 800px) {
  .guide-copy {
    padding: 28px 24px;
  }
  .guide-copy h3 {
    font-size: 25px;
  }
  .guide-copy > p {
    font-size: 14px;
  }
  .guide-point {
    padding: 11px 10px;
    gap: 9px;
  }
}
@media (max-width: 600px) {
  .guide-point[aria-pressed=true] small {
    min-height: 62px;
  }
  .guide-copy {
    padding: 25px 21px 22px;
  }
  .guide-step-label {
    margin-bottom: 14px;
  }
  .guide-copy h3 {
    font-size: 27px;
    margin-bottom: 14px;
  }
  .guide-copy > p {
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 20px;
    min-height: 105px;
  }
  .guide-points {
    gap: 8px;
    margin-bottom: 22px;
  }
  .guide-point {
    padding: 12px;
    gap: 10px;
  }
  .guide-point small {
    line-height: 1.7;
  }
  .guide-point strong {
    font-size: 15px;
  }
}
@media (max-width: 360px) {
  .guide-point[aria-pressed=true] small {
    min-height: 82px;
  }
  .guide-copy {
    padding: 23px 17px;
  }
  .guide-copy h3 {
    font-size: 24px;
  }
  .guide-copy > p {
    font-size: 14px;
    min-height: 123px;
  }
  .guide-point {
    padding: 10px;
  }
  .guide-point strong {
    font-size: 14px;
  }
}

/* Управление */
.guide-controls {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.guide-controls > span {
  font-size: 12px;
  letter-spacing: 2px;
  color: #a1ac91;
}
.guide-controls > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.guide-arrow {
  border: 1px solid #525b44;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  background: transparent;
  color: #bec6b2;
  display: grid;
  place-items: center;
}
.guide-arrow svg {
  transform: rotate(180deg);
  width: 18px;
  height: 18px;
}
.guide-arrow-next svg {
  transform: none;
}
.guide-toggle {
  border: 1px solid #88754a;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  background: #eac0690c;
  color: var(--gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.guide-toggle svg {
  width: 18px;
  height: 18px;
}
.guide-toggle:hover {
  background: #eac06920;
  border-color: var(--gold);
}
.guide-arrow:disabled {
  opacity: .35;
  cursor: default;
}
.guide-arrow:not(:disabled):hover {
  color: var(--gold);
  border-color: var(--gold);
}
@media (max-width: 800px) {
  .guide-controls > span {
    letter-spacing: 1px;
  }
  .guide-controls > div {
    gap: 7px;
  }
}
@media (max-width: 600px) {
}
@media (max-width: 360px) {
  .guide-controls > div {
    gap: 7px;
  }
}

/* Телефон */
.guide-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 27px 24px;
  background: radial-gradient(ellipse at 50% 80%, #eac06913, transparent 65%), #171a17;
  border-left: 1px solid #3e4335;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
}
.guide-visual-ring {
  position: absolute;
  width: 370px;
  height: 370px;
  border: 1px solid #eac0691c;
  border-radius: 50%;
  z-index: -1;
}
.guide-visual-ring::after {
  content: '';
  position: absolute;
  inset: 34px;
  border: 1px solid #eac0690d;
  border-radius: 50%;
}
.guide-phone {
  position: relative;
  width: 258px;
  height: 470px;
  border: 5px solid #41463b;
  border-radius: 35px;
  background: #101210;
  padding: 43px 18px 25px;
  box-shadow: 0 24px 45px #0005;
  color: #f0f3e9;
}
.guide-phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 19px;
}
.guide-phone > .button {
  width: 100%;
  min-height: 44px;
  font-size: 14px;
  padding: 10px 12px;
  gap: 10px;
}
.guide-phone > .button svg {
  width: 17px;
  height: 17px;
}
@media (max-width: 800px) {
  .guide-visual {
    padding: 24px 15px;
  }
}
@media (max-width: 600px) {
  .guide-visual {
    border-left: 0;
    border-top: 1px solid #3e4335;
    padding: 28px 20px 30px;
    overflow: hidden;
  }
  .guide-phone {
    width: 256px;
    height: 470px;
  }
}
@media (max-width: 360px) {
  .guide-visual {
    padding-inline: 5px;
  }
  .guide-phone {
    width: 240px;
    padding-inline: 14px;
  }
}

/* Экраны телефона */
.guide-screen {
  height: 292px;
  text-align: center;
  display: grid;
  position: relative;
  isolation: isolate;
}
.guide-screen-content {
  grid-area: 1/1;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}
.guide-screen-content.is-centered {
  justify-content: center;
}
.guide-screen-outgoing {
  z-index: 0;
  pointer-events: none;
}
.guide-screen h4 {
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -.3px;
  margin: 0 0 8px;
  font-weight: 600;
}
.guide-screen p {
  font-size: 11px;
  line-height: 1.65;
  color: #b1b9a6;
  margin: 0;
}
.guide-screen strong {
  font-weight: 600;
}
.guide-screen .screen-icon {
  width: 42px;
  height: 42px;
  color: var(--gold);
  margin: 5px auto 9px;
  display: block;
}
.guide-amount-box {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border: 1px solid #61654f;
  border-radius: 10px;
  padding: 14px 15px;
  margin: 23px 0 14px;
  font-size: 26px;
  line-height: 1.3;
}
.guide-amount-box > span {
  font-size: 12px;
  color: var(--gold);
}
.guide-screen .screen-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #22271e;
  border-radius: 8px;
  padding: 12px;
  font-size: 10px;
  margin: 8px 0;
  color: #b8c2aa;
  text-align: left;
}
.screen-field strong {
  color: #eef0e6;
  font-size: 11px;
}
.guide-screen .demo-qr {
  width: 105px;
  height: 105px;
  padding: 10px;
  margin: 13px auto 10px;
  border-radius: 10px;
}
.guide-screen .demo-qr .qr-corner {
  inset: 7px;
}
.guide-screen .address-example {
  border: 1px dashed #596044;
  border-radius: 7px;
  padding: 10px;
  font-size: 10px;
  color: #d0d7c4;
  text-align: center;
  margin-top: 12px;
  overflow-wrap: anywhere;
  font-family: monospace;
  line-height: 1.7;
}
.guide-screen .screen-success {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  flex: 0 0 60px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: #283a27;
  border: 1px solid #57774c;
  border-radius: 50%;
  margin: 12px auto;
  color: #a4d390;
}
.screen-success svg {
  width: 28px;
  height: 28px;
}
.guide-screen .screen-balance {
  font-size: 29px;
  display: block;
  letter-spacing: -1px;
  margin: 14px 0 10px;
  line-height: 1.3;
  color: var(--gold);
}
.guide-screen .screen-balance small {
  font-size: 12px;
  letter-spacing: 0;
  color: #aebaa0;
}
.guide-screen .screen-amount {
  font-size: 33px;
  line-height: 1.4;
  display: block;
  margin: 10px 0;
  color: #f0f3e9;
  letter-spacing: -1px;
}
.guide-screen .is-payment-complete > .screen-success {
  margin: 4px auto 10px;
}
.guide-screen .is-payment-complete > .screen-field {
  margin: 4px 0 0;
  padding: 10px 12px;
  flex-shrink: 0;
}
.guide-screen .screen-debit {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-screen .screen-debit p {
  font-size: 11px;
  line-height: 1.6;
  color: #b1b9a6;
}
.guide-screen .screen-debit strong {
  color: #f1e7cb;
}
.guide-screen .screen-confirm {
  display: grid;
  gap: 10px;
  background: #22271e;
  border-radius: 10px;
  padding: 14px;
  margin: 18px 0;
  text-align: left;
}
.screen-confirm > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: #b4bca9;
}
.screen-confirm strong {
  color: #f1e7cb;
  font-size: 11px;
}
.screen-confirm > div:last-child {
  border-top: 1px solid #4b513d;
  padding-top: 12px;
  align-items: center;
}
.screen-confirm > div:last-child strong {
  color: var(--gold);
  font-size: 16px;
  white-space: nowrap;
}
.screen-confirm > div:last-child > span {
  min-width: 0;
  max-width: 80px;
}
