/* CoDriver calculator - standalone styles */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f7fa;
  color: #2c3e50;
  line-height: 1.5;
  padding: 20px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.page-header__icon {
  width: 24px;
  height: 24px;
}

.page-header__title {
  font-size: 20px;
  font-weight: 600;
}

.page-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 12px;
}

.page-nav__link {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  line-height: 1.2;
}

.page-nav__link:hover {
  color: #4b9cd3;
  text-decoration: underline;
}

.page-nav__link--sheet {
  color: #4b9cd3;
}

.page-nav__link--sheet:hover {
  color: #3a8bc2;
}

.page-nav__divider {
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1;
  user-select: none;
}

.country-switcher {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.country-switcher__button {
  background: transparent;
  border: none;
  border-radius: 50%;
  padding: 5px;
  cursor: pointer;
}

.country-switcher__button img {
  width: 50px;
  height: 50px;
  display: block;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 28px;
}

.section-header__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.intro {
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 16px;
}

.alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.alert--warning {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
}

.alert--info {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1e40af;
  font-weight: 500;
}

.is-hidden {
  display: none !important;
}

.table-scroll {
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  table-layout: fixed;
}

.pricing-table col.col-tier {
  width: 30%;
}

.pricing-table col.col-money {
  width: 14%;
}

.pricing-table col.col-input {
  width: 14%;
}

.pricing-table th {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  padding: 0 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: bottom;
}

.pricing-table th:nth-child(n + 2) {
  text-align: right;
}

.pricing-table th:nth-child(3),
.pricing-table th:nth-child(4) {
  text-align: center;
}

.pricing-table td {
  padding: 14px 10px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  font-size: 14px;
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.tier-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.tier-hint {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

.cell-number {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cell-text {
  color: #64748b;
  font-size: 13px;
}

.cell-input {
  text-align: center;
}

.field-input {
  width: 76px;
  height: 36px;
  padding: 0 8px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: #1e293b;
}

.field-input:focus {
  outline: none;
  border-color: #4b9cd3;
}

.field-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.field-warning {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #d97706;
}

.summary-panel {
  position: sticky;
  top: 20px;
}

.summary-panel__container {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.summary-panel__header {
  padding: 20px 22px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.summary-panel__title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.summary-panel__subtitle {
  font-size: 12px;
  color: #64748b;
}

.summary-panel__body {
  padding: 8px 22px;
}

.summary-panel__footer {
  padding: 16px 22px 20px;
  border-top: 2px solid #dbeafe;
  background: #eff6ff;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #e2e8f0;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row__label {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.summary-row__value {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.summary-row__value--stacked {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.summary-row--highlight {
  border-bottom: none;
  padding: 0;
}

.summary-row--highlight .summary-row__label {
  font-size: 15px;
  font-weight: 600;
  color: #1e40af;
}

.summary-row__value--net {
  font-size: 22px;
  font-weight: 800;
  color: #1d4ed8;
}

.guidelines-card {
  margin-bottom: 24px;
}

.guidelines-note {
  background: #eff6ff;
  border-left: 3px solid #4b9cd3;
  padding: 10px 14px;
  margin: 16px 0;
  font-size: 13px;
  color: #1e40af;
  border-radius: 0 8px 8px 0;
}

.guidelines-list {
  margin: 0 0 16px 20px;
  font-size: 14px;
  color: #475569;
}

.guidelines-list li {
  margin-bottom: 10px;
}

.guidelines-examples-title {
  font-weight: 600;
  margin-bottom: 8px;
}

@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    position: static;
  }
}

@media (max-width: 768px) {
  body {
    padding: 12px;
  }

  .card {
    padding: 20px;
  }
}
