:root {
            --primary-color: #007DFF;
            --primary-dark: #005BB5;
            --success-color: #28a745;
            --error-color: #dc3545;
            --warning-color: #ffc107;
            --background-color: #f8fafc;
            --card-background: #ffffff;
            --text-primary: #1a202c;
            --text-secondary: #4a5568;
            --border-color: #e2e8f0;
            --border-radius: 12px;
            --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }

        * {
            box-sizing: border-box;
        }

        body {
            font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            margin: 0;
            padding: 0;
            background: linear-gradient(135deg, #f8fafc 0%, #e6f3ff 100%);
            color: var(--text-primary);
            line-height: 1.6;
            min-height: 100vh;
        }

        /* Loading spinner */
        .loading-spinner {
            display: none;
            width: 24px;
            height: 24px;
            border: 3px solid #f3f3f3;
            border-top: 3px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Main container */
        .order-form {
            max-width: 800px;
            margin: 20px auto;
            padding: 32px;
            background: var(--card-background);
            border-radius: var(--border-radius);
            box-shadow: var(--shadow-lg);
            position: relative;
            overflow: hidden;
        }

        .order-form::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
        }

        .order-form h1 {
            text-align: center;
            color: var(--text-primary);
            margin-bottom: 32px;
            font-size: 2.25rem;
            font-weight: 700;
            background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* Service selection */
        .service-section {
            margin-bottom: 32px;
            padding: 24px;
            background: linear-gradient(135deg, #f8fafc, #ffffff);
            border-radius: var(--border-radius);
            border: 2px solid var(--border-color);
            transition: var(--transition);
        }

        .service-section:hover {
            border-color: var(--primary-color);
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .service-section h3 {
            margin: 0 0 20px 0;
            color: var(--primary-color);
            font-size: 1.25rem;
            font-weight: 600;
        }

        .service-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
            padding: 16px;
            background: var(--card-background);
            border-radius: 8px;
            border: 1px solid var(--border-color);
            transition: var(--transition);
            flex-wrap: wrap;
            gap: 12px;
        }

        .service-row:hover {
            border-color: var(--primary-color);
            box-shadow: var(--shadow-sm);
        }

        .service-row.selected {
            border-color: var(--primary-color);
            background: linear-gradient(135deg, #f0f9ff, #ffffff);
        }

        .service-info {
            flex: 1;
            min-width: 200px;
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .service-checkbox {
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 500;
        }

        .service-checkbox input[type="checkbox"] {
            width: 20px;
            height: 20px;
            accent-color: var(--primary-color);
            cursor: pointer;
            flex-shrink: 0;
        }

        .service-details {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .service-name {
            font-weight: 500;
            color: var(--text-primary);
        }

        .service-price {
            font-weight: 700;
            color: var(--primary-color);
            font-size: 16px;
        }

        /* Window icons */
        .window-icon {
            width: 50px;
            height: 50px;
            flex-shrink: 0;
        }

        .window-icon svg {
            width: 100%;
            height: 100%;
            stroke: #333;
            fill: none;
            stroke-width: 2;
        }

        /* Quantity controls */
        .quantity-controls {
            display: flex;
            align-items: center;
            gap: 0;
            border-radius: 8px;
            overflow: hidden;
            border: 2px solid var(--primary-color);
            background: var(--card-background);
        }

        .quantity-btn {
            width: 40px;
            height: 40px;
            background: var(--primary-color);
            color: white;
            border: none;
            font-size: 20px;
            font-weight: bold;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            user-select: none;
        }

        .quantity-btn:hover {
            background: var(--primary-dark);
        }

        .quantity-btn:active {
            transform: scale(0.95);
        }

        .quantity-btn:disabled {
            background: #cbd5e0;
            cursor: not-allowed;
        }

        .quantity-input {
            width: 60px;
            height: 40px;
            border: none;
            text-align: center;
            font-size: 16px;
            font-weight: 600;
            background: var(--card-background);
            outline: none;
        }

        /* Special options for balcony */
        .balcony-options {
            margin-top: 8px;
            padding-right: 36px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            color: var(--text-secondary);
        }

        .balcony-options input[type="checkbox"] {
            width: 16px;
            height: 16px;
            accent-color: var(--primary-color);
        }

.balcony-options {
    margin-top: 8px;
    margin-right: 56px; /* подгон под твой макет */
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.balcony-options label {
    font-size: 14px;
    line-height: 1.3;
    cursor: pointer;
}

.balcony-note {
    font-size: 12px;
    color: #718096;
}

        /* Special services */
        .special-service {
            margin: 24px 0;
            padding: 20px;
            background: linear-gradient(135deg, #fff7ed, #ffffff);
            border: 2px solid #fed7aa;
            border-radius: var(--border-radius);
            transition: var(--transition);
        }

        .special-service:hover {
            border-color: var(--warning-color);
            transform: translateY(-1px);
        }

        .special-service label {
            display: flex;
            align-items: center;
            gap: 16px;
            font-weight: 600;
            font-size: 16px;
            cursor: pointer;
            color: var(--text-primary);
        }

        .special-service input[type="checkbox"] {
            width: 22px;
            height: 22px;
            accent-color: var(--warning-color);
        }

        /* Minimum order notice */
        .minimum-order {
            background: linear-gradient(135deg, #f0f9ff, #ffffff);
            border: 2px solid var(--primary-color);
            border-radius: var(--border-radius);
            padding: 16px;
            margin: 24px 0;
            text-align: center;
            font-weight: 600;
            color: var(--primary-color);
        }

        /* Order summary */
        .order-summary {
            background: linear-gradient(135deg, #f8fafc, #ffffff);
            border: 2px solid var(--border-color);
            border-radius: var(--border-radius);
            padding: 24px;
            margin: 24px 0;
            transition: var(--transition);
        }

        .order-summary:hover {
            border-color: var(--primary-color);
            box-shadow: var(--shadow-sm);
        }

        .summary-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            padding: 8px 0;
            font-size: 16px;
        }

        .summary-row:last-child {
            margin-bottom: 0;
            padding-top: 16px;
            border-top: 2px solid var(--border-color);
            font-weight: 700;
            font-size: 18px;
            color: var(--primary-color);
        }

        .summary-value {
            font-weight: 600;
            color: var(--text-primary);
        }

        /* Promo code section */
        .promo-section {
            display: flex;
            gap: 12px;
            margin: 20px 0;
            flex-wrap: wrap;
        }

        .promo-input {
            flex: 1;
            min-width: 200px;
            padding: 12px 16px;
            border: 2px solid var(--border-color);
            border-radius: 8px;
            font-size: 16px;
            transition: var(--transition);
        }

        .promo-input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(0, 125, 255, 0.1);
        }

        .promo-btn {
            padding: 12px 24px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            white-space: nowrap;
        }

        .promo-btn:hover {
            background: var(--primary-dark);
        }

        .promo-btn:disabled {
            background: var(--success-color);
            cursor: not-allowed;
        }

        /* Form fields */
        .form-section {
            margin: 32px 0;
        }

        .form-section h3 {
            margin: 0 0 20px 0;
            color: var(--primary-color);
            font-size: 1.25rem;
            font-weight: 600;
        }

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

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

        .form-field.full-width {
            grid-column: 1 / -1;
        }

        .form-label {
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--text-primary);
            font-size: 14px;
        }

        .form-input {
            padding: 12px 16px;
            border: 2px solid var(--border-color);
            border-radius: 8px;
            font-size: 16px;
            transition: var(--transition);
            background: var(--card-background);
        }

        .form-input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(0, 125, 255, 0.1);
        }

        .form-input.error {
            border-color: var(--error-color);
        }

        .form-input.success {
            border-color: var(--success-color);
        }

        .error-message {
            margin-top: 4px;
            color: var(--error-color);
            font-size: 14px;
            font-weight: 500;
        }

        .success-message {
            margin-top: 4px;
            color: var(--success-color);
            font-size: 14px;
            font-weight: 500;
        }

        /* Submit button */
        .submit-btn {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
            color: white;
            border: none;
            border-radius: var(--border-radius);
            font-size: 18px;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition);
            margin: 32px 0 20px 0;
            position: relative;
            overflow: hidden;
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .submit-btn:active {
            transform: translateY(0);
        }

        .submit-btn:disabled {
            background: #cbd5e0;
            cursor: not-allowed;
            transform: none;
        }

        .submit-btn .loading-spinner {
            display: none;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        .submit-btn.loading .loading-spinner {
            display: block;
        }

        .submit-btn.loading .btn-text {
            opacity: 0;
        }

        /* Messages */
        .message {
            padding: 16px;
            border-radius: 8px;
            margin: 20px 0;
            font-weight: 600;
            text-align: center;
        }

        .message.success {
            background: #d1fae5;
            color: #065f46;
            border: 2px solid #10b981;
        }

        .message.error {
            background: #fee2e2;
            color: #991b1b;
            border: 2px solid #ef4444;
        }

        .message.warning {
            background: #fef3c7;
            color: #92400e;
            border: 2px solid #f59e0b;
        }

      /* Mobile responsiveness - ИСПРАВЛЕНО */
    @media (max-width: 768px) {
        .order-form {
            margin: 10px;
            padding: 20px;
        }

        .order-form h1 {
            font-size: 1.75rem;
        }

        /* Основное исправление для мобильных устройств */
        .service-row {
            display: flex;
            flex-direction: row;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: nowrap;
            position: relative;
        }

        .service-info {
            flex: 1 1 auto;
            min-width: 0;
            display: flex;
            align-items: flex-start;
            gap: 8px;
        }

        .service-checkbox {
            display: flex;
            align-items: flex-start;
            gap: 8px;
        }

        .service-checkbox input[type="checkbox"] {
            margin-top: 4px;
        }

        .window-icon {
            width: 40px;
            height: 40px;
            flex-shrink: 0;
        }

        .service-details {
            flex: 1;
        }

        .service-name {
            font-size: 14px;
        }

        .service-price {
            font-size: 14px;
        }

        .quantity-controls {
            flex-shrink: 0;
            width: auto;
            align-self: center;
        }

        .quantity-btn {
            width: 36px;
            height: 36px;
            font-size: 18px;
        }

        .quantity-input {
            width: 50px;
            height: 36px;
            font-size: 14px;
        }

        /* Специальная обработка для зкоכיות במרפסת */
        .service-row[data-service="balcony-sections"] {
            flex-wrap: wrap;
        }

        .service-row[data-service="balcony-sections"] .service-info {
            flex: 1 1 0;
            min-width: 0;
        }

        .service-row[data-service="balcony-sections"] .quantity-controls {
            flex: 0 0 auto;
            align-self: center;
            margin-top: 0;
        }

        .service-row[data-service="balcony-sections"] .service-name {
            overflow-wrap: anywhere;
        }

        .service-row[data-service="balcony-sections"] .balcony-options {
            width: 100%;
            margin-top: 8px;
            margin-right: 28px;
            padding-right: 0;
            font-size: 13px;
        }

        .promo-section {
            flex-direction: column;
        }

        .form-grid {
            grid-template-columns: 1fr;
        }
    }

        @media (max-width: 480px) {
            .order-form {
                margin: 5px;
                padding: 16px;
            }

            .service-section,
            .order-summary {
                padding: 16px;
            }

            .window-icon {
                width: 35px;
                height: 35px;
            }

            .quantity-btn {
                width: 32px;
                height: 32px;
                font-size: 16px;
            }

            .quantity-input {
                width: 45px;
                height: 32px;
                font-size: 14px;
            }

            .service-name {
                font-size: 13px;
            }

            .service-price {
                font-size: 13px;
            }
        }

        /* Window photos instead of pictograms */
        .window-icon.window-photo-trigger {
            width: 76px;
            height: 58px;
            flex-shrink: 0;
            position: relative;
            overflow: visible;
            cursor: zoom-in;
            border-radius: 12px;
        }

        .window-thumb {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
            border-radius: 12px;
            border: 2px solid #dbeafe;
            background: #ffffff;
            box-shadow: 0 4px 12px rgba(0, 125, 255, 0.16);
            transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
        }

        .window-photo-trigger:hover .window-thumb,
        .window-photo-trigger:focus .window-thumb {
            transform: translateY(-1px);
            border-color: var(--primary-color);
            box-shadow: 0 8px 20px rgba(0, 125, 255, 0.24);
        }

        .window-photo-preview {
            display: none;
            position: absolute;
            top: 50%;
            right: calc(100% + 14px);
            width: 280px;
            max-width: 42vw;
            max-height: 280px;
            object-fit: cover;
            border-radius: 16px;
            border: 4px solid #ffffff;
            background: #ffffff;
            box-shadow: 0 18px 45px rgba(15, 23, 42, 0.28);
            transform: translateY(-50%);
            z-index: 2000;
            pointer-events: none;
        }

        @media (hover: hover) and (pointer: fine) {
            .window-photo-trigger:hover .window-photo-preview,
            .window-photo-trigger:focus .window-photo-preview {
                display: block;
            }
        }

        .window-photo-modal {
            position: fixed;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 18px;
            background: rgba(15, 23, 42, 0.72);
            z-index: 99999;
        }

        .window-photo-modal.is-open {
            display: flex;
        }

        .window-photo-modal img {
            max-width: 94vw;
            max-height: 78vh;
            object-fit: contain;
            border-radius: 18px;
            border: 4px solid #ffffff;
            background: #ffffff;
            box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
        }

        .window-photo-modal-close {
            position: fixed;
            top: 14px;
            left: 14px;
            width: 42px;
            height: 42px;
            border: none;
            border-radius: 999px;
            background: #ffffff;
            color: #111827;
            font-size: 28px;
            line-height: 1;
            cursor: pointer;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
        }

        @media (max-width: 768px) {
            .window-icon.window-photo-trigger {
                width: 58px;
                height: 52px;
            }

            .window-photo-preview {
                display: none !important;
            }
        }

        @media (max-width: 480px) {
            .window-icon.window-photo-trigger {
                width: 52px;
                height: 48px;
            }
        }

        /* Accessibility improvements */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* Focus improvements for keyboard navigation */
        .service-checkbox:focus-within,
        .special-service label:focus-within {
            outline: 2px solid var(--primary-color);
            outline-offset: 2px;
        }

        /* High contrast mode support */
        @media (prefers-contrast: high) {
            :root {
                --border-color: #000000;
                --text-secondary: #000000;
            }
        }

        .consent-field{
            margin-top: 12px;
            margin-bottom: 8px;
            padding: 12px 14px;
            border: 2px solid var(--border-color);
            border-radius: var(--border-radius);
            background: #fff;
        }
        .consent-label{
            display: flex;
            align-items: flex-start;
            gap: 10px;
            line-height: 1.5;
            font-size: 14px;
            color: var(--text-secondary);
        }
        .consent-checkbox{
            width: 20px;
            height: 20px;
            accent-color: var(--primary-color);
            margin-top: 2px;
            cursor: pointer;
        }
        .consent-field a{
            color: var(--primary-color);
            text-decoration: underline;
        }
        .consent-checkbox.error{
            outline: 2px solid var(--error-color);
            outline-offset: 2px;
        }
