/* =========================================
   OneTwoTrip Clone — Stylesheet
   Светлая тема (sky-blue акценты)
   ========================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #ffffff;
  color: #0f172a;
  line-height: 1.5;
}

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
}

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

/* --- CSS Variables (colour palette) --- */
:root {
  --accent:        #0EA5E9;   /* sky-500 */
  --accent-hover:  #38BDF8;   /* sky-400 */
  --accent-light:  #e0f2fe;   /* sky-100 */
  --accent-pale:   #f0f9ff;   /* sky-50  */

  --text-primary:  #0f172a;   /* slate-900 */
  --text-secondary:#64748b;   /* slate-500 */
  --text-muted:    #94a3b8;   /* slate-400 */

  --border:        #e2e8f0;   /* slate-200 */
  --border-light:  #f1f5f9;   /* slate-100 */

  --bg-alt:        #f8fafc;   /* slate-50  */
  --bg-input:      #f8fafc;

  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --radius-full:   9999px;

  --shadow-sm:     0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:     0 4px 12px rgba(0,0,0,0.10);
  --shadow-accent: 0 8px 20px rgba(14,165,233,0.25);
}

/* --- Container --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =========================================
   HEADER
   ========================================= */
.header {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo__icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #38BDF8, #0284C7);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(14,165,233,0.4);
}

.logo__icon span {
  color: #fff;
  font-weight: 900;
  font-size: 11px;
  line-height: 1.1;
  text-align: center;
}

.logo__text {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.logo__text .accent { color: var(--accent); }

/* Nav */
.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.header__nav a {
  color: var(--text-secondary);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.header__nav a:hover {
  background: var(--bg-alt);
  color: var(--text-primary);
}

.header__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header__right a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.15s;
}
.header__right a:hover { color: var(--text-primary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  box-shadow: 0 1px 3px rgba(14,165,233,0.3);
}
.btn--primary:hover { background: var(--accent-hover); }

.btn--search {
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-accent);
  margin-top: 16px;
}
.btn--search:hover { background: var(--accent-hover); }

.btn--outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--ghost {
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
}
.btn--ghost:hover {
  border-color: var(--accent);
  background: var(--accent-pale);
}

/* =========================================
   HERO
   ========================================= */
.hero {
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 50%, #e0f2fe 100%);
  min-height: 460px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.hero__blob--top {
  top: -80px;
  right: -80px;
  width: 384px;
  height: 384px;
  background: rgba(186,230,253,0.4);
}

.hero__blob--bottom {
  bottom: -80px;
  left: -80px;
  width: 320px;
  height: 320px;
  background: rgba(165,243,252,0.3);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 40px 0;
}

/* Search tabs */
.search-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.search-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  border: 1.5px solid var(--border);
  background: #fff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}

.search-tab:hover {
  border-color: #bae6fd;
  color: var(--accent);
}

.search-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 6px rgba(14,165,233,0.25);
}

.search-tab .badge {
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: var(--radius-full);
  margin-left: 2px;
}

/* Search box */
.search-box {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  border: 1px solid var(--border-light);
  overflow: hidden;
  max-width: 1000px;
}

/* Trip type radio */
.trip-types {
  display: flex;
  gap: 4px;
  padding: 16px 16px 0;
}

.trip-type {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.15s;
}
.trip-type:hover { background: var(--border-light); }
.trip-type.active { background: var(--accent); color: #fff; }

/* Search fields */
.search-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  padding: 16px;
}

.search-field {
  flex: 1;
  min-width: 120px;
}

.search-field label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.search-field select,
.search-field input {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  outline: none;
  background: var(--bg-input);
  appearance: none;
  transition: border-color 0.15s;
}

.search-field select:focus,
.search-field input:focus {
  border-color: var(--accent);
}

.search-field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.4;
  cursor: pointer;
}

.search-field--icon {
  position: relative;
}
.search-field--icon svg {
  position: absolute;
  left: 12px;
  top: 10px;
  pointer-events: none;
}
.search-field--icon input {
  padding-left: 34px;
}

/* Passengers counter */
.counter {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
}

.counter__btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.counter__btn:hover { background: var(--accent-light); color: var(--accent); }

.counter__val {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.cabin-select {
  width: 100%;
  font-size: 12px;
  color: var(--text-secondary);
  border: none;
  background: transparent;
  margin-top: 4px;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

/* Swap button */
.swap-btn {
  padding: 10px;
  background: var(--border-light);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
  align-self: flex-end;
  margin-bottom: 0;
}
.swap-btn:hover { background: var(--accent-light); }

/* Visa checkbox */
.visa-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  cursor: pointer;
  padding: 0 16px 16px;
}
.visa-check input { accent-color: var(--accent); width: 16px; height: 16px; }
.visa-check span { font-size: 14px; color: var(--text-secondary); }

/* Panel hidden */
.search-panel { display: none; }
.search-panel.active { display: block; }

/* =========================================
   TRUST BADGES
   ========================================= */
.trust {
  background: #fff;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.trust__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: border-color 0.15s;
}
.trust__item:hover { border-color: #bae6fd; }

.trust__icon {
  width: 40px;
  height: 40px;
  background: var(--accent-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust__title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.trust__desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =========================================
   PROMO CARDS
   ========================================= */
.promo {
  padding: 32px 0;
  background: var(--bg-alt);
}

.promo__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.promo-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.promo-card:hover { box-shadow: var(--shadow-md); }

.promo-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
  transition: opacity 0.5s, transform 0.5s;
}
.promo-card:hover .promo-card__bg { opacity: 0.2; transform: scale(1.05); }

.promo-card__body { position: relative; z-index: 1; }

.promo-card__emoji { font-size: 28px; margin-bottom: 8px; }

.promo-card__title {
  font-weight: 900;
  font-size: 15px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.promo-card__sub { font-size: 12px; opacity: 0.75; line-height: 1.5; }

.promo-card__btn {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid currentColor;
  background: transparent;
  cursor: pointer;
  margin-top: 12px;
  position: relative;
  z-index: 1;
  font-family: inherit;
  transition: opacity 0.15s;
}
.promo-card__btn:hover { opacity: 0.7; }

/* =========================================
   DESTINATIONS
   ========================================= */
.destinations {
  padding: 32px 0;
  background: #fff;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
}

.section-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: text-decoration 0.1s;
}
.section-link:hover { text-decoration: underline; }

.destinations__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.dest-card { cursor: pointer; }

.dest-card__img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding-top: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.dest-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.dest-card:hover .dest-card__img { transform: scale(1.1); }

.dest-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.dest-card__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.dest-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
}

.dest-card__city {
  color: #fff;
  font-weight: 900;
  font-size: 14px;
}

.dest-card__country {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  margin-top: 2px;
}

.dest-card__price {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  margin-top: 6px;
}

/* =========================================
   APP PROMO BANNER
   ========================================= */
.app-promo {
  padding: 40px 0;
  background: var(--bg-alt);
}

.app-promo__banner {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  border: 1px solid #bae6fd;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 60%, #e0f7fa 100%);
}

.app-promo__bg-img {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 33%;
  opacity: 0.2;
  object-fit: cover;
}

.app-promo__content {
  position: relative;
  z-index: 1;
  padding: 48px;
  max-width: 500px;
}

.app-promo__title {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.app-promo__desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.7;
}

.app-promo__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* =========================================
   FAQ
   ========================================= */
.faq {
  padding: 32px 0;
  background: #fff;
}

.faq__list {
  max-width: 750px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s;
}
.faq-item:hover { border-color: #bae6fd; }

.faq-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.faq-item__btn:hover { background: var(--accent-pale); }

.faq-item__q {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.faq-item__chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item__answer {
  display: none;
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--border-light);
}

.faq-item.open .faq-item__chevron { transform: rotate(180deg); }
.faq-item.open .faq-item__answer { display: block; }

/* =========================================
   POPULAR ROUTES
   ========================================= */
.routes {
  padding: 32px 0;
  background: var(--bg-alt);
}

.routes__subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0 20px;
}

.routes__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
}

.route-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: #374151;
  transition: color 0.15s;
}
.route-link:hover { color: var(--accent); }

.route-link svg { color: #cbd5e1; flex-shrink: 0; }
.route-link:hover svg { color: var(--accent-hover); }

/* =========================================
   HOTELS
   ========================================= */
.hotels {
  padding: 32px 0;
  background: #fff;
}

.tab-btns {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.tab-btn {
  font-size: 14px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  background: var(--border-light);
  color: var(--text-secondary);
}
.tab-btn:hover { background: var(--accent-pale); color: var(--accent); }
.tab-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 3px rgba(14,165,233,0.3);
}

.hotel-panel { display: none; }
.hotel-panel.active {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 4px 16px;
}

.hotel-link {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 0;
  display: block;
  transition: color 0.15s;
}
.hotel-link:hover { color: var(--accent); }

/* =========================================
   SUPPORT CTA
   ========================================= */
.support-cta {
  background: var(--bg-alt);
  padding: 32px 0;
  border-top: 1px solid var(--border-light);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: #fff;
  border-top: 1px solid var(--border-light);
  padding: 40px 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.footer__logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #38BDF8, #0284C7);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__logo-icon span {
  color: #fff;
  font-weight: 900;
  font-size: 10px;
  line-height: 1.1;
  text-align: center;
}

.footer__logo-text {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
}

.footer__desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer__col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__col a {
  font-size: 12px;
  color: var(--text-secondary);
  transition: color 0.15s;
}
.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy { font-size: 12px; color: var(--text-muted); }

.footer__legal {
  display: flex;
  gap: 16px;
}

.footer__legal a {
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer__legal a:hover { color: var(--accent); }

/* =========================================
   RESPONSIVE (basic)
   ========================================= */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .header__nav { display: none; }
  .routes__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .app-promo__content { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .search-fields { flex-direction: column; }
}
