* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/*body {
	background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px;
	color: #333;
}

.container {
	background-color: rgba(255, 255, 255, 0.95);
	border-radius: 20px;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
	width: 100%;
	max-width: 1200px;
	overflow: hidden;
}

header {
	background: linear-gradient(to right, #1a2980, #26d0ce);
	color: white;
	text-align: center;
	padding: 40px 20px;
	position: relative;
	overflow: hidden;
}

header::before {
	content: "";
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
	transform: rotate(30deg);
}

header h1 {
	font-size: 3rem;
	margin-bottom: 15px;
	letter-spacing: 1px;
	position: relative;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

header p {
	font-size: 1.3rem;
	max-width: 800px;
	margin: 0 auto;
	opacity: 0.9;
	position: relative;
	font-weight: 300;
}
*/

.calculators-container {
	display: flex;
	flex-wrap: wrap;
	padding: 30px;
	gap: 30px;
	justify-content: center;
}

.calculator {
	flex: 1;
	min-width: 330px;
	max-width: 380px;
	background: white;
	border-radius: 15px;
	padding: 30px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
	transition: all 0.4s ease;
	position: relative;
	overflow: hidden;
	border-top: 5px solid;
}

.calculator:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.calculator::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.05), transparent);
}

.calculator-1 {
	border-top-color: #4776E6;
}

.calculator-2 {
	border-top-color: #8E54E9;
}

.calculator-3 {
	border-top-color: #2ecc71;
}

.calculator h2 {
	color: #2c3e50;
	margin-bottom: 25px;
	padding-bottom: 15px;
	border-bottom: 2px solid #f0f0f0;
	display: flex;
	align-items: center;
	gap: 12px;
	position: relative;
}

.calculator h2 i {
	font-size: 1.8rem;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background-color: rgba(71, 118, 230, 0.1);
}

.calculator-1 h2 i {
	color: #4776E6;
}

.calculator-2 h2 i {
	color: #8E54E9;
	background-color: rgba(142, 84, 233, 0.1);
}

.calculator-3 h2 i {
	color: #2ecc71;
	background-color: rgba(46, 204, 113, 0.1);
}

.input-group {
	margin-bottom: 22px;
	position: relative;
}

.input-group label {
	display: block;
	margin-bottom: 10px;
	font-weight: 600;
	color: #34495e;
	display: flex;
	align-items: center;
	gap: 8px;
}

.input-group label i {
	color: #7f8c8d;
	font-size: 0.9rem;
}

.input-group input {
	width: 100%;
	padding: 15px;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	font-size: 1.1rem;
	transition: all 0.3s;
	background: #f9f9f9;
}

.input-group input:focus {
	border-color: #4776E6;
	outline: none;
	box-shadow: 0 0 0 4px rgba(71, 118, 230, 0.2);
	background: white;
}

.calculator-2 .input-group input:focus {
	border-color: #8E54E9;
	box-shadow: 0 0 0 4px rgba(142, 84, 233, 0.2);
}

.calculator-3 .input-group input:focus {
	border-color: #2ecc71;
	box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.2);
}

.button-123 {
	width: 100%;
	padding: 16px;
	border: none;
	border-radius: 12px;
	font-size: 1.15rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
	letter-spacing: 0.5px;
	margin-top: 10px;
	position: relative;
	overflow: hidden;
}

.calculator-1 .button-123{
	background: linear-gradient(to right, #4776E6, #5a4fcf);
	color: white;
}

.calculator-2 .button-123 {
	background: linear-gradient(to right, #8E54E9, #6a48e7);
	color: white;
}

.calculator-3 .button-123 {
	background: linear-gradient(to right, #2ecc71, #27ae60);
	color: white;
}

.button-123::after {
	content: "";
	position: absolute;
	top: -50%;
	left: -60%;
	width: 20px;
	height: 200%;
	background: rgba(255, 255, 255, 0.3);
	transform: rotate(25deg);
	transition: all 0.6s;
}

.button-123:hover::after {
	left: 120%;
}

.button-123:hover {
	opacity: 0.95;
	transform: translateY(-3px);
	box-shadow: 0 7px 15px rgba(0, 0, 0, 0.15);
}

.button-123:active {
	transform: translateY(1px);
}

.result {
	margin-top: 28px;
	padding: 25px 20px;
	background: linear-gradient(to bottom right, #f8f9fa, #eef2f7);
	border-radius: 12px;
	text-align: center;
	min-height: 120px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	border: 1px solid #eaeaea;
}

.result p {
	font-size: 1.15rem;
	color: #7f8c8d;
	margin-bottom: 12px;
	font-weight: 500;
}

.result-value {
	font-size: 2.4rem;
	font-weight: 800;
	transition: all 0.3s ease;
	line-height: 1.2;
}

.calculator-1 .result-value {
	color: #4776E6;
}

.calculator-2 .result-value {
	color: #8E54E9;
}

.calculator-3 .result-value {
	color: #27ae60;
}

.formula {
	background: #f0f7ff;
	padding: 20px;
	border-radius: 12px;
	margin-top: 30px;
	font-size: 0.95rem;
	border-left: 4px solid #4776E6;
}

.calculator-2 .formula {
	border-left-color: #8E54E9;
	background: #f6f0ff;
}

.calculator-3 .formula {
	border-left-color: #2ecc71;
	background: #f0fff7;
}

.formula h3 {
	color: #4776E6;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.calculator-2 .formula h3 {
	color: #8E54E9;
}

.calculator-3 .formula h3 {
	color: #27ae60;
}

.formula p {
	line-height: 1.7;
	color: #2c3e50;
}

.formula .math {
	font-family: monospace;
	font-size: 1.25rem;
	padding: 12px;
	background: white;
	border-radius: 8px;
	margin: 12px 0;
	text-align: center;
	border: 1px dashed #ddd;
}

/*footer {
	text-align: center;
	padding: 25px;
	color: #7f8c8d;
	font-size: 1rem;
	background: #f8f9fa;
	border-top: 1px solid #eee;
}

footer p {
	margin: 5px 0;
}*/

@media (max-width: 1100px) {
	.calculator {
		min-width: 280px;
	}
}

@media (max-width: 900px) {
	.calculators-container {
		flex-direction: column;
		align-items: center;
	}

	.calculator {
		max-width: 500px;
		width: 100%;
	}

	header h1 {
		font-size: 2.5rem;
	}
}

@media (max-width: 480px) {
	/*header {
		padding: 30px 15px;
	}

	header h1 {
		font-size: 2rem;
	}

	header p {
		font-size: 1.1rem;
	}*/

	.calculators-container {
		padding: 20px 15px;
		gap: 25px;
	}

	.calculator {
		padding: 25px 20px;
	}
}