/* ===== TravoBerg OÜ — minimalist business styling ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --ink: #1c2733;
  --ink-soft: #5a6772;
  --brand: #1f4e6b;       /* calm deep blue */
  --brand-dark: #163a51;
  --accent: #2a9d8f;      /* muted teal accent */
  --border: #e2e7ec;
  --radius: 10px;
  --maxw: 1080px;
  --shadow: 0 2px 14px rgba(28, 39, 51, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand { display: flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 52px; width: auto; display: block; }

.main-nav { display: flex; gap: 22px; margin-left: auto; margin-right: 10px; }
.main-nav a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.main-nav a:hover { color: var(--brand); text-decoration: none; }

.lang-switch { display: flex; align-items: center; gap: 4px; }
.lang-sep { color: var(--border); }
.lang-btn {
  background: none; border: none; cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 600;
  color: var(--ink-soft); padding: 4px 6px; border-radius: 6px;
}
.lang-btn.is-active { color: var(--brand); background: var(--bg-alt); }
.lang-btn:hover { color: var(--brand); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-secondary:hover { background: var(--bg-alt); }
.btn-tg-small { background: var(--accent); color: #fff; padding: 8px 16px; font-size: .9rem; }
.btn-tg-small:hover { background: #23867a; color: #fff; }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #f7fafc 0%, #eef3f7 100%);
  border-bottom: 1px solid var(--border);
}
/* Lightweight SVG travel imagery (mountains + flight path), low opacity */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 70%;
  background: url("hero-mountains.svg") bottom center / cover no-repeat;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: clamp(48px, 9vw, 96px) 20px; max-width: 820px; }
.hero-lead { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== Sections ===== */
.section { padding: clamp(48px, 7vw, 80px) 0; }

/* ===== About — text + travellers illustration (B2B + B2C) ===== */
#about { position: relative; overflow: hidden; }
/* Soft, low-opacity background accent */
#about::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 88% 25%, rgba(42, 157, 143, 0.07), transparent 60%),
    radial-gradient(100% 70% at 8% 95%, rgba(31, 78, 107, 0.06), transparent 60%);
  pointer-events: none;
}
.about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.about-text .section-lead { margin-bottom: 0; }
.about-illustration {
  width: 100%;
  height: auto;
  max-width: 460px;
  display: block;
  margin: 0 auto;
}
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .about-illustration { max-width: 360px; }
}
.section-alt {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}
/* Faint flight-path accent in the Services corner */
.section-alt::before {
  content: "";
  position: absolute;
  top: 18px; right: -40px;
  width: 360px; height: 180px;
  background: url("flight-path.svg") top right / contain no-repeat;
  opacity: 0.35;
  pointer-events: none;
}
.section-lead { font-size: 1.1rem; max-width: 760px; }
.section-alt .container { position: relative; z-index: 1; }

/* ===== Service cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(28, 39, 51, 0.1);
  border-color: #cdd9e2;
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(160deg, #e8f5f2 0%, #e4eef4 100%);
  color: var(--brand);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { color: var(--brand); }
.card p { margin: 0; }

/* ===== Contacts ===== */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex; flex-direction: column;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.contact-label {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-soft); margin-bottom: 2px;
}

/* ===== Company details / Реквизиты ===== */
.company-details {
  margin-top: 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px clamp(20px, 4vw, 34px);
}
.company-details h2 { margin-bottom: 6px; }
.company-note { font-size: .95rem; margin-bottom: 20px; }
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
  margin: 0;
}
.detail-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.detail-row--wide { grid-column: 1 / -1; }
.detail-row dt {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-soft);
}
.detail-row dd {
  margin: 0; color: var(--ink); font-weight: 600; font-size: 1.02rem;
}
.detail-row .mono {
  font-family: "SF Mono", ui-monospace, "Cascadia Code", Consolas, "Courier New", monospace;
  letter-spacing: .5px; user-select: all;
}

@media (max-width: 560px) {
  .details-grid { grid-template-columns: 1fr; }
}

/* ===== Form ===== */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 78, 107, 0.12);
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 12px 0 0; font-size: .92rem; min-height: 1.2em; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #c0392b; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding: 22px 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; color: var(--ink-soft); font-size: .9rem;
}

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .main-nav { display: none; }
  .brand-logo { height: 44px; }
  .contacts-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .section-alt::before { display: none; }
}
