/* ==========================================================================
   1. CORE SETTINGS & COLOR VARIABLES (THEME)
   ========================================================================== */
:root {
    --brand-color: #007bff;
    --brand-dark: #0056b3;
    --primary-color: #10b981;
    --primary-hover: #059669;

    --text-dark:#202124;
    --text-light: #202124;

    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;

    --border-radius: 8px;
    --transition: all 0.3s ease;

    --muted-bg: #f7f8fa;
    --soft-bg: #f1f5f9;
    --hover-bg: #eef2f7;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.18);

    --success-color: #00897b;
    --warning-color: #fbbc04;

    --overlay-dark: rgba(0, 0, 0, 0.8);
    --backdrop-dark: rgba(0, 0, 0, 0.6);

    --gold-color: #d4af37;
    --silver-color: silver;
    --bronze-color: #cd7f32;
	
    --bg-oldbg:#f8f8f8;
    --bg-hero:#fff;	
    --linkweb:#1a73e8;
	
    --downbg:#10b981;
    --downtext:#fff;
	
    --download-bg: #2563eb;
    --download-bg-hover: #1d4ed8;
    --download-text: #ffffff;
	
    --note:#ff0000;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
}

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

/* ============================
   2. SEARCH SUGGESTIONS BOX 
   ============================ */
.suggestions-box {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: calc(var(--border-radius) + 4px);
  box-shadow: var(--shadow-md);
  max-height: 280px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1000;
  color: var(--text-dark);
}

.suggestions-box:empty {
  display: none;
}

.suggestions-box li {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-dark);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestions-box li:hover,
.suggestions-box li:focus,
.suggestions-box li.is-active {
  background: var(--hover-bg);
  color: var(--brand-dark);
}

.suggestions-box li + li {
  border-top: 1px solid var(--border-color);
}

.suggestions-box::-webkit-scrollbar {
  width: 10px;
}

.suggestions-box::-webkit-scrollbar-track {
  background: var(--muted-bg);
  border-radius: 999px;
}

.suggestions-box::-webkit-scrollbar-thumb {
  background: #c7ced6;
  border-radius: 999px;
  border: 2px solid var(--muted-bg);
}

.suggestions-box::-webkit-scrollbar-thumb:hover {
  background: #aeb7c2;
}

@media (max-width: 768px) {
  .suggestions-box {
    top: calc(100% + 6px);
    max-height: 220px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
  }

  .suggestions-box li {
    padding: 11px 14px;
    font-size: 14px;
  }
}

/* ============================
    TELEGRAM
   ============================ */

@keyframes telegramPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

.telegram-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    background-color: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    text-decoration: none;
    animation: telegramPulse 2s infinite ease-in-out;
    transition: transform 0.3s ease;
}

.telegram-float:hover {
    transform: scale(1.1);
}

.telegram-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.telegram-icon svg {
    width: 36px;
    height: 36px;
    display: block;
    fill: #ffffff;
    transform: translate(-0.7px, 0px); 
}

/* ============================
   HEADER 
   ============================ */

.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 1px;
    position: relative;
    z-index: 888;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

.site-header *, 
.site-header *::before, 
.site-header *::after {
    box-sizing: border-box;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 25px;
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    width: 30px;
    height: 30px;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-weight: bold;
    font-size: 1.25rem;
    color: #007bff;
}

.logo-subtitle {
    font-size: 1.0rem;
    color: #5f6368;
}

.search-container-wrapper {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    max-width: 500px;
    margin: 0 0 0 15px;
}

.search-form {
    display: flex;
    width: 100%;
    position: relative;
}

.search-input-field {
    width: 100%;
    padding: 10px 45px 10px 18px;
    background-color: #f8f9fa;
    color: #202124;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    outline: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input-field:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: #007bff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: inline-block;
}

.suggestions-box {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    max-height: 280px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

/* ============================
   FOOTER 
   ============================ */

.site-footer {
    background-color: #ffffff;
    color: #202124;
    padding: 40px 0 20px;
    margin-top: 50px;
    font-size: 0.95rem;
    border-top: 1px solid #e5e7eb;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.site-footer *, 
.site-footer *::before, 
.site-footer *::after {
    box-sizing: border-box;
}

.footer-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.footer-title {
    font-size: 15px;
    margin-bottom: 15px;
    font-weight: 500;
    color: #202124;
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-list li {
    margin-bottom: 10px;
}

.footer-list a {
    color: #202124;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-list a:hover {
    color: #007bff;
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 20px 20px 0;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.footer-copy {
    margin: 0;
}

.footer-disclaimer {
    max-width: 1000px;
    margin: 15px auto 0;
    padding: 0 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #9ca3af;
}

.footer-disclaimer p {
    margin: 0;
}
