/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img, picture, video { display: block; max-width: 100%; }

/* === VARIABLES === */
:root {
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-6: 24px;
  --s-8: 32px;
  --s-12: 48px;
  --s-16: 64px;

  --primary: #8B4513;
  --primary-dark: #6B3410;
  --primary-light: #A0522D;
  --accent: #D4A853;
  --accent-light: #F0D080;
  --bg: #FAF7F2;
  --bg-2: #F2EDE4;
  --surface: #FFFFFF;
  --surface-2: #F5F0E8;
  --ink: #1C1410;
  --ink-mute: #6B5B4E;
  --ink-light: #9C8878;
  --border: #E2D8CC;
  --hero-overlay: rgba(28, 14, 6, 0.55);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(139, 69, 19, 0.10);
  --shadow-lg: 0 8px 40px rgba(139, 69, 19, 0.15);

  --header-h: 72px;
}

/* === BASE === */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  line-height: 1.25;
  margin: 0;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--s-6);
}

/* === SECTION COMMON === */
.section {
  padding: var(--s-16) 0;
}
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--s-2);
}
.section-eyebrow--light { color: var(--accent-light); }
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--ink);
  margin-bottom: var(--s-6);
}
.section-title--center { text-align: center; }
.section-lead {
  max-width: 640px;
  margin: 0 auto var(--s-8);
  text-align: center;
  color: var(--ink-mute);
  font-size: 17px;
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(139,69,19,0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  text-decoration: none;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.logo--footer .logo-text,
.logo--footer span {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-mute);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--primary); background: var(--surface-2); }
.nav-link--cta {
  background: var(--primary);
  color: #fff;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--radius-sm);
}
.nav-link--cta:hover { background: var(--primary-dark); color: #fff; }

/* BURGER */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--s-2);
  border-radius: var(--radius-sm);
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === HERO === */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding-top: var(--s-16);
  padding-bottom: var(--s-16);
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: var(--s-3);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--s-4);
  color: #fff;
}
.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 300;
  max-width: 560px;
  color: rgba(255,255,255,0.88);
  margin-bottom: var(--s-8);
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-bottom: var(--s-12);
}
.hero-stats {
  display: flex;
  gap: var(--s-8);
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat__num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.hero-stat__label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: var(--s-1);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: var(--s-3) var(--s-6);
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn--outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn--sm {
  font-size: 13px;
  padding: var(--s-2) var(--s-4);
}
.btn--full { width: 100%; }

/* === CARDS GRID === */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-6);
  align-items: stretch;
}
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.card__image-wrap { position: relative; overflow: hidden; }
.card__image {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  display: block;
  transition: transform 0.4s;
}
.card__image--square {
  aspect-ratio: 1/1;
}
.card:hover .card__image { transform: scale(1.04); }
.card__body {
  flex: 1 1 auto;
  padding: var(--s-4) var(--s-6);
}
.card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--s-2);
}
.card__text {
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__footer {
  margin-top: auto;
  padding: var(--s-3) var(--s-6) var(--s-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  border-top: 1px solid var(--border);
}

/* === TAGS === */
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: var(--s-1) var(--s-3);
  background: var(--surface-2);
  color: var(--primary);
  border-radius: 20px;
  border: 1px solid var(--border);
}
.card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  transition: color 0.2s;
}
.card-link:hover { color: var(--accent); }

/* === ABOUT === */
.about { background: var(--bg); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: center;
}
.about-lead {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--s-4);
  line-height: 1.6;
}
.about-body {
  font-size: 15px;
  color: var(--ink-mute);
  margin-bottom: var(--s-6);
  line-height: 1.7;
}
.about-features {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.about-features li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.about-image-wrap {
  position: relative;
}
.about-img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.about-badge {
  position: absolute;
  bottom: var(--s-6);
  left: calc(-1 * var(--s-6));
  background: var(--primary);
  color: #fff;
  padding: var(--s-4) var(--s-6);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-badge__num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.about-badge__text {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  margin-top: var(--s-1);
}

/* === SERVICES === */
.services { background: var(--bg-2); }
.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* === TOURS === */
.tours { background: var(--bg); }
.tours-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.tour-badge {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--s-1) var(--s-3);
  border-radius: 20px;
  z-index: 1;
}
.tour-badge--new { background: var(--accent); color: var(--ink); }
.tour-meta {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-bottom: var(--s-2);
}
.tour-meta__item {
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 500;
}
.tour-price {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

/* === GUIDES === */
.guides { background: var(--bg-2); }
.guides-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.guide-spec {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--s-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.guide-langs {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}

/* === SCHEDULE === */
.schedule { background: var(--bg); }
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; }
.data-table thead { background: var(--surface-2); }
.data-table th {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.data-table tbody tr { border-bottom: 1px solid var(--border); background: var(--surface); }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: var(--surface-2); }
.seats {
  display: inline-block;
  font-weight: 700;
  font-size: 14px;
  padding: var(--s-1) var(--s-3);
  border-radius: 20px;
}
.seats--ok { background: #E8F5E9; color: #2E7D32; }
.seats--few { background: #FFF3E0; color: #E65100; }
.seats--none { background: #FFEBEE; color: #C62828; }
.schedule-note {
  margin-top: var(--s-4);
  font-size: 13px;
  color: var(--ink-mute);
}

@media (max-width: 640px) {
  .data-table thead { position: absolute; left: -9999px; }
  .data-table tr {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    padding: 12px;
    background: var(--surface);
  }
  .data-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border: none;
    gap: 12px;
    font-size: 14px;
  }
  .data-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--ink-mute);
    flex: 0 0 auto;
    font-size: 12px;
  }
  .table-wrap { box-shadow: none; }
}

/* === TESTIMONIALS === */
.testimonials { background: var(--bg-2); }
.testimonials-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.testimonial-card .card__body { padding-bottom: var(--s-4); }
.stars {
  font-size: 18px;
  color: var(--accent);
  margin-bottom: var(--s-3);
  letter-spacing: 2px;
}
.testimonial-text {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
  font-style: italic;
  -webkit-line-clamp: 5;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.testimonial-date {
  font-size: 12px;
  color: var(--ink-light);
}

/* === CONTACT === */
.contact {
  background: var(--primary);
  color: #fff;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: start;
}
.contact-title {
  color: #fff;
  margin-bottom: var(--s-4);
}
.contact-lead {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  margin-bottom: var(--s-8);
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 15px;
  color: rgba(255,255,255,0.9);
}
.contact-details a {
  color: var(--accent-light);
  transition: color 0.2s;
}
.contact-details a:hover { color: #fff; }
.contact-form-wrap {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--s-8);
  box-shadow: var(--shadow-lg);
}
.form-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  margin-bottom: var(--s-6);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  margin-bottom: var(--s-4);
}
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-input {
  width: 100%;
  padding: var(--s-3) var(--s-4);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139,69,19,0.12);
}
.form-select { cursor: pointer; }
.form-textarea {
  min-height: 96px;
  resize: vertical;
}
.form-note {
  font-size: 11px;
  color: var(--ink-light);
  text-align: center;
  margin-top: var(--s-3);
}

/* === FOOTER === */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--s-8);
  padding-top: var(--s-12);
  padding-bottom: var(--s-12);
}
.footer-brand .logo {
  margin-bottom: var(--s-3);
}
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
.footer-nav__title {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--s-4);
}
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.footer-nav a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--accent); }
.footer-contact p {
  font-size: 14px;
  margin-bottom: var(--s-2);
}
.footer-contact a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.footer-contact a:hover { color: var(--accent); }
.footer-social {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s;
}
.social-link:hover { background: var(--accent); color: var(--ink); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--s-4) 0;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: var(--s-8);
  }
  .about-badge { left: var(--s-4); }
  .contact-inner {
    grid-template-columns: 1fr;
    gap: var(--s-8);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
  }
  .services-grid,
  .tours-grid,
  .guides-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: var(--s-4) var(--s-6);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 99;
  }
  .main-nav.is-open { display: block; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-2);
  }
  .nav-link {
    display: block;
    padding: var(--s-3) var(--s-4);
    font-size: 16px;
  }
  .nav-link--cta { text-align: center; }
  .burger { display: flex; }
  .logo-text { font-size: 18px; }
  .hero { min-height: 100svh; }
  .hero-title { font-size: clamp(32px, 10vw, 52px); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-stats { gap: var(--s-6); }
  .section { padding: var(--s-12) 0; }
  .services-grid,
  .tours-grid,
  .guides-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .about-badge { display: none; }
  .contact-form-wrap { padding: var(--s-6); }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--s-6);
    padding-top: var(--s-8);
    padding-bottom: var(--s-8);
  }
}