@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.preloader-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 30px;
    animation: pulse 1.5s infinite ease-in-out;
}

.preloader-progress {
    width: 200px;
    height: 5px;
    background: #eaeaea;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.preloader-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: var(--color-psb-orange);
    border-radius: 3px;
    animation: loading 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes loading {
    0% { left: -30%; }
    100% { left: 100%; }
}

.preloader-hidden {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

:root {
    --color-psb-blue: #3e3e59;
    --color-psb-orange: #42ab44;
    --color-psb-blue-dark: #245f34;
    --color-psb-orange-dark: #248341;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: #fff;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-inner {
    max-width: 896px;
    margin: 0 auto;
    padding: 0 16px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-psb-blue);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.7;
    text-align: right;
    line-height: 1.3;
}

@media (max-width: 400px) {
    .header-badge {
        font-size: 10px;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-shapes {
    display: flex;
    align-items: center;
    height: 24px;
    overflow: hidden;
}

.logo-shape-blue {
    width: 16px;
    height: 100%;
    background: var(--color-psb-blue);
    transform: skewX(-20deg);
}

.logo-shape-orange {
    width: 20px;
    height: 100%;
    background: var(--color-psb-orange);
    transform: skewX(-20deg);
    margin-left: -6px;
    position: relative;
    z-index: 1;
    box-shadow: -2px 0 4px rgba(0,0,0,0.15);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--color-psb-blue);
    margin-left: 4px;
}

.main {
    flex: 1;
    width: 100%;
    max-width: 896px;
    margin: 0 auto;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card {
    width: 100%;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
    padding: 24px;
    overflow: hidden;
}

.footer {
    margin-top: auto;
    padding: 24px 16px;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
}

.footer p + p {
    margin-top: 4px;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    background: #eff6ff6e;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-psb-orange);
    transform: rotate(3deg);
}

.welcome h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-psb-blue);
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.welcome-desc {
    color: #475569;
    font-size: 15px;
    max-width: 420px;
    margin: 0 auto;
    line-height: 1.6;
    margin-top: 12px;
}

.welcome-desc .highlight {
    font-weight: 700;
    color: var(--color-psb-orange);
}

.info-box {
    background: #ebedf09c;
    border: 1px solid #ebedf09c;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 380px;
    text-align: left;
}

.info-box svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box p {
    font-size: 14px;
    color: #334155;
	line-height: 20px;
}

.client-question {
    width: 100%;
    max-width: 380px;
}

.client-question-title {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 20px;
}

.client-buttons {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.btn-client {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-client-yes {
    background: var(--color-psb-orange);
    color: #fff;
   
}

.btn-client-yes:hover {
    background: var(--color-psb-orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(0,0,0,.17);
}

.btn-client-yes:active {
    transform: translateY(0) scale(0.98);
}

.btn-client-yes svg {
    color: rgba(255,255,255,0.9);
}

.btn-client-no {
    background: #ebedf0;
    color: #334155;
}

.btn-client-no:hover {
    background: #e0e3e9;
}

.btn-client-no svg {
    color: #94a3b8;
}

.survey-wrapper {
    max-width: 512px;
    margin: 0 auto;
    width: 100%;
}

.survey-progress {
    margin-bottom: 32px;
}

.survey-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 8px;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-psb-orange);
    border-radius: 100px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.survey-question h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-psb-blue);
    line-height: 1.4;
    margin-bottom: 24px;
}

.survey-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.star-row {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.star-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.star-btn:hover {
    transform: scale(1.05);
    border-color: #cbd5e1;
    background: #f8fafc;
}

.star-btn.active {
    border-color: var(--color-psb-orange);
    background: #f8fafc;
    transform: scale(1.05);
}

.star-btn svg.star-filled {
    fill: var(--color-psb-orange);
    stroke: var(--color-psb-orange);
}

.star-btn svg.star-empty {
    fill: none;
    stroke: #cbd5e1;
}

.star-btn span {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

.option-btn {
    width: 100%;
    text-align: left;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
}

.option-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-color: #cbd5e1;
    background: #f8fafc;
}

.option-btn.selected {
    border-color: var(--color-psb-blue);
    background: #eff6ff;
    color: var(--color-psb-blue);
}

.form-wrapper {
    max-width: 448px;
    margin: 0 auto;
    width: 100%;
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.form-icon {
    width: 64px;
    height: 64px;
    background: #dbeafe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--color-psb-blue);
}

.form-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-psb-blue);
    margin-bottom: 8px;
}

.form-header p {
    font-size: 14px;
	line-height: 20px;
    color: #475569;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 6px;
}

.form-label svg {
    color: #94a3b8;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    outline: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-psb-blue);
    background: #fff;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: var(--color-psb-blue);
    box-shadow: 0 0 0 3px rgba(0, 55, 100, 0.1);
}

.form-input::placeholder {
    color: #94a3b8;
}

.form-input-card {
    letter-spacing: 0.1em;
}

.form-error {
    display: none;
    background: #ff881b14;
    border: 1px solid #ff881b14;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    color: #d16f14;
    margin-bottom: 20px;
}

.form-error.visible {
    display: block;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    margin-top: 8px;
    background: var(--color-psb-orange);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-submit:hover:not(:disabled) {
    background: var(--color-psb-orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(0,0,0,.17);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-security {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.sms-wrapper {
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.sms-icon {
    width: 64px;
    height: 64px;
    background: #ebedf09c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--color-psb-blue);
}

.sms-wrapper h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-psb-blue);
    margin-bottom: 8px;
}

.sms-wrapper > p {
    font-size: 14px;
    color: #475569;
	line-height: 20px;
    margin-bottom: 32px;
}

.sms-cells {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.sms-cell {
    width: 100%;
    height: 60px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    outline: none;
    transition: all 0.2s ease;
    background: #fff;
    caret-color: var(--color-psb-blue);
    font-family: inherit;
}

.sms-cell:focus {
    border-color: var(--color-psb-blue);
    box-shadow: 0 0 0 3px rgba(0, 55, 100, 0.1);
}

.sms-cell.filled {
    border-color: var(--color-psb-blue);
    background: #f0f7ff;
}

.sms-cell.error {
    border-color: #ef4444;
    background: #fef2f2;
    animation: shake 0.4s ease;
}

.sms-cell:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sms-error {
    display: none;
    font-size: 14px;
    font-weight: 500;
    color: #ef4444;
    margin-bottom: 20px;
}

.sms-error.visible {
    display: block;
}

.sms-error.blocked {
    color: #dc2626;
}

.btn-sms-submit {
    width: 100%;
    padding: 16px;
    background: var(--color-psb-orange);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.btn-sms-submit:hover:not(:disabled) {
    background: var(--color-psb-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 55, 100, 0.25);
}

.btn-sms-submit:active:not(:disabled) {
    transform: translateY(0) scale(0.98);
}

.btn-sms-submit:disabled {
    opacity: 0.6!important;
    cursor: not-allowed;
}

.btn-resend {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-psb-blue);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    font-family: inherit;
    padding: 4px 0;
}

.btn-resend:hover:not(:disabled) {
    color: var(--color-psb-orange);
}

.btn-resend:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.success-wrapper {
    max-width: 448px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    padding: 16px 0;
}

.success-icon {
    width: 96px;
    height: 96px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #16a34a;
}

.success-wrapper h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-psb-blue);
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}

.success-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, #f0fdf4 100%);
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.success-card p {
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
}

.success-divider {
    height: 1px;
    background: #bbf7d0;
    margin: 16px 0;
}

.success-time {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.success-time svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-psb-blue);
}

.success-time p {
    font-size: 14px;
    color: #334155;
    font-weight: 500;
}

.success-time .accent {
    color: var(--color-psb-orange);
}

.success-support {
    background: #ebedf09c;
    border: 1px solid #ebedf09c;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.success-support p {
    font-size: 12px;
    color: #475569;
}

.success-support .phone-number {
    font-weight: 600;
    color: var(--color-psb-blue);
    white-space: nowrap;
}

.btn-restart {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-psb-blue);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    font-family: inherit;
}

.btn-restart:hover {
    color: var(--color-psb-orange);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal.visible {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeIn 0.25s ease forwards;
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    padding: 32px;
    max-width: 448px;
    width: 100%;
    animation: modalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    z-index: 10;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0;
}

.modal-close:hover {
    color: #475569;
}

.modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: #eff6ff6e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-psb-orange);
}

.modal-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-psb-blue);
}

.modal-body > p {
    color: #475569;
    line-height: 1.6;
    font-size: 15px;
}

.modal-body > p .bold {
    font-weight: 600;
    color: #1e293b;
}

.modal-info {
    background: #ebedf09c;
    border: 1px solid #ebedf09c;
    border-radius: 12px;
    padding: 16px;
    width: 100%;
}

.modal-info p {
    font-size: 14px;
    color: var(--color-psb-blue);
    font-weight: 500;
}

.modal-info a {
    color: var(--color-psb-blue);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.modal-info a:hover {
    color: var(--color-psb-orange);
}

.btn-modal-ok {
    width: 100%;
    padding: 14px;
    background: #42ab44;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-modal-ok:hover {
    background: var(--color-psb-blue-dark);
}

.spinner {
    animation: spin 0.8s linear infinite;
}

.hidden {
    display: none !important;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-16px);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.15); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-out-up {
    animation: fadeOutUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

.animate-bounce-in {
    animation: bounceIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stagger-1 { animation-delay: 0.05s; opacity: 0; }
.stagger-2 { animation-delay: 0.1s; opacity: 0; }
.stagger-3 { animation-delay: 0.15s; opacity: 0; }
.stagger-4 { animation-delay: 0.2s; opacity: 0; }
.stagger-5 { animation-delay: 0.25s; opacity: 0; }
.stagger-6 { animation-delay: 0.3s; opacity: 0; }
.stagger-7 { animation-delay: 0.35s; opacity: 0; }
.stagger-8 { animation-delay: 0.4s; opacity: 0; }


@media (max-width: 640px) {
	
	.star-row {flex-direction: column;}
	.sms-cells {gap: 7px;}
	.sms-cell {width: 43px; height: 58px;}
	
}

@media (min-width: 640px) {
    .main {
        padding: 48px 24px;
    }

    .card {
        padding: 40px 48px;
    }


    .star-btn {
        padding: 16px;
    }

    .star-row {
        gap: 16px;
    }

    .sms-cells {
        gap: 12px;
    }

    .sms-cell {
        width: 52px;
        height: 64px;
    }

    .survey-question h2 {
        font-size: 22px;
    }

    .welcome h1 {
        font-size: 30px;
    }
}

@media (min-width: 1024px) {
    .header-inner {
        padding: 0 32px;
    }

    .main {
        padding: 48px 32px;
    }
}
