body {
            font-family: Arial, sans-serif;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
            background-color: #f0f2f5;
        }
        
        h1 {
            text-align: center;
            color: #2c3e50;
            margin-bottom: 30px;
        }
        
        .converter {
            background: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }
        
        .input-group {
            margin-bottom: 25px;
        }
        
        label {
            display: block;
            margin-bottom: 10px;
            font-weight: bold;
            color: #34495e;
        }
        
        input {
            width: 100%;
            padding: 14px;
            margin-bottom: 20px;
            border: 2px solid #ddd;
            border-radius: 8px;
            font-size: 16px;
            box-sizing: border-box; /* Важно! */
        }
        
        select {
            width: 100%;
            padding: 14px;
            margin-bottom: 20px;
            border: 2px solid #ddd;
            border-radius: 8px;
            font-size: 16px;
            background-color: white;
            box-sizing: border-box;
        }
        
        button {
            width: 100%;
            padding: 16px;
            margin-bottom: 20px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: bold;
            background-color: #3498db;
            color: white;
            cursor: pointer;
            transition: background-color 0.3s;
            box-sizing: border-box;
        }
        
        button:hover {
            background-color: #2980b9;
        }
        
        .result {
            background: #ecf0f1;
            padding: 25px;
            border-radius: 8px;
            text-align: center;
            font-size: 24px;
            font-weight: bold;
            margin: 25px 0;
            color: #2c3e50;
            border: 2px dashed #bdc3c7;
        }
        
        .history {
            margin-top: 35px;
            padding-top: 25px;
            border-top: 2px solid #eee;
        }
        
        .history h3 {
            color: #2c3e50;
            margin-bottom: 15px;
        }
        
        #history-list {
            list-style: none;
            padding: 0;
            max-height: 250px;
            overflow-y: auto;
            margin-bottom: 20px;
        }
        
        #history-list li {
            background: #f8f9fa;
            padding: 12px 15px;
            margin: 8px 0;
            border-left: 4px solid #3498db;
            border-radius: 4px;
        }
        
        .fact {
            background: #fff8e1;
            padding: 20px;
            border-radius: 8px;
            margin-top: 25px;
            border-left: 4px solid #f1c40f;
            font-size: 15px;
            line-height: 1.5;
        }
        
        .currency-container {
            display: flex;
            gap: 20px;
            margin-bottom: 25px;
        }
        
        .currency-column {
            flex: 1;
        }
        
        .currency-column label {
            margin-bottom: 12px;
        }
        
        .clear-btn {
            background-color: #e74c3c;
            margin-top: 10px;
        }
        
        .clear-btn:hover {
            background-color: #c0392b;
        }
        
        @media (max-width: 768px) {
            .converter {
                padding: 20px;
            }
            
            .currency-container {
                flex-direction: column;
                gap: 15px;
            }
            
            .result {
                font-size: 20px;
                padding: 20px;
            }
        }
        
        input:focus, select:focus {
            outline: none;
            border-color: #3498db;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
        }
        
        #history-list::-webkit-scrollbar {
            width: 8px;
        }
        
        #history-list::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 4px;
        }
        
        #history-list::-webkit-scrollbar-thumb {
            background: #3498db;
            border-radius: 4px;
        }
        
        #history-list::-webkit-scrollbar-thumb:hover {
            background: #2980b9;
        }
