
:root {
  --navy: #061a46;
  --orange: #ff7a13;
  --green: #13843d;
  --purple: #7138d8;
  --red: #d82c1f;
  --ink: #182238;
  --muted: #637089;
  --line: #d9dfeb;
  --page: #eef2f7;
  --white: #ffffff;
  --blue-soft: #edf4ff;
  --green-soft: #edf8f0;
  --orange-soft: #fff4e8;
  --purple-soft: #f5effd;
  --sand: #f5eddc;
  --shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-width: 0;
}

body {
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select {
  font: inherit;
}

.site {
  width: 100%;
  padding: clamp(6px, 0.8vw, 16px);
}

.hero {
  display: grid;
  grid-template-columns: clamp(150px, 12vw, 240px) minmax(0, 1fr) clamp(130px, 10vw, 190px);
  gap: clamp(16px, 1.5vw, 30px);
  align-items: center;
  width: 100%;
  min-height: clamp(205px, 16vw, 270px);
  padding: clamp(18px, 1.8vw, 34px);
  color: #fff;
  background: #000;
  border-radius: 22px 22px 0 0;
}

.hero__logo,
.hero__qr {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.hero__logo img {
  display: block;
  width: min(100%, 205px);
  height: auto;
}

.hero__copy {
  min-width: 0;
}

.hero__copy h1 {
  margin: 0;
  font-size: clamp(44px, 4.3vw, 94px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-weight: 900;
  text-transform: uppercase;
}

.hero__copy h1 span {
  color: var(--orange);
}

.hero__copy p {
  max-width: 1050px;
  margin: 16px 0 0;
  font-size: clamp(17px, 1.25vw, 25px);
  line-height: 1.4;
}

.hero__qr {
  flex-direction: column;
  color: #ffd391;
  text-align: center;
  font-size: 14px;
}

.hero__qr img {
  display: block;
  width: clamp(100px, 7.2vw, 140px);
  height: clamp(100px, 7.2vw, 140px);
  margin-bottom: 10px;
  padding: 4px;
  object-fit: contain;
  background: #fff;
  border-radius: 9px;
}

.hero__qr span {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.app-layout {
  display: grid;
  grid-template-columns: clamp(310px, 21vw, 430px) minmax(0, 1fr);
  gap: clamp(12px, 1vw, 18px);
  align-items: start;
  width: 100%;
  margin-top: 10px;
}

.app-layout > *,
.results > *,
.detail-layout > * {
  min-width: 0;
}

.panel {
  overflow: hidden;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  color: #fff;
  background: var(--navy);
  font-size: clamp(16px, 1.05vw, 21px);
  line-height: 1.15;
  font-weight: 900;
  text-transform: uppercase;
}

.panel__title--inline {
  display: inline-flex;
  width: auto;
  min-width: 220px;
  border-radius: 0 0 14px 0;
}

.panel__body {
  padding: 16px;
}

.field {
  margin-bottom: 15px;
}

.field label,
.field-group legend {
  color: #1b2741;
  font-size: 14px;
  font-weight: 800;
}

.field label {
  display: block;
  margin-bottom: 7px;
}

.field-group {
  min-width: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.field-group legend {
  margin-bottom: 10px;
}

select,
input[type="number"] {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: #1d2942;
  background: #fff;
  border: 1px solid #bcc7d8;
  border-radius: 8px;
}

.input-with-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
}

.compact-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px;
  gap: 10px;
  align-items: center;
  margin-bottom: 9px;
}

.compact-input label {
  min-width: 0;
  color: #2d3952;
  font-size: 14px;
}

.compact-input input {
  min-height: 34px;
  padding: 5px 7px;
  text-align: center;
}

.helper,
.warning {
  margin: 10px 0 0;
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.helper {
  color: #264782;
  background: #edf4ff;
  border: 1px solid #cbd9f6;
}

.warning {
  color: #7a2d13;
  background: #fff1e8;
  border: 1px solid #ffc9aa;
}

.button {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.button--primary {
  color: #fff;
  background: var(--orange);
  border: 0;
}

.button--secondary {
  margin-top: 9px;
  color: #243353;
  background: #fff;
  border: 1px solid #aeb8cb;
}

.results {
  display: grid;
  gap: 16px;
}

.summary__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: clamp(116px, 8.5vw, 150px);
  padding: 16px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.metric--blue {
  background: var(--blue-soft);
}

.metric--green {
  background: var(--green-soft);
}

.metric--orange {
  background: var(--orange-soft);
}

.metric--purple {
  background: var(--purple-soft);
}

.metric span {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 800;
}

.metric strong {
  margin-bottom: 7px;
  font-size: clamp(24px, 1.75vw, 38px);
  line-height: 1;
  font-weight: 900;
}

.metric--blue strong {
  color: #1762ba;
}

.metric--green strong {
  color: var(--green);
}

.metric--orange strong {
  color: var(--orange);
}

.metric--purple strong {
  color: var(--purple);
}

.metric small {
  color: #47546c;
  font-size: 13px;
  line-height: 1.25;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(310px, 20vw, 410px);
  gap: 16px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: clamp(13px, 0.85vw, 16px);
}

th,
td {
  padding: 11px 9px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  text-align: center;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
}

th {
  color: #1e2941;
  background: #eef3fb;
  font-weight: 800;
}

th:first-child,
td:first-child {
  width: 21%;
  padding-left: 15px;
  text-align: left;
  font-weight: 700;
}

tbody tr:last-child td {
  font-size: 15px;
  font-weight: 900;
}

.money {
  color: var(--red);
  font-weight: 900;
}

.included {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #fff;
  background: #198747;
  border-radius: 50%;
  font-weight: 900;
}

.table-note {
  margin: 0;
  padding: 11px 15px 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.package-details__heading {
  padding: 16px;
  text-align: center;
  color: #1d2740;
  background: #f5ead4;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  line-height: 1.3;
}

.package-details__heading strong,
.package-details__heading span {
  display: block;
}

.package-details h2 {
  margin: 0 0 8px;
  color: #178546;
  font-size: 16px;
  text-transform: uppercase;
}

.package-details ul {
  margin: 0 0 15px;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.55;
}

.price-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: var(--sand);
  border: 1px solid #e1d8c1;
  border-radius: 11px;
}

.price-card span {
  color: #2a3348;
  font-size: 13px;
  font-weight: 800;
}

.price-card strong {
  color: #182238;
  font-size: 17px;
  font-weight: 900;
}

.price-card strong:last-child {
  color: var(--green);
  font-size: 19px;
}

.package-note {
  margin: 10px 0 0;
  color: #69748a;
  font-size: 12px;
  line-height: 1.35;
}

.compare-lines__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.cruise-card {
  min-width: 0;
  min-height: 180px;
  padding: 15px 10px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.cruise-card:last-child {
  border-right: 0;
}

.cruise-card__line {
  min-height: 36px;
  color: #17489b;
  font-size: 14px;
  font-weight: 900;
}

.cruise-card__package {
  min-height: 50px;
  color: #21304f;
  font-size: 13px;
  line-height: 1.25;
}

.cruise-card__price {
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
}

.cruise-card__trip {
  margin-top: 4px;
  font-size: 13px;
}

.cruise-card__note {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.footer {
  padding: 16px 4px 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 1250px) {
  .hero {
    grid-template-columns: 150px minmax(0, 1fr) 135px;
    gap: 16px;
    padding: 18px;
  }

  .hero__logo img {
    width: min(100%, 140px);
  }

  .app-layout {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 12px;
  }

  .summary__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .compare-lines__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cruise-card:nth-child(3n) {
    border-right: 0;
  }
}

@media (max-width: 820px) {
  .site {
    padding: 0 6px 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
    text-align: center;
    border-radius: 0;
  }

  .hero__logo img {
    width: 140px;
  }

  .hero__copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .app-layout,
  .summary__grid,
  .detail-layout,
  .compare-lines__grid {
    grid-template-columns: 1fr;
  }

  .cruise-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .cruise-card:last-child {
    border-bottom: 0;
  }

  table {
    min-width: 780px;
  }
}
