/* Shared styles for the static tripco.bg site (page-specific styles stay inline in each page). */
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
/* Raleway switches to Bulgarian-style Cyrillic (в like 8, т like m) when lang="bg".
   Keep those forms only in the big headings; body text uses the standard letters. */
body { font-feature-settings: "locl" 0; font-language-override: "RUS"; }
h1, h2 { font-feature-settings: normal; font-language-override: normal; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #CDF75C; outline-offset: 2px; }

/* Header: mobile menu */
.menu-btn { display: none; background: none; border: 0; color: #262838; padding: 8px; cursor: pointer; border-radius: 10px; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .main-nav { display: none !important; width: 100%; flex-direction: column; align-items: stretch !important; }
  .main-nav.open { display: flex !important; }
  .header-actions { display: none !important; }
  .main-nav.open ~ .header-actions { display: flex !important; width: 100%; }
}

/* Smaller screens: scale the big design type down */
@media (max-width: 640px) {
  h1 { font-size: 38px !important; line-height: 1.12 !important; }
  h2 { font-size: 30px !important; line-height: 1.15 !important; }
  section { padding-left: 16px !important; padding-right: 16px !important; }
  section > div[style*="border-radius: 32px"] { padding: 36px 22px !important; }
}

/* Language globe tooltip */
.lang-btn { position: relative; }
.lang-tip { position: absolute; top: calc(100% + 8px); right: 0; white-space: nowrap; background: #262838; color: #FFFFFF; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 10px; z-index: 30; }

/* YouTube popup */
.yt-panel { position: relative; width: 100%; max-width: 960px; }
.yt-box { position: relative; aspect-ratio: 16 / 9; background: #262838; border-radius: 18px; overflow: hidden; }
.yt-close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #FFFFFF; color: #262838; font-size: 26px; line-height: 1; cursor: pointer; }
.cal-box { position: relative; height: min(720px, 82vh); background: #262838; border-radius: 18px; overflow: hidden; }
.cal-box iframe { background: #FFFFFF; }
.yt-ask { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; color: #FFFFFF; font-size: 15px; line-height: 1.6; }
.yt-ask a:not(.cc-btn) { color: #CDF75C; }

/* Blog filter chips */
.chip { font: inherit; font-weight: 700; font-size: 14px; padding: 11px 18px; border-radius: 999px; cursor: pointer; border: 1px solid #C9CAD4; background: #FFFFFF; color: #262838; }
.chip[aria-pressed="true"] { background: #262838; color: #FFFFFF; border-color: #262838; }

/* Form status line */
.form-note { font-size: 14px; font-weight: 600; padding: 10px 14px; border-radius: 10px; margin-top: 6px; }
.form-note.ok { background: #EEFBD0; color: #262838; }
.form-note.err { background: #FFE3E3; color: #8A1C1C; }

/* Cookie banner */
.cc-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 1080px; margin: 0 auto; background: #FFFFFF; border-radius: 24px; box-shadow: 0 24px 70px rgba(38,40,56,0.25); padding: 24px 28px; display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; box-sizing: border-box; font-family: Raleway, Montserrat, system-ui, sans-serif; color: #262838; }
.cc-text { flex: 1 1 420px; min-width: 0; display: flex; gap: 16px; align-items: flex-start; }
.cc-icon { width: 48px; height: 48px; flex: none; border-radius: 14px; background: #CDF75C; display: flex; align-items: center; justify-content: center; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-btn { font: inherit; font-weight: 700; font-size: 15px; padding: 14px 22px; border-radius: 12px; border: 1.5px solid #0000FF; background: #FFFFFF; color: #0000FF; cursor: pointer; }
.cc-btn.primary { background: #0000FF; color: #FFFFFF; }
.cc-link { font: inherit; font-weight: 700; font-size: 15px; padding: 14px 10px; border: 0; background: transparent; color: #0000FF; cursor: pointer; text-decoration: underline; }
.cc-modal { position: fixed; inset: 0; z-index: 210; background: rgba(38,40,56,0.55); display: flex; align-items: center; justify-content: center; padding: 24px; font-family: Raleway, Montserrat, system-ui, sans-serif; color: #262838; }
.cc-panel { width: 100%; max-width: 560px; background: #FFFFFF; border-radius: 24px; padding: 32px; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 80px rgba(0,0,0,0.3); max-height: calc(100vh - 48px); overflow: auto; }
.cc-row { border: 1px solid #E2E2EA; border-radius: 14px; padding: 16px; display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.cc-switch { flex: none; width: 52px; height: 30px; border-radius: 999px; border: 0; padding: 3px; cursor: pointer; background: #C9CAD4; display: flex; justify-content: flex-start; }
.cc-switch[aria-checked="true"] { background: #0000FF; justify-content: flex-end; }
.cc-switch[disabled] { opacity: 0.6; cursor: not-allowed; }
.cc-switch span { width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; display: block; }
@media (max-width: 640px) {
  .cc-banner { padding: 18px; gap: 12px; border-radius: 18px; left: 8px; right: 8px; bottom: 8px; }
  .cc-icon { display: none; }
  .cc-text { flex-basis: 100%; }
  .cc-text b { font-size: 16px !important; }
  .cc-text span { font-size: 13px !important; line-height: 1.5 !important; }
  .cc-actions { width: 100%; }
  .cc-actions .cc-btn { flex: 1 1 140px; padding: 12px 10px; font-size: 14px; }
  .cc-link { padding: 8px 4px; font-size: 14px; }
}
