/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    padding: 40px 0 30px;
    border-bottom: 2px solid #e8f4fd;
}

.language-switcher {
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.lang-link {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

.lang-link:hover {
    color: #3182ce;
}

.lang-link.active {
    color: #1a365d;
    font-weight: 600;
    background: #e8f4fd;
}

.lang-separator {
    color: #cbd5e0;
    margin: 0 10px;
    font-weight: 300;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #4a5568;
    font-weight: 400;
}

/* Main content */
.main {
    flex: 1;
    padding: 40px 0;
}

/* Form styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.form-container h2 {
    font-size: 1.8rem;
    color: #1a365d;
    margin-bottom: 15px;
    text-align: center;
}

.description {
    text-align: center;
    color: #4a5568;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0aec0;
}

.error-message-field {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 5px;
    min-height: 20px;
    display: none;
    font-weight: 500;
}

.error-message-field.show {
    display: block !important;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #3182ce;
    color: white;
}

.btn-primary:hover {
    background-color: #2c5aa0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.btn-secondary {
    background-color: #3182ce;
    color: white;
}

.btn-secondary:hover {
    background-color: #2c5aa0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

/* QR Result */
.qr-result {
    max-width: 600px;
    margin: 40px auto 0;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.qr-result h3 {
    font-size: 1.6rem;
    color: #1a365d;
    margin-bottom: 20px;
    text-align: center;
}

.qr-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.print-description {
    margin-bottom: 20px;
}

.print-description label {
    display: block;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 1rem;
}

.print-description textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s ease;
    background: #ffffff;
}

.print-description textarea:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.print-description textarea::placeholder {
    color: #a0aec0;
}

#qrCode {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Print options */
.print-options {
    margin: 30px 0;
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
}

.print-options h4 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.size-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.size-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.size-option:hover {
    background-color: #edf2f7;
}

.size-option input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
}

.size-option span {
    font-weight: 500;
    color: #4a5568;
}

/* QR Info */
.qr-info {
    margin-top: 30px;
    padding: 20px;
    background: #ebf8ff;
    border-radius: 8px;
    border-left: 4px solid #3182ce;
}

.qr-info p {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.qr-info ul {
    list-style: none;
    padding-left: 0;
}

.qr-info li {
    padding: 8px 0;
    color: #4a5568;
    position: relative;
    padding-left: 20px;
}

.qr-info li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3182ce;
    font-weight: bold;
}

/* Contact page styles */
.contact-info {
    max-width: 700px;
    margin: 0 auto;
}

.info-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.item-info {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8f4fd;
}

.item-info h2 {
    font-size: 1.8rem;
    color: #1a365d;
    margin-bottom: 10px;
}

.owner-name {
    font-size: 1.2rem;
    color: #4a5568;
    font-weight: 500;
}

.contact-methods {
    margin-bottom: 30px;
}

.contact-methods h3 {
    font-size: 1.4rem;
    color: #2d3748;
    margin-bottom: 20px;
    text-align: center;
}

.contact-method {
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: #edf2f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 2rem;
    margin-right: 20px;
    min-width: 40px;
    text-align: center;
}

.contact-details h4 {
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 5px;
}

.contact-data {
    color: #4a5568;
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-link {
    color: #3182ce;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #2c5aa0;
    text-decoration: underline;
}

.message-section {
    margin: 30px 0;
    padding: 20px;
    background: #ebf8ff;
    border-radius: 8px;
    border-left: 4px solid #3182ce;
}

.message-section h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.message-content {
    color: #4a5568;
    line-height: 1.6;
    font-style: italic;
}

.help-info {
    margin-top: 30px;
    padding: 20px;
    background: #f0fff4;
    border-radius: 8px;
    border-left: 4px solid #38a169;
}

.help-info h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.help-info ul {
    list-style: none;
    padding-left: 0;
}

.help-info li {
    padding: 8px 0;
    color: #4a5568;
    position: relative;
    padding-left: 20px;
}

.help-info li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #38a169;
    font-weight: bold;
}

.create-qr-section {
    margin-top: 20px;
    text-align: center;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.create-qr-section p {
    color: #4a5568;
    font-size: 1rem;
    margin: 0;
}

.create-link {
    color: #3182ce;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.create-link:hover {
    color: #2c5aa0;
    text-decoration: underline;
}

.error-message {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    background: #fed7d7;
    border-radius: 12px;
    border: 1px solid #feb2b2;
}

.error-message h2 {
    color: #c53030;
    margin-bottom: 15px;
}

.error-message p {
    color: #742a2a;
    margin-bottom: 20px;
}

/* Project Description */
.project-description {
    background: #f8fafc;
    padding: 60px 0;
    margin-top: 60px;
    border-top: 2px solid #e8f4fd;
}

.description-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-description h2 {
    font-size: 2rem;
    color: #1a365d;
    margin-bottom: 20px;
    text-align: center;
}

.description-intro {
    font-size: 1.2rem;
    color: #2d3748;
    text-align: center;
    margin-bottom: 25px;
}

.project-description p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.project-description h3 {
    color: #1a365d;
    font-size: 1.4rem;
    margin: 30px 0 20px 0;
}

.use-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 25px 0;
}

.use-case {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.use-case h4 {
    color: #2d3748;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.use-case p {
    color: #4a5568;
    font-size: 1rem;
    margin: 0;
}

.how-it-works {
    background: #ebf8ff;
    padding: 25px 30px;
    border-radius: 8px;
    border-left: 4px solid #3182ce;
    margin: 25px 0;
}

.how-it-works li {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.how-it-works li:last-child {
    margin-bottom: 0;
}

.advantages {
    background: #f0fff4;
    padding: 25px 30px;
    border-radius: 8px;
    border-left: 4px solid #38a169;
    margin: 25px 0;
}

.advantages li {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.advantages li:last-child {
    margin-bottom: 0;
}

.call-to-action {
    text-align: center;
    font-size: 1.2rem;
    color: #1a365d;
    margin-top: 30px;
    padding: 20px;
    background: #fff5f5;
    border-radius: 8px;
    border: 1px solid #fed7d7;
}

.bonus-section {
    margin-top: 30px;
    text-align: center;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.bonus-section p {
    color: #4a5568;
    font-size: 1rem;
    margin: 0 0 10px 0;
}

.bonus-section p:last-child {
    margin-bottom: 0;
}

.bonus-link {
    color: #3182ce;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.bonus-link:hover {
    color: #2c5aa0;
    text-decoration: underline;
}

.bonus-amount {
    color: #e53e3e;
    font-weight: bold;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: #718096;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 30px 0 20px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .form-container,
    .qr-result,
    .info-card {
        padding: 25px;
        margin: 0 auto;
    }
    
    .qr-result {
        margin-top: 30px;
    }
    
    .form-container h2,
    .qr-result h3 {
        font-size: 1.5rem;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .contact-icon {
        margin-bottom: 10px;
        font-size: 1.5rem;
    }
    
    .size-options {
        flex-direction: column;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .project-description {
        padding: 40px 0;
        margin-top: 40px;
    }

    .project-description h2 {
        font-size: 1.6rem;
    }

    .use-cases {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .how-it-works,
    .advantages {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.8rem;
    }
    
    .form-container,
    .qr-result,
    .info-card {
        padding: 20px;
    }
    
    .contact-method {
        padding: 12px;
    }
    
    .contact-icon {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .print-options,
    .btn {
        display: none !important;
    }
    
    .qr-container {
        background: white !important;
        box-shadow: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
    
    .main {
        padding: 0 !important;
    }
}

/* QR code print sizes */
@media print {
    .qr-small #qrCode {
        width: 60px !important;
        height: 60px !important;
    }
    
    .qr-medium #qrCode {
        width: 100px !important;
        height: 100px !important;
    }
    
    .qr-large #qrCode {
        width: 200px;
        height: 200px;
    }
}

.share-section {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.share-section p {
    margin-bottom: 15px;
    color: #4a5568;
    font-size: 1.1rem;
    font-weight: 500;
}

.btn-vk {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #4a76a8;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-vk:hover {
    background: #3d5a80;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 118, 168, 0.3);
}

.vk-icon {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Social Proof Section */
.social-proof-section {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    text-align: center;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recent-activity {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.recent-activity h4 {
    margin-bottom: 15px;
    color: #ffd700;
    font-size: 1.2rem;
}

.activity-feed {
    text-align: left;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-time {
    font-size: 0.8rem;
    opacity: 0.7;
    min-width: 100px;
}

.activity-text {
    flex: 1;
    margin-left: 15px;
}

@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .activity-time {
        min-width: auto;
    }
}

/* Success Stories Section */
.success-stories-section {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #28a745;
}

.success-stories-section h3 {
    color: #28a745;
    margin-bottom: 25px;
    font-size: 1.3rem;
    text-align: center;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.story-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.story-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.story-avatar {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    border: 3px solid white;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.story-text {
    flex: 1;
}

.story-text p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #495057;
}

.story-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Partnership Section */
.partnership-section {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border-radius: 12px;
    color: white;
    text-align: center;
}

.partnership-section h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.partnership-section p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.partnership-benefits {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    text-align: left;
}

.benefit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-text {
    font-weight: 500;
}

.btn-partnership {
    background: white;
    color: #ee5a24;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.btn-partnership:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .story-card {
        padding: 15px;
    }
    
    .story-content {
        flex-direction: column;
        text-align: center;
    }
    
    .story-meta {
        justify-content: center;
    }
    
    .partnership-benefits {
        gap: 10px;
    }
}

/* Loss Calculator Section */
.loss-calculator-section {
    margin-top: 30px;
    padding: 25px;
    background: #fff3cd;
    border-radius: 12px;
    border: 2px solid #ffc107;
}

.loss-calculator-section h3 {
    color: #856404;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.loss-calculator-section p {
    color: #856404;
    margin-bottom: 20px;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.calculator-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.calculator-item label {
    font-weight: 600;
    color: #495057;
}

.calculator-item select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: white;
    color: #495057;
    font-size: 0.9rem;
}

.calculator-result {
    background: #dc3545;
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 15px 0;
}

.result-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.result-amount {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.result-savings {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    opacity: 0.9;
}

.savings-amount {
    color: #28a745;
    font-weight: bold;
}

.btn-calculator {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-calculator:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

@media (max-width: 768px) {
    .calculator-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .result-savings {
        flex-direction: column;
        gap: 5px;
    }
} 