* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

:root {
  --radius: 12px; /* единый радиус скругления */
}

body {
  display: flex;
  height: 100vh;
  background-color: #fff;
  color: #000;
}

/* Верхняя чёрная полоса */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

header a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
}

header a:hover {
  text-decoration: underline;
}

/* Левая панель */
nav {
  position: fixed;
  top: 64px;
  left: 0;
  width: 250px;
  height: calc(100% - 64px);
  background-color: #000;
  padding-top: 20px;
}

nav ul {
  list-style: none;
}

nav ul li {
  margin: 10px 0;
}

nav ul li a {
  display: block;
  text-align: center;
  padding: 8px 10px;
  text-decoration: none;
  color: #fff;
  font-size: 17px;
}

nav ul li a:hover {
  background-color: #222;
}


/* Основной контент */
main {
  margin-left: 250px;
  margin-top: 64px;
  padding: 20px;
  flex: 1;
  text-align: center;
}

h1 {
  margin-bottom: 20px;
  text-align: center;
}

/* Калькулятор в одну строку по центру */
.calc-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
}

.calc-row label {
  font-size: 14px;
}

.calc-row input, .calc-row button {
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid #ccc;
  font-size: 15px;
}

.calc-row button {
  background-color: #000;
  color: #fff;
  cursor: pointer;
  border: none;
  min-width: 140px;
  border-radius: var(--radius);
}

.calc-row button:hover {
  background-color: #222;
}

/* Таблица */
#resultsTable {
  margin: 0 auto;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 400px; /* немного шире */
}

#resultsTable th, #resultsTable td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

#resultsTable th {
  background-color: #f0f0f0;
  font-weight: 600;
}
