﻿:root {
  --bg: #f4f0e8;
  --panel: #fffaf2;
  --ink: #1f2933;
  --brand: #d35400;
  --brand-dark: #8e3a00;
  --line: #e7dccf;
  --error: #b42318;
}

* { box-sizing: border-box; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  background: radial-gradient(circle at 15% 15%, #ffe1c7 0, transparent 33%), radial-gradient(circle at 80% 0%, #ffefde 0, transparent 38%), var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Tahoma, sans-serif;
}

.pricing-app {
  width: min(1280px, 95vw);
  margin: 1.4rem auto 2rem;
  display: grid;
  gap: 1.1rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem;
  box-shadow: 0 8px 20px rgba(44, 29, 14, 0.08);
}

h1, h2, h3 { margin: 0 0 0.5rem; }
.intro p { margin: 0; }

.intro {
  background: #fffaf2;
  border-color: var(--line);
  box-shadow: 0 8px 20px rgba(44, 29, 14, 0.08);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.intro p {
  color: var(--ink);
  font-weight: 400;
}

.brand-logo-crop {
  width: min(290px, 66vw);
  height: 92px;
  overflow: hidden;
  position: relative;
  margin-bottom: 0.25rem;
}

.brand-logo {
  position: absolute;
  left: -44px;
  top: -74px;
  width: 360px;
  max-width: none;
  height: auto;
}

.calc-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  align-items: stretch;
}

.guide-box p {
  margin-top: 0;
  text-align: center;
}

.guide-box {
  background: linear-gradient(180deg, #fffaf2 0%, #fff6ec 100%);
}

.guide-box h2 {
  text-align: center;
}

.calc-layout > .panel {
  height: 100%;
}

.guide-box ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
  text-align: left;
}

.guide-box li {
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.freight-box {
  border: 1px dashed #d8c8b5;
  border-radius: 10px;
  padding: 0.8rem;
  margin-bottom: 1rem;
  background: #fff4e8;
}

.freight-box p { margin: 0.2rem 0 0.8rem; }

.freight-grid,
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
  align-items: end;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}

.label-line {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  color: #1f2933;
  font-size: 0.88rem;
}

.tip {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eed8bf;
  color: #5f3a17;
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
  cursor: help;
  user-select: none;
}

.freight-action {
  display: grid;
  grid-template-rows: auto auto;
  justify-items: end;
  align-items: start;
  gap: 0.35rem;
  align-self: end;
}

.action-help {
  min-height: 1.25rem;
  display: flex;
  align-items: center;
}

.tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 0.4rem;
  width: min(320px, calc(100vw - 2rem));
  max-width: 320px;
  background: #1f2933;
  color: #fff;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 2;
}

.tip:hover::after,
.tip:focus::after {
  opacity: 1;
  transform: translateY(0);
}

.tip-above::after {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 0.4rem;
}

input, select {
  border: 1px solid #d7c7b4;
  border-radius: 8px;
  padding: 0.55rem 0.6rem;
  font-size: 1rem;
  background: #fff;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  background: var(--brand);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  align-self: end;
}

button:hover { background: var(--brand-dark); }
.error { min-height: 1.2rem; color: var(--error); font-weight: 700; }
.result p { margin: 0.35rem 0; }
#salePrice { font-size: 2rem; color: #1f2933; }
.highlight {
  font-size: 1.05rem;
  margin: 0;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #fde047 0%, #facc15 100%);
  color: #1f2933;
  box-shadow: 0 10px 18px rgba(202, 138, 4, 0.28);
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
}
.result-inline {
  margin-top: 1rem;
  border: 1px solid #ead8c5;
  border-radius: 14px;
  padding: 1rem;
  background:
    radial-gradient(circle at 100% 0, #fff2de 0, transparent 45%),
    #fffdf9;
  box-shadow: 0 8px 16px rgba(143, 90, 38, 0.08);
}

.result-inline h2 {
  text-align: center;
  font-size: 2rem;
  letter-spacing: 0.02em;
}

.highlight strong {
  color: #1f2933;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.3rem;
}

.compare-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.compare-menu {
  position: relative;
}

.compare-btn {
  background: #16a34a;
  color: #ffffff;
}

.compare-btn:hover {
  background: #15803d;
}

.compare-menu-list {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 190px;
  background: #ffffff;
  border: 1px solid #d8c8b5;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  padding: 0.35rem;
  display: none;
  z-index: 10;
}

.compare-menu-list.open {
  display: grid;
  gap: 0.25rem;
}

.compare-option {
  width: 100%;
  text-align: left;
  background: #f8fafc;
  color: #1f2933;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
}

.compare-option:hover {
  background: #e2e8f0;
}
.dynamic-row {
  display: none;
}

.result-inline p:not(.highlight) {
  font-weight: 700;
  margin: 0.45rem 0;
  padding: 0.52rem 0.7rem;
  border-radius: 10px;
  background: #fff6ea;
  border: 1px solid #f2dfc8;
}

.result-inline p span {
  color: #55300f;
}

.form-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.form-actions button {
  width: 100%;
}

.secondary-btn {
  background: #475569;
}

.secondary-btn:hover {
  background: #334155;
}
.steps-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.steps-list li {
  line-height: 1.4;
  padding: 0.45rem 0.55rem;
  border: 1px solid #ecd9c4;
  border-radius: 8px;
  background: #fff8ef;
}

.step-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.5rem;
}

.step-tip {
  margin-top: 0.1rem;
}

.export-actions {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.seo-content h3 {
  margin-top: 0.9rem;
  margin-bottom: 0.3rem;
}

.seo-content p {
  margin: 0.25rem 0 0.6rem;
  line-height: 1.45;
}

@media (max-width: 600px) {
  .pricing-app { width: 95vw; }
  .panel { padding: 0.85rem; }
}

@media (max-width: 980px) {
  .calc-layout {
    grid-template-columns: 1fr;
  }
}

