:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --dark-color: #2b2d42;
    --light-color: #f8f9fa;
    --success-color: #4cc9f0;
    --danger-color: #f72585;
    --warning-color: #f8961e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(67, 97, 238, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 6px 16px rgba(67, 97, 238, 0.3);
}

.btn-back {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.btn-back:hover {
    background-color: #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.screen {
    min-height: 100vh;
    width: 100%;
}

.welcome-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.logo i {
    font-size: 36px;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

p {
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: #6c757d;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.feature i {
    font-size: 36px;
    color: var(--primary-color);
}

.feature h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.feature p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: #6c757d;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.editor-container {
    display: flex;
    padding: 50px;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.preview-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preview-container h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #495057;
}

.preview {
    min-width: 300px;
    min-height: 400px;
    max-width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
}

.preview:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.default-content {
    text-align: center;
    color: #adb5bd;
}

.default-content i {
    font-size: 60px;
    margin-bottom: 25px;
}

.controls {
    width: 400px;
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
    align-self: flex-start;
    position: sticky;
    top: 40px;
}

.control-section {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid #e9ecef;
}

.control-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.control-section h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #343a40;
}

.contact-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.contact-option {
    padding: 16px;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-option:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
    transform: translateY(-2px);
}

.styled-select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    font-size: 16px;
    background-color: white;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    transition: all 0.3s ease;
}

.styled-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.styled-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.styled-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.styled-input.error {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 4px rgba(247, 37, 133, 0.1);
}

.upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    background: white;
    border: 2px dashed #adb5bd;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin-bottom: 15px;
    width: 100%;
    font-weight: 500;
}

.upload-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

.upload-btn input[type="file"] {
    display: none;
}

.color-picker {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-picker input {
    width: 48px;
    height: 48px;
    border: none;
    cursor: pointer;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.color-picker input:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-btn-wrapper {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.contact-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: move;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.contact-btn.dragging {
    opacity: 0.7;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.contact-controls {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.contact-btn-wrapper:hover .contact-controls {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.contact-edit, .contact-delete {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.contact-edit:hover {
    background: var(--accent-color);
    color: white;
}

.contact-delete:hover {
    background: var(--danger-color);
    color: white;
}

.phone { background-color: #4CAF50; color: white; }
.whatsapp { background-color: #25D366; color: white; }
.telegram { background-color: #0088CC; color: white; }
.website { background-color: #FF5722; color: white; }
.email { background-color: #9C27B0; color: white; }
.vk { background-color: #4C75A3; color: white; }
.rutube { background-color: #000000; color: white; }

.qr-container {
    position: fixed;
    bottom: 40px;
    left: 40px;
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 1000;
}

.qr-container img {
    width: 180px;
    height: 180px;
    border: 1px solid #eee;
    border-radius: 12px;
}

.qr-download {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qr-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(67, 97, 238, 0.3);
}

.qr-download i {
    font-size: 16px;
}

.text-wrapper {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.text-element {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    font-weight: 600;
    cursor: move;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    max-width: 90%;
    text-align: center;
}

.text-element:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.text-element.dragging {
    opacity: 0.7;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.text-controls {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.text-wrapper:hover .text-controls {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.text-edit, .text-delete {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.text-edit:hover {
    background: var(--accent-color);
    color: white;
}

.text-delete:hover {
    background: var(--danger-color);
    color: white;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

@keyframes floatIn {
    from { transform: translateY(100px) scale(0.8); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes rotateIn {
    from { transform: rotate(-180deg) scale(0); opacity: 0; }
    to { transform: rotate(0) scale(1); opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 10px rgba(67, 97, 238, 0); }
    50% { box-shadow: 0 0 20px rgba(67, 97, 238, 0.6); }
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

.fade-animation {
    animation: fadeIn 1.2s ease both;
    will-change: opacity;
}

.slide-animation {
    animation: slideIn 0.9s ease both;
    will-change: transform, opacity;
}

.pulse-animation {
    animation: pulse 2s infinite both;
    will-change: transform;
}

.shake-animation {
    animation: shake 0.6s ease both;
    will-change: transform;
}

.float-in-animation {
    animation: floatIn 1s ease-out both;
    will-change: transform, opacity;
}

.zoom-in-animation {
    animation: zoomIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    will-change: transform, opacity;
}

.rotate-in-animation {
    animation: rotateIn 1s ease-out both;
    will-change: transform, opacity;
}

.bounce-animation {
    animation: bounce 2s ease-in-out infinite;
    will-change: transform;
}

.float-animation {
    animation: float 3s ease-in-out infinite;
    will-change: transform;
}

.glow-animation {
    animation: glow 2s ease-in-out infinite;
    will-change: box-shadow;
}

.wave-animation {
    animation: wave 3s ease-in-out infinite;
    transform-origin: center bottom;
    will-change: transform;
}

.combo-animation {
    animation:
        floatIn 1s ease-out both,
        float 3s ease-in-out 1s infinite;
    will-change: transform, opacity;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    padding: 35px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-content h2 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: #343a40;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
}

.alert-content {
    text-align: center;
}

.alert-content h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.alert-success {
    color: var(--success-color);
}

.alert-error {
    color: var(--danger-color);
}

.alert-info {
    color: var(--primary-color);
}

.alert-success a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.alert-success a:hover {
    text-decoration: underline;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.btn-close:hover {
    color: var(--danger-color);
}

.qr-container {
    position: fixed;
    bottom: 40px;
    left: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    max-width: 320px;
}

.qr-container.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.qr-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qr-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.qr-content {
    padding: 25px;
    text-align: center;
}

#qr-code {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

#qr-code canvas {
    border: 15px solid white;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.qr-actions {
    display: flex;
    justify-content: center;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .qr-container {
        left: 20px;
        right: 20px;
        bottom: 20px;
        max-width: none;
    }
    
    .qr-header h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .qr-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    
    #qr-code canvas {
        border-width: 10px;
    }
}

.avatar-wrapper, .personal-info-wrapper {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10;
    cursor: move;
}

.avatar-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.avatar-img:hover {
    transform: scale(1.05);
}

.personal-info {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 220px;
}

.full-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.company {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
}

.avatar-controls, .personal-controls {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.avatar-wrapper:hover .avatar-controls,
.personal-info-wrapper:hover .personal-controls {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.avatar-delete, .personal-edit, .personal-delete {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.avatar-delete:hover, .personal-delete:hover {
    background: var(--danger-color);
    color: white;
}

.personal-edit:hover {
    background: var(--accent-color);
    color: white;
}

.redirect-container {
    text-align: center;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    max-width: 550px;
    margin: 120px auto;
}

.redirect-container h1 {
    color: #4361ee;
    margin-bottom: 25px;
    font-size: 2rem;
}

.redirect-container p {
    color: #6c757d;
    margin-bottom: 25px;
    line-height: 1.6;
}

.redirect-link {
    display: inline-block;
    background: linear-gradient(135deg, #4361ee, #3f37c9);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.redirect-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(67, 97, 238, 0.3);
}

.btn {
    margin: 5px;
}

/* Мобильная адаптация для редактора */
@media (max-width: 768px) {
    .editor-container {
        flex-direction: column;
        padding: 20px;
        gap: 30px;
    }
    
    .preview-container {
        order: 2;
    }
    
    .controls {
        width: 100%;
        position: static;
        order: 1;
        padding: 25px;
    }
    
    .preview {
        width: 100% !important;
        height: 50vh !important;
        min-height: 400px;
        max-width: 100%;
    }
    
    header {
        padding: 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .logo {
        font-size: 20px;
        order: 2;
        flex: 1;
        text-align: center;
    }
    
    .btn-back {
        order: 1;
    }
    
    .btn-primary {
        order: 3;
    }
    
    .contact-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .contact-option {
        padding: 12px;
        font-size: 14px;
    }
    
    .control-section {
        margin-bottom: 25px;
        padding-bottom: 25px;
    }
}

/* Особые стили для очень маленьких экранов */
@media (max-width: 320px) {
    .contact-buttons {
        grid-template-columns: 1fr;
    }
    
    .preview {
        min-height: 350px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* Предотвращение масштабирования на iOS */
@supports (-webkit-touch-callout: none) {
    .card-container {
        -webkit-overflow-scrolling: touch;
    }
    
    .card {
        -webkit-user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Улучшение отзывчивости для мобильных устройств */
.contact-btn {
    touch-action: manipulation;
}

/* Предотвращение выделения текста при касании */
.avatar-wrapper, 
.personal-info-wrapper, 
.contact-btn-wrapper {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Оптимизация для медленных соединений */
.avatar-img {
    loading: lazy;
}

/* Улучшение читаемости на маленьких экранах */
@media (max-width: 360px) {
    .personal-info {
        padding: 12px;
        max-width: 85%;
    }
    
    .full-name {
        font-size: 1rem;
    }
    
    .company {
        font-size: 0.85rem;
    }
    
    .contact-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .contact-btn i {
        font-size: 15px;
    }
}

/* Оптимизация для ПК и больших экранов */
@media (min-width: 1025px) {
    .editor-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 60px;
        gap: 70px;
    }
    
    .preview-container {
        flex: 1;
        min-width: 500px;
    }
    
    .preview {
        min-width: 400px;
        min-height: 650px;
        max-width: 500px;
        margin: 0 auto;
        transition: all 0.3s ease;
    }
    
    .controls {
        width: 450px;
        padding: 40px;
        position: sticky;
        top: 100px;
        max-height: 80vh;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) #f1f1f1;
    }
    
    .controls::-webkit-scrollbar {
        width: 6px;
    }
    
    .controls::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }
    
    .controls::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 3px;
    }
    
    .controls::-webkit-scrollbar-thumb:hover {
        background: var(--secondary-color);
    }
    
    .control-section {
        margin-bottom: 40px;
        padding-bottom: 40px;
    }
    
    .control-section h3 {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }
    
    .contact-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .contact-option {
        padding: 18px;
        font-size: 15px;
        transition: all 0.3s ease;
    }
    
    .contact-option:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    .btn {
        padding: 16px 32px;
        font-size: 17px;
    }
    
    .logo {
        font-size: 32px;
    }
    
    .logo i {
        font-size: 40px;
    }
    
    header {
        padding: 25px 50px;
    }
    
    /* Анимации для ПК */
    .preview:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    }
    
    .feature:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    }
}

/* Стили для очень больших экранов (4K и выше) */
@media (min-width: 1921px) {
    .editor-container {
        max-width: 1600px;
        gap: 80px;
    }
    
    .preview {
        min-width: 500px;
        min-height: 800px;
        max-width: 600px;
    }
    
    .controls {
        width: 500px;
        padding: 45px;
    }
    
    .control-section h3 {
        font-size: 1.5rem;
    }
    
    .contact-option {
        padding: 20px;
        font-size: 16px;
    }
    
    .btn {
        padding: 18px 36px;
        font-size: 18px;
    }
}

/* Плавные переходы для всех интерактивных элементов */
.preview,
.contact-btn,
.contact-option,
.btn,
.feature,
.modal-content {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Улучшенные тени для глубины */
.preview {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.controls {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.modal-content {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* Улучшенный ховер-эффект для кнопок */
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.35);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Анимация появления элементов */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.preview-container {
    animation: slideInFromLeft 0.8s ease-out;
}

.controls {
    animation: slideInFromRight 0.8s ease-out;
}

/* Улучшенный фокус для инпутов */
.styled-input:focus,
.styled-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
    transform: translateY(-1px);
}

/* Градиентные кнопки для ПК */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-size: 200% 200%;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-position: 100% 100%;
    transform: translateY(-3px);
}

/* Улучшенные карточки фич */
.feature {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(67, 97, 238, 0.1);
}

/* Анимация загрузки для превью */
.preview.loading {
    position: relative;
    overflow: hidden;
}

.preview.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Кастомный скроллбар для всего сайта */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Улучшенный внешний вид цветового пикера */
input[type="color"] {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="color"]:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

input[type="color"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

/* Адаптивные изображения */
.avatar-img {
    transition: all 0.3s ease;
}

/* Улучшенные модальные окна для ПК */
.modal-content {
    max-width: 500px;
}

@media (min-width: 768px) {
    .modal-content {
        max-width: 600px;
    }
}


@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Добавьте эти стили в конец файла style.css */

/* Стили для QR-кода с рамкой */
#qr-code {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#qr-code canvas {
    border: none !important; /* Убираем старую рамку */
    border-radius: 8px;
}

.qr-content p {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

/* Улучшенный дизайн кнопки скачивания */
.qr-download {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

.qr-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
}

.qr-download:active {
    transform: translateY(0);
}