/* Color Palette based on provided image */
:root {
    --brand-yellow: #ffcc66;
    --brand-beige: #ede6de;
    --brand-dark: #2b3445;
    --brand-black: #181818;
    --brand-gray: #a1a9b5;
    --brand-light: #f5f5f5;
    --link: #46629C;
}

h1, .h1 {font-weight: 800; font-size:2.5rem;}
h2, .h2 {font-weight: 800; font-size:2.25rem;}

.bg-mi-light {
    background-color: var(--brand-beige);
}

.bg-mi-dark {
    background-color: var(--brand-dark);
    color: var(--brand-light);
}



.btn {border-radius: 0;}

.btn-primary {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
}

.btn-primary:hover, .btn-primary:active {
     background-color: var(--link);
     border-color: var(--link);
}


.btn-outline-primary {
    color: var(--brand-dark);
    border-color: var(--brand-dark);
}

.btn-outline-primary:hover, .btn-outline-primary:active {
     background-color: var(--link);
     border-color: var(--brand-dark);
}


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

a:hover {
	color:var(--link);
}

.nav-card {
    min-height: 150px;
    color: var(--brand-dark);
    transition: transform 0.2s ease;
}

.nav-card-yellow {
    background-color: var(--brand-yellow);
}

.nav-card-beige {
    background-color: var(--brand-beige);
}

.nav-card-title {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    cursor: pointer;
    text-underline-offset: 8px;
}

.nav-card-number {
    font-size: 1.75rem;
    font-weight: 400;
}

.nav-card-subtext {
    font-size: 0.95rem;
    max-width: 200px;
    line-height: 1.3;
}

.nav-card-yellow:hover, .nav-card-yellow:active {color:var(--brand-dark); background-color: #ffdb94;} 
.nav-card a:hover, .nav-card a:active {color:var(--brand-dark);}

/* Tag Links Styles */



.tag-links ul {
	list-style:none;
	margin:0;
	padding:0;
	display:flex;
	flex-wrap: wrap;
	gap:1.5rem;
}

.tag-links ul li a {
    color: var(--brand-dark);
    font-size: 1.375rem;
    line-height: 1;

    text-decoration: underline;
    text-underline-offset: 6px;
    white-space: nowrap;
    transition: opacity 0.2s;
    opacity: 0.8;
}

.tag-links ul li a:hover {
     opacity: 1;
}

.tag-links-bold.tag-links ul li a {
    font-weight: 500;
}


/* Responsive adjustments */
@media (max-width: 991px) {
    .nav-card {
        padding: 1.5rem;
        min-height: 180px;
    }
    .nav-tag-link {
        font-size: 1.25rem;
    }
}


/* Header Elements */
.main-header { background: #fff; min-height: 80px; }
.btn-menu { background-color: var(--brand-yellow); border: none; width: 65px; height: 65px; cursor: pointer; }
.btn-menu span { display: block; width: 30px; height: 3px; background-color: var(--brand-dark); margin: 4px 0; }
.logo-text { font-weight: 900; font-size: 2rem; color: var(--brand-dark); line-height: 0.9; }
.tagline { color: var(--brand-gray); font-size: 0.8rem; }

/* Stat Box Links */
.stat-box {
    border: 1px solid var(--brand-yellow);
    padding: 8px 15px;
    min-width: 100px;
    height: 65px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: background-color 0.2s;
}
.stat-box:hover { background-color: rgba(255, 204, 102, 0.1); }
.stat-label { font-size: 0.75rem; color: var(--brand-dark); }
.stat-value { font-weight: 700; font-size: 1.1rem; color: var(--brand-dark); }

.custom-select-box { border: 1px solid var(--brand-dark); border-radius: 0; padding: 10px 20px; }
.btn-cta { background-color: var(--brand-dark); color: #fff; border-radius: 0; padding: 0 25px; height: 65px; }

/* Sidebar/Nav Card Styles */
.nav-card-yellow { background-color: var(--brand-yellow); }
.nav-card-beige { background-color: var(--brand-beige); }
.nav-card-title { color: var(--brand-dark); text-underline-offset: 5px; }
.nav-card-number { font-size: 1.5rem; color: var(--brand-dark); }

.nav-sidebar ul {
    list-style: none; padding: 0; margin: 0;
}

.nav-sidebar ul li {
    margin-bottom: 15px;
}

.nav-sidebar ul li a
{ 
    color: var(--brand-dark); 
    text-decoration: underline; 
    text-underline-offset: 4px; 
    font-weight: 500;
    font-size: 1.25rem;
}

.nav-sidebar ul li a:hover { opacity: 0.7; color: var(--brand-dark); }





/* Header Styles */
.section-title {
    color: var(--brand-dark);
    text-decoration: underline;
    text-underline-offset: 8px;
}

.badge-new {
    background-color: var(--brand-yellow);
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-dark);
}

/* Custom Arrows */
.custom-arrow {
    cursor: pointer;
    color: var(--brand-dark);
    transition: opacity 0.2s;
    background:var(--brand-yellow);
}
.custom-arrow:hover { opacity: 0.5; }
.swiper-button-disabled { opacity: 0.2; cursor: default; }




/* Project Card */
.project-img-link {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.project-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-img-link img {
    transform: scale(1.05);
}

.project-title-link {
    display: block;
    color: var(--brand-dark);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    margin-bottom: 5px;
    line-height: 1.3;
}

.company-name-link {
    display: block;
    color: var(--brand-gray);
    font-size: 0.9rem;
    text-decoration: none;
}

.company-name-link:hover {
    text-decoration: underline;
}



/* Card Styling */
.company-card {
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-decoration: none;
    position: relative;
    height: 100%;
    transition: transform 0.2s;
}

.company-card:hover { transform: translateY(-5px); }

/* Logo Box Constraint */
.logo-wrapper {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.logo-wrapper img {
    max-width: 180px;
    max-height: 180px;
    object-fit: contain;
}

.company-name {
    color: var(--brand-dark);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-align: center;
}

.company-stats {
    color: #a1a9b5;
    font-size: 0.85rem;
    margin: 0;
    text-align: center;
}

.star-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--brand-yellow);
    font-size: 2rem;
    line-height: 1;
    display: inline-block;
}


.get-cost-card button {display: block; padding:2rem; background: var(--brand-beige); color: var(--brand-black); border:none; text-align: left; width: 100%;}
.get-cost-card button:hover, .get-cost-card button:active {background: var(--brand-yellow);}
.get-cost-card button span {display: block;}
.get-cost-card button .title {font-size: 1.5rem; font-weight:700;}
.get-cost-card button .subtitle {font-size: 1rem; font-weight:400;}


.footer {
    color:var(--brand-beige);
}

.footer a {
    color: var(--brand-yellow) !important;
}

.footer a:hover, .footer a:active {
    color: var(--brand-beige) !important;
}



/* ============================================
   COOKIE NOTICE
   ============================================ */
.cookie-notice {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px; /* Позволяет центрировать на мобильных */
  max-width: 420px; /* Компактная ширина на ПК */
  background-color: #ffffff;
  border-radius: 16px; /* Закругленные углы */
  box-shadow: var(--shadow-lg, 0 10px 30px rgba(0, 27, 49, 0.15));
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  z-index: 1060; /* Поверх всех элементов, включая модальные окна */
  
  /* Анимация появления снизу */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

.cookie-notice.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-text {
  font-size: 0.8125rem; /* Компактный шрифт (13px) */
  line-height: 1.4;
  color: var(--text-color);
  margin: 0;
}

.cookie-text a {
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.cookie-text a:hover {
  color: var(--link-color);
}

.btn-cookie {
  background-color: var(--brand-dark);
  color: #ffffff;
  border: none;
  border-radius: 8px; /* Легкое закругление кнопки */
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap; /* Чтобы текст кнопки не переносился */

}

.btn-cookie:hover,
.btn-cookie:active {

}

/* Адаптация для мобильных экранов (Mobile First) */
@media (max-width: 575px) {
  .cookie-notice {
    flex-direction: column;
    text-align: center;
    bottom: 15px;
    left: 15px;
    right: 15px;
    padding: 1rem;
    gap: 1rem;
  }
  
  .btn-cookie {
    width: 100%; /* Кнопка на всю ширину для удобства нажатия пальцем */
    padding: 0.75rem;
  }
}
