.brand-icon{
  width:44px;
  height:44px;
  border-radius:12px;
}

header.sticky-top{
  background:#fff;
  position:sticky;
  top:0;
  z-index:1030;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}

/* ===== Кнопки header (Меню / Поддержка / Поиск) ===== */

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

.header-icon-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:50%;
  border:1.5px solid #111;
  background:#fff;
  color:#111;
  text-decoration:none;
  font-size:21px;
  transition:all .2s ease;
  flex-shrink:0;
}

.header-icon-btn i{
  font-size:21px;
  line-height:1;
  display:inline-block;
}

.header-icon-btn:hover{
  background:#111;
  color:#fff;
}

.header-icon-btn:active{
  transform:scale(.95);
}

/* ===== Кнопка меню ===== */

.menu-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:600;
  font-size:14px;
  padding:6px 16px;
  border-radius:10px;
  border:1px solid #111;
  background:#fff;
  color:#111;
  text-decoration:none;
  transition:all .2s ease;
}

.menu-btn:hover{
  background:#111;
  color:#fff;
}

.menu-btn:active{
  transform:translateY(1px);
}

/* ===== Кнопки StartModel ===== */

.btn{
  border-radius:10px;
  transition:all .2s ease-in-out;
}

.btn-primary{
  background:#111;
  border-color:#111;
  font-weight:600;
  box-shadow:0 4px 10px rgba(0,0,0,.12);
}

.btn-primary:hover{
  background:#000;
  border-color:#000;
  box-shadow:0 6px 14px rgba(0,0,0,.18);
}

.btn-primary:active{
  transform:translateY(1px);
  box-shadow:0 3px 8px rgba(0,0,0,.12);
}

.btn-outline-secondary{
  border-color:rgba(0,0,0,.35);
  color:#111;
  font-weight:600;
}

.btn-outline-secondary:hover{
  background:#111;
  border-color:#111;
  color:#fff;
  box-shadow:0 4px 10px rgba(0,0,0,.12);
}

/* ===== Cookie banner ===== */

.cookie-banner{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:9999;
  background:rgba(255,255,255,.96);
  border-top:1px solid rgba(0,0,0,.08);
  box-shadow:0 -8px 24px rgba(0,0,0,.12);
}

.cookie-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
}

.cookie-text{
  font-size:14px;
  color:#6c757d;
  line-height:1.35;
}

.cookie-link{
  color:#111;
  text-decoration:underline;
}

.cookie-actions{
  display:flex;
  gap:10px;
  flex-shrink:0;
}

@media (max-width:576px){
  .cookie-inner{
    flex-direction:column;
    align-items:stretch;
    text-align:center;
  }

  .cookie-actions{
    justify-content:center;
  }
}

/* чтобы контент не закрывался cookie */

body.cookie-padding{
  padding-bottom:92px;
}

@media (max-width:576px){
  body.cookie-padding{
    padding-bottom:132px;
  }
}

/* ===== Улучшение мобильного вида ===== */

@media (max-width:576px){
  h1{
    font-size:32px;
  }

  .lead{
    font-size:18px;
  }

  .header-actions{
    gap:10px;
  }

  .header-icon-btn{
    width:42px;
    height:42px;
    font-size:19px;
  }

  .header-icon-btn i{
    font-size:19px;
  }
}

.card li{
  font-size:20px;
}

a[href^="mailto"]{
  color:#212529;
  text-decoration:none;
}

/* ===== Улучшение карточек ===== */

.card{
  border:0;
  border-radius:14px;
  box-shadow:0 6px 20px rgba(0,0,0,.06);
  transition:transform .2s ease, box-shadow .2s ease;
}

.card:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 28px rgba(0,0,0,.10);
}

/* ===== Breadcrumb ===== */

.breadcrumb a{
  color:#111;
  text-decoration:none;
}

.breadcrumb a:hover{
  text-decoration:underline;
}

.breadcrumb-item.active{
  color:#6c757d;
}

/* ===== Калькулятор ===== */

.calculator-box{
  background:#fff;
  border:1px solid #e9ecef;
  border-radius:18px;
  padding:24px;
  margin:32px 0;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
}

.calculator-text{
  color:#555;
  margin-bottom:18px;
}

.token-calculator{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.calculator-label{
  font-weight:700;
}

.calculator-input{
  max-width:420px;
  padding:12px;
  font-size:18px;
  border-radius:12px;
  border:1px solid #ccc;
}

.calculator-result{
  font-size:28px;
  font-weight:700;
  margin-top:6px;
}

@media (max-width:576px){
  .calculator-input{
    max-width:100%;
  }
}

/* ===== Якоря ===== */

#articles{
  scroll-margin-top:80px;
}

/* ===== КОПИРОВАНИЕ ФРАЗ ===== */

.copy-text{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  margin:8px 0;
  border:1px solid #dc3545;
  border-radius:10px;
  background:#fff8f8;
  cursor:pointer;
  transition:.2s;
  user-select:none;
  position:relative;
}

.copy-text:hover{
  background:#fff0f0;
}

.copy-text.copied{
  border-color:#198754;
  background:#f0fff4;
}

.copy-icon{
  font-size:16px;
}

.copy-content{
  color:#333;
}

.copy-text::after{
  content:"Скопировать";
  position:absolute;
  top:-30px;
  left:50%;
  transform:translateX(-50%);
  background:#111;
  color:#fff;
  font-size:12px;
  padding:4px 8px;
  border-radius:6px;
  opacity:0;
  transition:.2s;
}

.copy-text:hover::after{
  opacity:1;
}

@media (max-width:576px){
  .copy-text{
    width:100%;
  }

  .copy-text::after{
    display:none;
  }
}

/* ===== Эффект нажатия ===== */

.list-group-item{
  transition: all .15s ease;
}

.list-group-item:active{
  transform: scale(0.98);
}
