:root {
  --bg: #070a0d;
  --panel: #161a1f;
  --panel-2: #1d2228;
  --text: #f4eee7;
  --muted: #aaa7ad;
  --brand: #f2c766;
  --brand-2: #9c8450;
  --gold: #f2c766;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
  --radius: 28px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 15% 0%, rgba(242, 199, 102, 0.18), transparent 30%),
    linear-gradient(180deg, #070a0d 0%, #11161b 52%, #070a0d 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 1000;
  color: #000;
  background: #fff;
  padding: 12px 16px;
  border-radius: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 9, 20, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #2b210f;
  font-size: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.main-nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
}

.main-nav a.active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--brand);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language,
.input,
.select,
.textarea {
  width: 100%;
  color: var(--text);
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  padding: 13px 14px;
}

.language {
  width: auto;
  padding: 10px 12px;
  font-weight: 800;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 10px;
  padding: 13px 20px;
  font-weight: 950;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  color: #2b210f;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 42px rgba(242, 199, 102, 0.22);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.07);
}

.burger {
  display: none;
  color: var(--text);
  background: transparent;
  border: 0;
  font-size: 30px;
}

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-image {
  background-image: url("../img/hero-dubrovnik.png");
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 9, 20, 0.92) 0%, rgba(5, 9, 20, 0.72) 47%, rgba(5, 9, 20, 0.55) 100%),
    radial-gradient(circle at 58% 50%, rgba(242, 199, 102, 0.18), transparent 35%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 730px;
}

.kicker,
.eyebrow,
.badge {
  display: inline-flex;
  width: max-content;
  align-items: center;
  color: #06101c;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--brand);
  padding: 8px 13px;
}

.hero h1,
.sub-hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(46px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.hero p,
.lead {
  max-width: 760px;
  margin: 0 0 30px;
  color: #d5dced;
  font-size: clamp(18px, 2.2vw, 22px);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.section {
  padding: 82px 0;
}

.section-tight {
  padding: 34px 0 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.centered {
  text-align: center;
  margin-inline: auto;
}

.section h2,
.sub-hero h1 {
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-strip article,
.info-card,
.contact-card,
.checkout-card,
.notice,
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: var(--shadow);
}

.feature-strip article,
.info-card,
.contact-card,
.checkout-card {
  padding: 24px;
}

.feature-strip strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 18px;
}

.feature-strip span,
.tour-card p {
  color: var(--muted);
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.tour-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.tour-card img {
  width: 100%;
  aspect-ratio: 1.38;
  object-fit: cover;
}

.tour-card-body {
  padding: 24px;
}

.tour-card h3,
.info-card h3 {
  margin: 16px 0 10px;
  font-size: 26px;
  letter-spacing: -0.035em;
}

.tour-card a {
  color: var(--brand);
  font-weight: 900;
}

.tour-featured {
  border-color: rgba(94, 226, 178, 0.42);
}

.split-section {
  background: rgba(255, 255, 255, 0.035);
}

.split-grid,
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.rounded-img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.steps {
  display: grid;
  gap: 16px;
  counter-reset: step-counter;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
}

.step::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #2b210f;
  font-weight: 950;
  border-radius: 16px;
  background: var(--brand-2);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.sub-hero {
  padding: 86px 0 50px;
  background:
    radial-gradient(circle at 75% 15%, rgba(242, 199, 102, 0.2), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

.checkout-hero {
  position: relative;
  overflow: hidden;
}

.checkout-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 24%, rgba(242, 199, 102, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(8, 12, 18, 0.72), rgba(8, 12, 18, 0.82));
  opacity: 1;
  pointer-events: none;
}

.checkout-hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 34px;
}

.checkout-hero-copy {
  display: grid;
  justify-items: center;
  text-align: center;
}

.checkout-hero-copy h1 {
  margin: 0;
}

.tour-detail-grid {
  display: grid;
  gap: 26px;
}

.detail-card {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 26px;
  align-items: stretch;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.detail-card img {
  width: 100%;
  height: 100%;
  min-height: 376px;
  max-height: 376px;
  object-fit: cover;
  border-radius: 22px;
}

.detail-card > div {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  justify-content: center;
}

.detail-card p {
  margin-bottom: 14px;
}

.detail-card h2 {
  margin-bottom: 8px;
}

.detail-card ul,
.check-list {
  padding-left: 20px;
  color: #dbe3f2;
  margin: 0 0 18px;
}

.detail-card-actions {
  margin-top: auto;
}

.featured-card {
  border-color: rgba(255, 211, 122, 0.42);
}

.form {
  display: grid;
  gap: 15px;
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.faq details {
  padding: 18px 20px;
  margin-bottom: 14px;
}

.faq summary {
  cursor: pointer;
  font-weight: 950;
}

.notice {
  padding: 18px 20px;
  color: #fff1bf;
  background: rgba(255, 211, 122, 0.12);
  border-color: rgba(255, 211, 122, 0.28);
}

.checkout-grid {
  gap: 30px;
  align-items: start;
}

.checkout-stage {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  justify-content: stretch;
  width: 100%;
}

.tour-compare-panel {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px;
  border: 1px solid rgba(242, 199, 102, 0.16);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at 12% 0%, rgba(242, 199, 102, 0.08), transparent 30%);
  box-shadow: var(--shadow);
}

.tour-compare-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  text-align: center;
}

.tour-compare-head h2,
.tour-compare-head p {
  margin: 0;
}

.tour-compare-table-wrap {
  overflow-x: auto;
}

.tour-compare-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
}

.tour-compare-table th,
.tour-compare-table td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tour-compare-table thead th {
  color: #f4eee7;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.tour-compare-table thead th:first-child,
.tour-compare-table tbody td:first-child {
  text-align: left;
}

.tour-compare-table thead span {
  display: block;
  margin-top: 6px;
  color: #d7c7a0;
  font-size: 13px;
  font-weight: 700;
}

.tour-compare-table tbody td {
  color: #d7dee6;
  text-align: center;
  font-weight: 700;
}

.tour-compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 900;
}

.compare-mark.yes {
  color: #091117;
  background: linear-gradient(135deg, #f2c766, #b89545);
  box-shadow: 0 10px 24px rgba(242, 199, 102, 0.2);
}

.compare-mark.no {
  color: #f0c7b0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-card {
  position: static;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.05)),
    radial-gradient(circle at 50% 100%, rgba(242, 199, 102, 0.08), transparent 42%);
}

.checkout-card label {
  display: grid;
  gap: 10px;
}

.checkout-card label > span {
  color: #f3ede4;
  font-size: 15px;
  font-weight: 700;
}

.qty {
  display: grid;
  grid-template-columns: 48px minmax(86px, 110px) 48px;
  gap: 10px;
  justify-content: start;
  width: max-content;
  max-width: 100%;
}

.qty button {
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.qty .input {
  width: 100%;
  min-width: 0;
  padding-inline: 0;
  text-align: center;
  font-size: 24px;
  font-weight: 900;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 10px 0;
}

.total {
  font-size: 48px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.06em;
}

.full {
  width: 100%;
}

.success {
  margin-top: 16px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  padding: 44px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 24px;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: var(--muted);
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.mobile-cta {
  display: none;
}

@media (max-width: 960px) {
  .burger {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 86px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #07101d;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 10px;
  }

  .nav-actions .btn {
    display: none;
  }

  .hero {
    min-height: 690px;
  }

  .feature-strip,
  .cards-3,
  .split-grid,
  .checkout-grid,
  .detail-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .checkout-card {
    max-width: 100%;
  }

  .detail-card img {
    min-height: 360px;
  }

  .checkout-stage {
    grid-template-columns: 1fr;
  }

  .checkout-hero-shell {
    gap: 26px;
  }

  .tour-compare-panel {
    padding: 22px;
    border-radius: 26px;
  }

  .mobile-cta {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 99;
    display: flex;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .nav-wrap {
    min-height: 70px;
    gap: 12px;
  }

  .brand {
    font-size: 19px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .language {
    max-width: 72px;
  }

  .hero {
    min-height: 640px;
  }

  .hero h1,
  .sub-hero h1 {
    font-size: 42px;
  }

  .detail-card img {
    min-height: 300px;
  }

  .checkout-hero-shell {
    gap: 22px;
  }

  .checkout-hero-copy {
    justify-items: start;
    text-align: left;
  }

  .hero p,
  .lead {
    font-size: 17px;
  }

  .section {
    padding: 58px 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .checkout-card {
    padding: 22px;
    border-radius: 26px;
  }

  .tour-compare-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .tour-compare-table th,
  .tour-compare-table td {
    padding: 14px 12px;
  }

  .qty {
    grid-template-columns: 44px minmax(78px, 96px) 44px;
    gap: 8px;
  }

  .qty button {
    width: 44px;
    height: 44px;
  }

  .qty .input {
    font-size: 20px;
  }
}


/* =============================
   Page-specific styles: buy.css
   ============================= */

/* Page-specific styles for buy page.
   Main visual system is in common.css so the design stays unchanged. */


img { max-width: 100%; }
