* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Arial, "Segoe UI", Tahoma, sans-serif;
  line-height: 1.45;
  background: #f4f6fb;
  color: #0b1c3a;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.header {
  background: #ffffff;
  border-bottom: 1px solid #dde4f0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nav {
  display: flex;
  align-items: center;
}

.nav a {
  margin-left: 14px;
  color: #0b1c3a;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.nav a:hover {
  opacity: 0.72;
}

main {
  padding-bottom: 24px;
}

.main-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  padding: 24px 0 40px;
}

.card {
  background: #ffffff;
  border: 1px solid #e6ebf5;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(11, 28, 58, 0.06);
}

.card h2,
.card h3 {
  margin: 0 0 12px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #243a66;
}

input {
  width: 100%;
  border: 1px solid #cfd8ea;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  outline: none;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14);
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.92;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: #1d4ed8;
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  color: #1d4ed8;
  border: 1px solid #1d4ed8;
}

.btn-danger {
  background: #ef4444;
  color: #ffffff;
}

.btn-small {
  padding: 6px 10px;
  font-size: 12px;
}

.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.service-item {
  border: 1px solid #d8e1f2;
  border-radius: 12px;
  padding: 12px;
  background: #fbfcff;
}

.service-item p {
  margin: 4px 0 10px;
  color: #495a79;
}

.cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-item {
  border: 1px solid #e2e8f6;
  border-radius: 10px;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.empty-cart {
  color: #64748b;
}

.total-row {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  padding-top: 10px;
  border-top: 1px solid #e6ebf5;
}

.message {
  margin-top: 10px;
  font-size: 14px;
}

.message.success {
  color: #15803d;
}

.message.error {
  color: #b91c1c;
}

.message.info {
  color: #475569;
}

.small-note {
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 900px) {
  .main-grid,
  .auth-grid,
  .services {
    grid-template-columns: 1fr;
  }
}
